diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-23 15:26:52 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-23 15:26:52 +0300 |
commit | 0658f9bd710471229ef2518efa6590787999fd02 (patch) | |
tree | d3a7deff35b5d6f7750c4a76c22991b5d8f7f807 | |
parent | b6226d6945dfb325fda04d15a95ae86e5cbd07ab (diff) | |
download | unit-0658f9bd710471229ef2518efa6590787999fd02.tar.gz unit-0658f9bd710471229ef2518efa6590787999fd02.tar.bz2 |
Tests: added access log test with unix socket.
-rw-r--r-- | test/test_access_log.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test_access_log.py b/test/test_access_log.py index 58497f47..a2b3287e 100644 --- a/test/test_access_log.py +++ b/test/test_access_log.py @@ -97,6 +97,26 @@ Connection: close self.search_in_log( r'::1 - - \[.+\] "GET / HTTP/1.1" 200 0 "-" "-"'), 'ipv6') + def test_access_log_unix(self): + self.load('empty') + + addr = self.testdir + '/sock' + + self.conf({ + "unix:" + addr: { + "application": "empty" + } + }, '/listeners') + + self.get(sock_type='unix', addr=addr) + + time.sleep(0.2) + + self.stop() + + self.assertIsNotNone(self.search_in_log( + r'unix: - - \[.+\] "GET / HTTP/1.1" 200 0 "-" "-"'), 'unix') + def test_access_log_referer(self): self.load('empty') |