diff options
| author | Stefan Eissing <icing@apache.org> | 2026-05-07 10:46:23 +0100 |
|---|---|---|
| committer | Stefan Eissing <icing@apache.org> | 2026-05-07 10:46:23 +0100 |
| commit | 1d7ba6ce100408ddb5e1f00ec20fb16e737ed98f (patch) (diff) | |
| tree | efa66767dec94bd9fa058c9b31d130130cbb8162 | |
| download | apache-httpd-trunk.tar.gz | |
| previous commit | 8f43e250ec6cc37a2f7dd9886effa90b1e6cfb38 (mod_proxy_http2: fix potential (harmless) buffer overrun in link mapping) | |
- rename hook parameter, because python thought this is a super good idea
- change call property to method because it no longer worked
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933904 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | test/conftest.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/core/conftest.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http1/conftest.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/conftest.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/env.py | [diff] [file] | 1 | ||||
| -rw-r--r-- | test/modules/http2/test_001_httpd_alive.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_002_curl_basics.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_003_get.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_004_post.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_005_files.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_006_assets.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_007_ssi.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_008_ranges.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_009_timing.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_100_conn_reuse.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_101_ssl_reneg.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_102_require.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_103_upgrade.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_104_padding.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_106_shutdown.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_107_frame_lengths.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_200_header_invalid.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_201_header_conditional.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_202_trailer.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_203_rfc9113.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_300_interim.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_400_push.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_401_early_hints.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_500_proxy.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_501_proxy_serverheader.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_502_proxy_port.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_503_proxy_fwd.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_600_h2proxy.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_601_h2proxy_twisted.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_700_load_get.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_710_load_post_static.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_711_load_post_cgi.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_712_buffering.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/http2/test_800_websockets.py | [diff] [file] | 2 | ||||
| -rw-r--r-- | test/modules/proxy/conftest.py | [diff] [file] | 2 |
40 files changed, 39 insertions, 40 deletions
diff --git a/test/conftest.py b/test/conftest.py index ac0a7c553d..390a33bec5 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -7,7 +7,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '.')) from pyhttpd.env import HttpdTestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = HttpdTestEnv() return f"[apache httpd: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/core/conftest.py b/test/modules/core/conftest.py index a14bdfb675..72c52fa9fa 100644 --- a/test/modules/core/conftest.py +++ b/test/modules/core/conftest.py @@ -10,7 +10,7 @@ from pyhttpd.env import HttpdTestEnv sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = CoreTestEnv() return f"core [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http1/conftest.py b/test/modules/http1/conftest.py index 45b26c1796..be3d76aa0d 100644 --- a/test/modules/http1/conftest.py +++ b/test/modules/http1/conftest.py @@ -9,7 +9,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from .env import H1TestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = H1TestEnv() return f"mod_http [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http2/conftest.py b/test/modules/http2/conftest.py index 118cef1a95..90cd6a7c85 100644 --- a/test/modules/http2/conftest.py +++ b/test/modules/http2/conftest.py @@ -9,7 +9,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from .env import H2TestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = H2TestEnv() return f"mod_h2 [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http2/env.py b/test/modules/http2/env.py index b2443e003b..e2647616aa 100644 --- a/test/modules/http2/env.py +++ b/test/modules/http2/env.py @@ -64,7 +64,6 @@ class H2TestSetup(HttpdTestSetup): class H2TestEnv(HttpdTestEnv): @classmethod - @property def is_unsupported(cls): mpm_module = f"mpm_{os.environ['MPM']}" if 'MPM' in os.environ else 'mpm_event' return mpm_module == 'mpm_prefork' diff --git a/test/modules/http2/test_001_httpd_alive.py b/test/modules/http2/test_001_httpd_alive.py index b5708d2813..d81269594c 100644 --- a/test/modules/http2/test_001_httpd_alive.py +++ b/test/modules/http2/test_001_httpd_alive.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestBasicAlive: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_002_curl_basics.py b/test/modules/http2/test_002_curl_basics.py index 91be772114..2c8886ddec 100644 --- a/test/modules/http2/test_002_curl_basics.py +++ b/test/modules/http2/test_002_curl_basics.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestCurlBasics: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py index 572c4fb702..80edefbb7b 100644 --- a/test/modules/http2/test_003_get.py +++ b/test/modules/http2/test_003_get.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestGet: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_004_post.py b/test/modules/http2/test_004_post.py index 295f989b88..3edb218e7c 100644 --- a/test/modules/http2/test_004_post.py +++ b/test/modules/http2/test_004_post.py @@ -12,7 +12,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPost: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_005_files.py b/test/modules/http2/test_005_files.py index e7618362c5..40abbf659a 100644 --- a/test/modules/http2/test_005_files.py +++ b/test/modules/http2/test_005_files.py @@ -15,7 +15,7 @@ def mk_text_file(fpath: str, lines: int): fd.write("\n") -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestFiles: URI_PATHS = [] diff --git a/test/modules/http2/test_006_assets.py b/test/modules/http2/test_006_assets.py index 778314eda0..d02e8dc4b2 100644 --- a/test/modules/http2/test_006_assets.py +++ b/test/modules/http2/test_006_assets.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestAssets: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_007_ssi.py b/test/modules/http2/test_007_ssi.py index f5411bccd4..1da48ff454 100644 --- a/test/modules/http2/test_007_ssi.py +++ b/test/modules/http2/test_007_ssi.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestSSI: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_008_ranges.py b/test/modules/http2/test_008_ranges.py index dd695bb08d..53664e1db4 100644 --- a/test/modules/http2/test_008_ranges.py +++ b/test/modules/http2/test_008_ranges.py @@ -11,7 +11,7 @@ from .env import H2Conf, H2TestEnv log = logging.getLogger(__name__) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRanges: LOGFILE = "" diff --git a/test/modules/http2/test_009_timing.py b/test/modules/http2/test_009_timing.py index 2784f9ad35..94895cc35f 100644 --- a/test/modules/http2/test_009_timing.py +++ b/test/modules/http2/test_009_timing.py @@ -6,7 +6,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(not H2TestEnv().h2load_is_at_least('1.41.0'), reason="h2load misses --connect-to option") class TestTiming: diff --git a/test/modules/http2/test_100_conn_reuse.py b/test/modules/http2/test_100_conn_reuse.py index 103166fa30..ed958eb284 100644 --- a/test/modules/http2/test_100_conn_reuse.py +++ b/test/modules/http2/test_100_conn_reuse.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestConnReuse: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_101_ssl_reneg.py b/test/modules/http2/test_101_ssl_reneg.py index d278af21ed..7bd10f5555 100644 --- a/test/modules/http2/test_101_ssl_reneg.py +++ b/test/modules/http2/test_101_ssl_reneg.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(H2TestEnv.get_ssl_module() != "mod_ssl", reason="only for mod_ssl") class TestSslRenegotiation: diff --git a/test/modules/http2/test_102_require.py b/test/modules/http2/test_102_require.py index 4b0cad56a2..e97fb19ce5 100644 --- a/test/modules/http2/test_102_require.py +++ b/test/modules/http2/test_102_require.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRequire: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_103_upgrade.py b/test/modules/http2/test_103_upgrade.py index 1542450df9..b04aca4209 100644 --- a/test/modules/http2/test_103_upgrade.py +++ b/test/modules/http2/test_103_upgrade.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestUpgrade: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_104_padding.py b/test/modules/http2/test_104_padding.py index 401804ade8..35a5ba32fc 100644 --- a/test/modules/http2/test_104_padding.py +++ b/test/modules/http2/test_104_padding.py @@ -8,7 +8,7 @@ def frame_padding(payload, padbits): return ((payload + 9 + mask) & ~mask) - (payload + 9) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPadding: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_106_shutdown.py b/test/modules/http2/test_106_shutdown.py index fab881bcac..33fe5adfda 100644 --- a/test/modules/http2/test_106_shutdown.py +++ b/test/modules/http2/test_106_shutdown.py @@ -11,7 +11,7 @@ from .env import H2Conf, H2TestEnv from pyhttpd.result import ExecResult -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestShutdown: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_107_frame_lengths.py b/test/modules/http2/test_107_frame_lengths.py index d6360939be..ac855450e0 100644 --- a/test/modules/http2/test_107_frame_lengths.py +++ b/test/modules/http2/test_107_frame_lengths.py @@ -15,7 +15,7 @@ def mk_text_file(fpath: str, lines: int): fd.write("\n") -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestFrameLengths: URI_PATHS = [] diff --git a/test/modules/http2/test_200_header_invalid.py b/test/modules/http2/test_200_header_invalid.py index 1687e3d981..adb203b5b6 100644 --- a/test/modules/http2/test_200_header_invalid.py +++ b/test/modules/http2/test_200_header_invalid.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestInvalidHeaders: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_201_header_conditional.py b/test/modules/http2/test_201_header_conditional.py index f1032683bf..a7dbe7a6dc 100644 --- a/test/modules/http2/test_201_header_conditional.py +++ b/test/modules/http2/test_201_header_conditional.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestConditionalHeaders: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_202_trailer.py b/test/modules/http2/test_202_trailer.py index 6c4e05d3d9..caef900097 100644 --- a/test/modules/http2/test_202_trailer.py +++ b/test/modules/http2/test_202_trailer.py @@ -13,7 +13,7 @@ def setup_data(env): # The trailer tests depend on "nghttp" as no other client seems to be able to send those # rare things. -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestTrailers: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_203_rfc9113.py b/test/modules/http2/test_203_rfc9113.py index 143c0fc930..b1a6d02a5d 100644 --- a/test/modules/http2/test_203_rfc9113.py +++ b/test/modules/http2/test_203_rfc9113.py @@ -5,7 +5,7 @@ from pyhttpd.env import HttpdTestEnv from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRfc9113: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_300_interim.py b/test/modules/http2/test_300_interim.py index 774ab88a06..efe777a258 100644 --- a/test/modules/http2/test_300_interim.py +++ b/test/modules/http2/test_300_interim.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestInterimResponses: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_400_push.py b/test/modules/http2/test_400_push.py index 9c61608d87..1cd2a6ad77 100644 --- a/test/modules/http2/test_400_push.py +++ b/test/modules/http2/test_400_push.py @@ -5,7 +5,7 @@ from .env import H2Conf, H2TestEnv # The push tests depend on "nghttp" -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPush: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_401_early_hints.py b/test/modules/http2/test_401_early_hints.py index 57043052c2..4c1f61ba5b 100644 --- a/test/modules/http2/test_401_early_hints.py +++ b/test/modules/http2/test_401_early_hints.py @@ -4,7 +4,7 @@ from .env import H2Conf, H2TestEnv # The push tests depend on "nghttp" -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestEarlyHints: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_500_proxy.py b/test/modules/http2/test_500_proxy.py index 87e523c4a2..cca286aa3f 100644 --- a/test/modules/http2/test_500_proxy.py +++ b/test/modules/http2/test_500_proxy.py @@ -6,7 +6,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxy: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_501_proxy_serverheader.py b/test/modules/http2/test_501_proxy_serverheader.py index 0d7c188900..fab22b90d9 100644 --- a/test/modules/http2/test_501_proxy_serverheader.py +++ b/test/modules/http2/test_501_proxy_serverheader.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyServerHeader: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_502_proxy_port.py b/test/modules/http2/test_502_proxy_port.py index f6c6db156f..3bbe75943a 100644 --- a/test/modules/http2/test_502_proxy_port.py +++ b/test/modules/http2/test_502_proxy_port.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyPort: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_503_proxy_fwd.py b/test/modules/http2/test_503_proxy_fwd.py index 478a52d08c..e007325f7e 100644 --- a/test/modules/http2/test_503_proxy_fwd.py +++ b/test/modules/http2/test_503_proxy_fwd.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyFwd: @classmethod diff --git a/test/modules/http2/test_600_h2proxy.py b/test/modules/http2/test_600_h2proxy.py index 18a528e9c9..0f69ea741d 100644 --- a/test/modules/http2/test_600_h2proxy.py +++ b/test/modules/http2/test_600_h2proxy.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestH2Proxy: def test_h2_600_01(self, env): diff --git a/test/modules/http2/test_601_h2proxy_twisted.py b/test/modules/http2/test_601_h2proxy_twisted.py index 60f5f7df5b..52aaa09d54 100644 --- a/test/modules/http2/test_601_h2proxy_twisted.py +++ b/test/modules/http2/test_601_h2proxy_twisted.py @@ -9,7 +9,7 @@ from .env import H2Conf, H2TestEnv log = logging.getLogger(__name__) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestH2ProxyTwisted: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_700_load_get.py b/test/modules/http2/test_700_load_get.py index 138e74ce85..b5a6b73cb7 100644 --- a/test/modules/http2/test_700_load_get.py +++ b/test/modules/http2/test_700_load_get.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(not H2TestEnv().h2load_is_at_least('1.41.0'), reason="h2load misses --connect-to option") class TestLoadGet: diff --git a/test/modules/http2/test_710_load_post_static.py b/test/modules/http2/test_710_load_post_static.py index ad8ae96aef..2eb606bf4a 100644 --- a/test/modules/http2/test_710_load_post_static.py +++ b/test/modules/http2/test_710_load_post_static.py @@ -4,7 +4,7 @@ import os from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestLoadPostStatic: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_711_load_post_cgi.py b/test/modules/http2/test_711_load_post_cgi.py index 82529d1764..f2ff19b83b 100644 --- a/test/modules/http2/test_711_load_post_cgi.py +++ b/test/modules/http2/test_711_load_post_cgi.py @@ -4,7 +4,7 @@ import os from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestLoadCgi: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_712_buffering.py b/test/modules/http2/test_712_buffering.py index 0a6978b427..89053e35d6 100644 --- a/test/modules/http2/test_712_buffering.py +++ b/test/modules/http2/test_712_buffering.py @@ -6,7 +6,7 @@ from .env import H2Conf, H2TestEnv from pyhttpd.curl import CurlPiper -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestBuffering: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_800_websockets.py b/test/modules/http2/test_800_websockets.py index c0fc0c23dc..5c49ded656 100644 --- a/test/modules/http2/test_800_websockets.py +++ b/test/modules/http2/test_800_websockets.py @@ -83,7 +83,7 @@ def ws_run(env: H2TestEnv, path, authority=None, do_input=None, inbytes=None, stdout=b'', stderr=b'', duration=end - start), infos, frames -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(condition=not H2TestEnv().httpd_is_at_least("2.4.60"), reason=f'need at least httpd 2.4.60 for this') @pytest.mark.skipif(condition=ws_version < ws_version_min, diff --git a/test/modules/proxy/conftest.py b/test/modules/proxy/conftest.py index c92e363e2a..cdc779f00f 100644 --- a/test/modules/proxy/conftest.py +++ b/test/modules/proxy/conftest.py @@ -8,7 +8,7 @@ from .env import ProxyTestEnv sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = ProxyTestEnv() return "mod_proxy: [apache: {aversion}({prefix})]".format( prefix=env.prefix, |
