summaryrefslogtreecommitdiffstats
path: root/test/modules/http2/test_200_header_invalid.py
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-09-21 13:03:44 +0200
committerStefan Eissing <icing@apache.org>2022-09-21 13:03:44 +0200
commitcbb10f366c95401b717e26791d31f1d084dee195 (patch)
tree029cf85d2385294f8e87b6ee07c03e8f385382b5 /test/modules/http2/test_200_header_invalid.py
parent *) mod_proxy_http2: use only the ':authority' header to forward 'Host' (diff)
downloadapache2-cbb10f366c95401b717e26791d31f1d084dee195.tar.xz
apache2-cbb10f366c95401b717e26791d31f1d084dee195.zip
*) tests: load the top-level mod_aptest in all test suites.
- aptest logs the test name from the header 'AP-Test-Name' with the request line. LogLevel aptest:info is switched on. - pytest sets 'AP-Test-Name' for all curl/nghttp invocation against the server. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904188 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/modules/http2/test_200_header_invalid.py')
-rw-r--r--test/modules/http2/test_200_header_invalid.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/modules/http2/test_200_header_invalid.py b/test/modules/http2/test_200_header_invalid.py
index 5f8c976808..44ad69bc6b 100644
--- a/test/modules/http2/test_200_header_invalid.py
+++ b/test/modules/http2/test_200_header_invalid.py
@@ -88,7 +88,8 @@ class TestInvalidHeaders:
def test_h2_200_12(self, env):
url = env.mkurl("https", "cgi", "/")
opt = []
- for i in range(98): # curl sends 2 headers itself (user-agent and accept)
+ # curl sends 3 headers itself (user-agent, accept, and our AP-Test-Name)
+ for i in range(97):
opt += ["-H", "x: 1"]
r = env.curl_get(url, options=opt)
assert r.response["status"] == 200
@@ -100,8 +101,9 @@ class TestInvalidHeaders:
def test_h2_200_13(self, env):
url = env.mkurl("https", "cgi", "/")
opt = []
- for i in range(98): # curl sends 2 headers itself (user-agent and accept)
- opt += ["-H", "x{0}: 1".format(i)]
+ # curl sends 3 headers itself (user-agent, accept, and our AP-Test-Name)
+ for i in range(97):
+ opt += ["-H", f"x{i}: 1"]
r = env.curl_get(url, options=opt)
assert r.response["status"] == 200
r = env.curl_get(url, options=(opt + ["-H", "y: 2"]))