summaryrefslogtreecommitdiffstats
path: root/test/modules
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-06-28 17:18:43 +0200
committerYann Ylavic <ylavic@apache.org>2023-06-28 17:18:43 +0200
commit56c4cfc4a779a82c1654665a716a29e7eddf5c5f (patch)
tree95055edff4a12f6691c1aae7f7d2a174616e1d5c /test/modules
parentincorporate feedback from rpluem (diff)
downloadapache2-56c4cfc4a779a82c1654665a716a29e7eddf5c5f.tar.xz
apache2-56c4cfc4a779a82c1654665a716a29e7eddf5c5f.zip
test_800_websockets: AH10467 is an expected error for the _fail_proto test.
So ignore it, and move the _fail_proto test first to avoid messing up with the error logs of the other tests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910667 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/modules')
-rw-r--r--test/modules/http2/test_800_websockets.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/modules/http2/test_800_websockets.py b/test/modules/http2/test_800_websockets.py
index 754ac00d62..848d1f4bdb 100644
--- a/test/modules/http2/test_800_websockets.py
+++ b/test/modules/http2/test_800_websockets.py
@@ -145,20 +145,21 @@ class TestWebSockets:
yield
p.terminate()
+ # CONNECT with invalid :protocol header, must fail
+ def test_h2_800_01_fail_proto(self, env: H2TestEnv, ws_server):
+ r, infos, frames = ws_run(env, path='/ws/echo/', scenario='fail-proto')
+ assert r.exit_code == 0, f'{r}'
+ assert infos == ['[1] :status: 501', '[1] EOF'], f'{r}'
+ env.httpd_error_log.ignore_recent()
+
# a correct CONNECT, send CLOSE, expect CLOSE, basic success
- def test_h2_800_01_ws_empty(self, env: H2TestEnv, ws_server):
+ def test_h2_800_02_ws_empty(self, env: H2TestEnv, ws_server):
r, infos, frames = ws_run(env, path='/ws/echo/')
assert r.exit_code == 0, f'{r}'
assert infos == ['[1] :status: 200', '[1] EOF'], f'{r}'
assert len(frames) == 1, f'{frames}'
assert frames[0].opcode == WsFrame.CLOSE, f'{frames}'
- # CONNECT with invalid :protocol header, must fail
- def test_h2_800_02_fail_proto(self, env: H2TestEnv, ws_server):
- r, infos, frames = ws_run(env, path='/ws/echo/', scenario='fail-proto')
- assert r.exit_code == 0, f'{r}'
- assert infos == ['[1] :status: 501', '[1] EOF'], f'{r}'
-
# CONNECT to a URL path that does not exist on the server
def test_h2_800_03_not_found(self, env: H2TestEnv, ws_server):
r, infos, frames = ws_run(env, path='/does-not-exist')