mirror of
https://github.com/apache/httpd.git
synced 2025-08-06 11:06:17 +00:00

for prefork. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898417 13f79535-47bb-0310-9956-ffa450edef68
23 lines
719 B
Python
23 lines
719 B
Python
import pytest
|
|
|
|
from .env import H2Conf, H2TestEnv
|
|
|
|
|
|
@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here")
|
|
class TestBasicAlive:
|
|
|
|
@pytest.fixture(autouse=True, scope='class')
|
|
def _class_scope(self, env):
|
|
H2Conf(env).add_vhost_test1().install()
|
|
assert env.apache_restart() == 0
|
|
|
|
# we expect to see the document from the generic server
|
|
def test_h2_001_01(self, env):
|
|
url = env.mkurl("https", "test1", "/alive.json")
|
|
r = env.curl_get(url, 5)
|
|
assert r.exit_code == 0, r.stderr + r.stdout
|
|
assert r.response["json"]
|
|
assert r.response["json"]["alive"] is True
|
|
assert r.response["json"]["host"] == "test1"
|
|
|