Tests: added TLS test without close notify.
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user