summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-01-14 03:04:20 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-01-14 03:04:20 +0000
commitd43a84139d1adedbae8def67c8bbee09d8cf4581 (patch)
tree4e1b9ae1c6915e38fe0bf2de3d224cb9d1eb6c9b /test/test_tls.py
parent5d983ea762eba5fe26a07defbc09eeec8ecc5aeb (diff)
downloadunit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.gz
unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.bz2
Tests: added missing checks for configuration results.
Diffstat (limited to 'test/test_tls.py')
-rw-r--r--test/test_tls.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index f5df5ee1..89c57d07 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -19,7 +19,7 @@ class TestTLS(TestApplicationTLS):
return self.date_to_sec_epoch(date, '%b %d %H:%M:%S %Y %Z')
def add_tls(self, application='empty', cert='default', port=7080):
- self.conf(
+ assert 'success' in self.conf(
{
"pass": "applications/" + application,
"tls": {"certificate": cert}
@@ -28,7 +28,7 @@ class TestTLS(TestApplicationTLS):
)
def remove_tls(self, application='empty', port=7080):
- self.conf(
+ assert 'success' in self.conf(
{"pass": "applications/" + application}, 'listeners/*:' + str(port)
)
@@ -477,8 +477,10 @@ basicConstraints = critical,CA:TRUE"""
read_timeout=1,
)
- self.conf({"pass": "applications/empty"}, 'listeners/*:7080')
- self.conf_delete('/certificates/default')
+ assert 'success' in self.conf(
+ {"pass": "applications/empty"}, 'listeners/*:7080'
+ )
+ assert 'success' in self.conf_delete('/certificates/default')
try:
resp = self.get_ssl(
@@ -508,7 +510,7 @@ basicConstraints = critical,CA:TRUE"""
self.certificate()
- self.conf('1', 'applications/mirror/processes')
+ assert 'success' in self.conf('1', 'applications/mirror/processes')
self.add_tls(application='mirror')