MCPcopy Create free account
hub / github.com/apache/httpd / check_h2load_ok

Method check_h2load_ok

test/modules/http2/test_700_load_get.py:16–26  ·  view source on GitHub ↗
(self, env, r, n)

Source from the content-addressed store, hash-verified

14 assert env.apache_restart() == 0
15
16 def check_h2load_ok(self, env, r, n):
17 assert 0 == r.exit_code
18 r = env.h2load_status(r)
19 assert n == r.results["h2load"]["requests"]["total"], f'{r.results}'
20 assert n == r.results["h2load"]["requests"]["started"], f'{r.results}'
21 assert n == r.results["h2load"]["requests"]["done"], f'{r.results}'
22 assert n == r.results["h2load"]["requests"]["succeeded"], f'{r.results}'
23 assert n == r.results["h2load"]["status"]["2xx"], f'{r.results}'
24 assert 0 == r.results["h2load"]["status"]["3xx"], f'{r.results}'
25 assert 0 == r.results["h2load"]["status"]["4xx"], f'{r.results}'
26 assert 0 == r.results["h2load"]["status"]["5xx"], f'{r.results}'
27
28 # test load on cgi script, single connection, different sizes
29 @pytest.mark.parametrize("start", [

Callers 3

test_h2_700_10Method · 0.95
test_h2_700_11Method · 0.95
test_h2_700_20Method · 0.95

Calls 1

h2load_statusMethod · 0.80

Tested by

no test coverage detected