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
This commit is contained in:
Stefan Eissing
2024-07-11 08:10:54 +00:00
parent 98b9ed685e
commit 3fb63bf859

View 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")