diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
commit | 511a0fa7605e61f90e524edfbcbefa230573e32f (patch) | |
tree | 011538ece353c804605a05452daa344e8be2d2fd /test/test_access_log.py | |
parent | 58d23eb5b4cc15a11fa4550dc165b6be4797525a (diff) | |
download | unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.gz unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.bz2 |
Tests: used relative path for configuration.
Diffstat (limited to 'test/test_access_log.py')
-rw-r--r-- | test/test_access_log.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_access_log.py b/test/test_access_log.py index bee7a7e5..05f5f54a 100644 --- a/test/test_access_log.py +++ b/test/test_access_log.py @@ -13,7 +13,7 @@ class TestUnitAccessLog(unit.TestUnitApplicationPython): def load(self, script): super().load(script) - self.conf('"' + self.testdir + '/access.log"', '/access_log') + self.conf('"' + self.testdir + '/access.log"', 'access_log') def search_in_log(self, pattern, name='access.log'): with open(self.testdir + '/' + name, 'r') as f: @@ -85,7 +85,7 @@ Connection: close "[::1]:7080": { "application": "empty" } - }, '/listeners') + }, 'listeners') self.get(sock_type='ipv6') @@ -106,7 +106,7 @@ Connection: close "unix:" + addr: { "application": "empty" } - }, '/listeners') + }, 'listeners') self.get(sock_type='unix', addr=addr) @@ -240,7 +240,7 @@ Connection: close def test_access_log_delete(self): self.load('empty') - self.conf_delete('/access_log') + self.conf_delete('access_log') self.get(url='/delete') @@ -255,7 +255,7 @@ Connection: close self.get() - self.conf('"' + self.testdir + '/new.log"', '/access_log') + self.conf('"' + self.testdir + '/new.log"', 'access_log') self.get() |