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

@@ -493,27 +493,6 @@ basicConstraints = critical,CA:TRUE"""
}, 'subject alt_names'
assert cert['chain'][0]['issuer']['common_name'] == 'root', 'issuer'
@pytest.mark.skip('not yet')
def test_tls_reconfigure(self):
self.load('empty')
assert self.get()['status'] == 200, 'init'
self.certificate()
(resp, sock) = self.get(
headers={'Host': 'localhost', 'Connection': 'keep-alive'},
start=True,
read_timeout=1,
)
assert resp['status'] == 200, 'initial status'
self.add_tls()
assert self.get(sock=sock)['status'] == 200, 'reconfigure status'
assert self.get_ssl()['status'] == 200, 'reconfigure tls status'
def test_tls_keepalive(self):
self.load('mirror')