Deleted
Added
test_tls.py (1596:b7e2d4d92624) | test_tls.py (1635:97afbb6c5a15) |
---|---|
1import io | 1import io |
2import pytest | |
3import re 4import ssl 5import subprocess 6 | 2import re 3import ssl 4import subprocess 5 |
7from unit.applications.tls import TestApplicationTLS | 6import pytest 7 |
8from conftest import skip_alert | 8from conftest import skip_alert |
9from unit.applications.tls import TestApplicationTLS |
|
9 10 11class TestTLS(TestApplicationTLS): 12 prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}} 13 14 def findall(self, pattern): 15 with open(self.temp_dir + '/unit.log', 'r', errors='ignore') as f: 16 return re.findall(pattern, f.read()) --- 505 unchanged lines hidden (view full) --- 522 app_id = self.findall(r'(\d+)#\d+ "mirror" application started')[0] 523 524 subprocess.call(['kill', '-9', app_id]) 525 526 skip_alert(r'process %s exited on signal 9' % app_id) 527 528 self.wait_for_record( 529 re.compile( | 10 11 12class TestTLS(TestApplicationTLS): 13 prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}} 14 15 def findall(self, pattern): 16 with open(self.temp_dir + '/unit.log', 'r', errors='ignore') as f: 17 return re.findall(pattern, f.read()) --- 505 unchanged lines hidden (view full) --- 523 app_id = self.findall(r'(\d+)#\d+ "mirror" application started')[0] 524 525 subprocess.call(['kill', '-9', app_id]) 526 527 skip_alert(r'process %s exited on signal 9' % app_id) 528 529 self.wait_for_record( 530 re.compile( |
530 ' (?!' + app_id + '#)(\d+)#\d+ "mirror" application started' | 531 r' (?!' + app_id + r'#)(\d+)#\d+ "mirror" application started' |
531 ) 532 ) 533 534 resp = self.post_ssl( 535 headers={ 536 'Host': 'localhost', 537 'Connection': 'close', 538 'Content-Type': 'text/html', --- 60 unchanged lines hidden --- | 532 ) 533 ) 534 535 resp = self.post_ssl( 536 headers={ 537 'Host': 'localhost', 538 'Connection': 'close', 539 'Content-Type': 'text/html', --- 60 unchanged lines hidden --- |