diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-01-14 03:04:20 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-01-14 03:04:20 +0000 |
commit | d43a84139d1adedbae8def67c8bbee09d8cf4581 (patch) | |
tree | 4e1b9ae1c6915e38fe0bf2de3d224cb9d1eb6c9b /test/test_access_log.py | |
parent | 5d983ea762eba5fe26a07defbc09eeec8ecc5aeb (diff) | |
download | unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.gz unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.bz2 |
Tests: added missing checks for configuration results.
Diffstat (limited to 'test/test_access_log.py')
-rw-r--r-- | test/test_access_log.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/test_access_log.py b/test/test_access_log.py index 045473ae..65d5e50a 100644 --- a/test/test_access_log.py +++ b/test/test_access_log.py @@ -90,7 +90,9 @@ Connection: close def test_access_log_ipv6(self): self.load('empty') - self.conf({"[::1]:7080": {"pass": "applications/empty"}}, 'listeners') + assert 'success' in self.conf( + {"[::1]:7080": {"pass": "applications/empty"}}, 'listeners' + ) self.get(sock_type='ipv6') @@ -106,7 +108,7 @@ Connection: close addr = option.temp_dir + '/sock' - self.conf( + assert 'success' in self.conf( {"unix:" + addr: {"pass": "applications/empty"}}, 'listeners' ) @@ -240,7 +242,7 @@ Connection: close def test_access_log_delete(self): self.load('empty') - self.conf_delete('access_log') + assert 'success' in self.conf_delete('access_log') self.get(url='/delete') @@ -251,7 +253,9 @@ Connection: close self.get() - self.conf('"' + option.temp_dir + '/new.log"', 'access_log') + assert 'success' in self.conf( + '"' + option.temp_dir + '/new.log"', 'access_log' + ) self.get() |