(self, env)
| 13 | |
| 14 | @pytest.fixture(autouse=True, scope='class') |
| 15 | def _class_scope(self, env): |
| 16 | def add_echo_handler(conf): |
| 17 | conf.add([ |
| 18 | "<Location \"/h2test/echo\">", |
| 19 | " SetHandler h2test-echo", |
| 20 | "</Location>", |
| 21 | ]) |
| 22 | |
| 23 | conf = H2Conf(env) |
| 24 | conf.start_vhost(domains=[f"ssl.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 25 | add_echo_handler(conf) |
| 26 | conf.end_vhost() |
| 27 | conf.start_vhost(domains=[f"pad0.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 28 | conf.add("H2Padding 0") |
| 29 | add_echo_handler(conf) |
| 30 | conf.end_vhost() |
| 31 | conf.start_vhost(domains=[f"pad1.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 32 | conf.add("H2Padding 1") |
| 33 | add_echo_handler(conf) |
| 34 | conf.end_vhost() |
| 35 | conf.start_vhost(domains=[f"pad2.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 36 | conf.add("H2Padding 2") |
| 37 | add_echo_handler(conf) |
| 38 | conf.end_vhost() |
| 39 | conf.start_vhost(domains=[f"pad3.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 40 | conf.add("H2Padding 3") |
| 41 | add_echo_handler(conf) |
| 42 | conf.end_vhost() |
| 43 | conf.start_vhost(domains=[f"pad8.{env.http_tld}"], port=env.https_port, doc_root="htdocs/cgi") |
| 44 | conf.add("H2Padding 8") |
| 45 | add_echo_handler(conf) |
| 46 | conf.end_vhost() |
| 47 | conf.install() |
| 48 | assert env.apache_restart() == 0 |
| 49 | |
| 50 | # default paddings settings: 0 bits |
| 51 | def test_h2_104_01(self, env, repeat): |
nothing calls this directly
no test coverage detected