Tests: added more tests with reconfiguration.

This commit is contained in:
Andrei Zeliankou
2022-05-09 10:14:29 +01:00
parent 9c276d4d60
commit 03a7701133
4 changed files with 155 additions and 51 deletions

View File

@@ -293,36 +293,6 @@ custom-header: BLAH
assert resp == {}, 'reconfigure 2 keep-alive 3'
def test_python_keepalive_reconfigure_3(self):
self.load('empty')
assert self.get()['status'] == 200, 'init'
(_, sock) = self.http(
b"""GET / HTTP/1.1
""",
start=True,
raw=True,
no_recv=True,
)
assert self.get()['status'] == 200
assert 'success' in self.conf(
{"listeners": {}, "applications": {}}
), 'reconfigure 3 clear configuration'
resp = self.http(
b"""Host: localhost
Connection: close
""",
sock=sock,
raw=True,
)
assert resp['status'] == 200, 'reconfigure 3'
def test_python_atexit(self):
self.load('atexit')