]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
test http1, add version check for trailer tests
authorStefan Eissing <icing@apache.org>
Thu, 11 Jul 2024 08:10:54 +0000 (08:10 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 11 Jul 2024 08:10:54 +0000 (08:10 +0000)
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

index 36439330ce888f58f7f6768e48d4a7f8552e4f43..ca717a0fad5bdca4fc7f6e1d9aef659f0e76fc55 100644 (file)
@@ -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")