1
0
Fork 0
apache2/test/modules/http1/test_001_alive.py
Daniel Baumann 7263481e48
Adding upstream version 2.4.63.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:26 +02:00

20 lines
612 B
Python

import pytest
from .env import H1Conf
class TestBasicAlive:
@pytest.fixture(autouse=True, scope='class')
def _class_scope(self, env):
H1Conf(env).add_vhost_test1().install()
assert env.apache_restart() == 0
# we expect to see the document from the generic server
def test_h1_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"