summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.py
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-09-13 13:17:16 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-09-13 13:17:16 +0400
commitce964aa30b163e2b3263c5af57c1a6dae7d0cebb (patch)
tree26bf70c1a5991f6471fc4caed8628e068fdc0b7b /test/test_configuration.py
parenteba4c3c98fa1bf275d94df8c727f70692ae7eae1 (diff)
parent38bd7e76a134084ab95a4ee3125af1ccd7b35864 (diff)
downloadunit-ce964aa30b163e2b3263c5af57c1a6dae7d0cebb.tar.gz
unit-ce964aa30b163e2b3263c5af57c1a6dae7d0cebb.tar.bz2
Merged with the default branch.1.28.0-1
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r--test/test_configuration.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 4a9d9840..7c612db0 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -2,6 +2,7 @@ import socket
import pytest
from unit.control import TestControl
+from unit.option import option
class TestConfiguration(TestControl):
@@ -226,6 +227,15 @@ class TestConfiguration(TestControl):
{"*:7080": {"pass": "applications/app"}}, 'listeners'
), 'listeners no app'
+ def test_listeners_unix_abstract(self):
+ if option.system != 'Linux':
+ assert 'error' in self.try_addr("unix:@sock"), 'abstract at'
+
+ pytest.skip('not yet')
+
+ assert 'error' in self.try_addr("unix:\0soc"), 'abstract \0'
+ assert 'error' in self.try_addr("unix:\u0000soc"), 'abstract \0 unicode'
+
def test_listeners_addr(self):
assert 'success' in self.try_addr("*:7080"), 'wildcard'
assert 'success' in self.try_addr("127.0.0.1:7081"), 'explicit'