summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-04-08 19:11:11 +0300
committerMax Romanov <max.romanov@nginx.com>2021-04-08 19:11:11 +0300
commit74b1b1fc17726d805b00dee6b5547254f5cf230c (patch)
tree54c4fee99f1ff735431fe4b4f83fb7e04c7dacba /test/test_tls.py
parent30922c5741af0c712f465d0e98b71f8848c0db91 (diff)
downloadunit-74b1b1fc17726d805b00dee6b5547254f5cf230c.tar.gz
unit-74b1b1fc17726d805b00dee6b5547254f5cf230c.tar.bz2
Tests: preserving unit.log when run without restart.
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals.
Diffstat (limited to '')
-rw-r--r--test/test_tls.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index 63422dfb..abdca167 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -6,16 +6,11 @@ import subprocess
import pytest
from unit.applications.tls import TestApplicationTLS
-from unit.option import option
class TestTLS(TestApplicationTLS):
prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}}
- def findall(self, pattern):
- with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f:
- return re.findall(pattern, f.read())
-
def openssl_date_to_sec_epoch(self, date):
return self.date_to_sec_epoch(date, '%b %d %H:%M:%S %Y %Z')