From 3fb63bf859c413b9611b39a48868cd077aeaeffc Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 11 Jul 2024 08:10:54 +0000 Subject: [PATCH] test http1, add version check for trailer tests git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919125 13f79535-47bb-0310-9956-ffa450edef68 --- test/modules/http1/test_005_trailers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/modules/http1/test_005_trailers.py b/test/modules/http1/test_005_trailers.py index 36439330ce8..ca717a0fad5 100644 --- a/test/modules/http1/test_005_trailers.py +++ b/test/modules/http1/test_005_trailers.py @@ -15,6 +15,8 @@ class TestTrailers: # check that we get a trailer out when telling the handler to add one def test_h1_005_01(self, env): + if not env.httpd_is_at_least("2.5.0"): + pytest.skip(f'need at least httpd 2.5.0 for this') url = env.mkurl("https", "cgi", "/h1test/echo") host = f"cgi.{env.http_tld}" fpath = os.path.join(env.gen_dir, "data-1k") @@ -27,6 +29,8 @@ class TestTrailers: # check that we get out trailers through the proxy def test_h1_005_02(self, env): + if not env.httpd_is_at_least("2.5.0"): + pytest.skip(f'need at least httpd 2.5.0 for this') url = env.mkurl("https", "cgi", "/proxy/h1test/echo") host = f"cgi.{env.http_tld}" fpath = os.path.join(env.gen_dir, "data-1k") -- 2.47.2