diff options
Diffstat (limited to 'test/modules/http2/test_100_conn_reuse.py')
-rw-r--r-- | test/modules/http2/test_100_conn_reuse.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/modules/http2/test_100_conn_reuse.py b/test/modules/http2/test_100_conn_reuse.py index cef2f9d07b..763288e396 100644 --- a/test/modules/http2/test_100_conn_reuse.py +++ b/test/modules/http2/test_100_conn_reuse.py @@ -1,17 +1,17 @@ import pytest -from h2_conf import HttpdConf +from .env import H2Conf class TestStore: @pytest.fixture(autouse=True, scope='class') def _class_scope(self, env): - HttpdConf(env).add_vhost_noh2().add_vhost_test1().add_vhost_cgi().install() + H2Conf(env).add_vhost_noh2().add_vhost_test1().add_vhost_cgi().install() assert env.apache_restart() == 0 # make sure the protocol selection on the different hosts work as expected - def test_100_01(self, env): + def test_h2_100_01(self, env): # this host defaults to h2, but we can request h1 url = env.mkurl("https", "cgi", "/hello.py") assert "2" == env.curl_protocol_version( url ) @@ -23,7 +23,7 @@ class TestStore: assert "1.1" == env.curl_protocol_version( url, options=[ "--http2" ] ) # access a ServerAlias, after using ServerName in SNI - def test_100_02(self, env): + def test_h2_100_02(self, env): url = env.mkurl("https", "cgi", "/hello.py") hostname = ("cgi-alias.%s" % env.http_tld) r = env.curl_get(url, 5, [ "-H", "Host:%s" % hostname ]) @@ -32,7 +32,7 @@ class TestStore: assert hostname == r.response["json"]["host"] # access another vhost, after using ServerName in SNI, that uses same SSL setup - def test_100_03(self, env): + def test_h2_100_03(self, env): url = env.mkurl("https", "cgi", "/") hostname = ("test1.%s" % env.http_tld) r = env.curl_get(url, 5, [ "-H", "Host:%s" % hostname ]) @@ -42,14 +42,14 @@ class TestStore: # access another vhost, after using ServerName in SNI, # that has different SSL certificate. This triggers a 421 (misdirected request) response. - def test_100_04(self, env): + def test_h2_100_04(self, env): url = env.mkurl("https", "cgi", "/hello.py") hostname = ("noh2.%s" % env.http_tld) r = env.curl_get(url, 5, [ "-H", "Host:%s" % hostname ]) assert 421 == r.response["status"] # access an unknown vhost, after using ServerName in SNI - def test_100_05(self, env): + def test_h2_100_05(self, env): url = env.mkurl("https", "cgi", "/hello.py") hostname = ("unknown.%s" % env.http_tld) r = env.curl_get(url, 5, [ "-H", "Host:%s" % hostname ]) |