Tests: added TLS test without close notify.

This commit is contained in:
Andrei Zeliankou
2021-05-26 21:47:12 +01:00
parent 3f7ccf142f
commit 753ce145f7

View File

@@ -2,6 +2,7 @@ import io
import re import re
import ssl import ssl
import subprocess import subprocess
import time
import pytest import pytest
@@ -501,6 +502,28 @@ basicConstraints = critical,CA:TRUE"""
assert resp['body'] == '0123456789', 'keepalive 2' assert resp['body'] == '0123456789', 'keepalive 2'
def test_tls_no_close_notify(self):
self.certificate()
assert 'success' in self.conf(
{
"listeners": {
"*:7080": {
"pass": "routes",
"tls": {"certificate": "default"},
}
},
"routes": [{"action": {"return": 200}}],
"applications": {},
}
), 'load application configuration'
(resp, sock) = self.get_ssl(start=True)
time.sleep(5)
sock.close()
@pytest.mark.skip('not yet') @pytest.mark.skip('not yet')
def test_tls_keepalive_certificate_remove(self): def test_tls_keepalive_certificate_remove(self):
self.load('empty') self.load('empty')