test_tls_sni.py (2073:bc6ad31ce286) test_tls_sni.py (2144:b14caaedca5e)
1import ssl
2import subprocess
3
4from unit.applications.tls import TestApplicationTLS
5from unit.option import option
6
7
8class TestTLSSNI(TestApplicationTLS):

--- 4 unchanged lines hidden (view full) ---

13 {
14 "listeners": {"*:7080": {"pass": "routes"}},
15 "routes": [{"action": {"return": 200}}],
16 "applications": {},
17 }
18 )
19
20 def openssl_date_to_sec_epoch(self, date):
1import ssl
2import subprocess
3
4from unit.applications.tls import TestApplicationTLS
5from unit.option import option
6
7
8class TestTLSSNI(TestApplicationTLS):

--- 4 unchanged lines hidden (view full) ---

13 {
14 "listeners": {"*:7080": {"pass": "routes"}},
15 "routes": [{"action": {"return": 200}}],
16 "applications": {},
17 }
18 )
19
20 def openssl_date_to_sec_epoch(self, date):
21 return self.date_to_sec_epoch(date, '%b %d %H:%M:%S %Y %Z')
21 return self.date_to_sec_epoch(date, '%b %d %X %Y %Z')
22
23 def add_tls(self, cert='default'):
24 assert 'success' in self.conf(
25 {"pass": "routes", "tls": {"certificate": cert}},
26 'listeners/*:7080',
27 )
28
29 def remove_tls(self):

--- 264 unchanged lines hidden ---
22
23 def add_tls(self, cert='default'):
24 assert 'success' in self.conf(
25 {"pass": "routes", "tls": {"certificate": cert}},
26 'listeners/*:7080',
27 )
28
29 def remove_tls(self):

--- 264 unchanged lines hidden ---