summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2017-12-06 15:34:58 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2017-12-06 15:34:58 +0300
commit79b1d4f5ff664cba84108fd124d78362949faa99 (patch)
tree77e9c77bad026f0b54e553dc4ad4e1510b831c28 /test/test_configuration.py
parent078d44ea710d74027d3c563528c69ed87f321120 (diff)
downloadunit-79b1d4f5ff664cba84108fd124d78362949faa99.tar.gz
unit-79b1d4f5ff664cba84108fd124d78362949faa99.tar.bz2
Tests: port range changed to 7xxx.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r--test/test_configuration.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 863250cd..7d487e49 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -91,7 +91,7 @@ class TestUnitConfiguration(unit.TestUnitControl):
def test_json_listeners(self):
self.assertIn('error', self.put('/listeners',
- '{"*:8080":{"application":"app"}}'), 'listeners no app')
+ '{"*:7080":{"application":"app"}}'), 'listeners no app')
self.put('/applications', """
{
@@ -105,18 +105,18 @@ class TestUnitConfiguration(unit.TestUnitControl):
""")
self.assertIn('success', self.put('/listeners',
- '{"*:8080":{"application":"app"}}'), 'listeners wildcard')
+ '{"*:7080":{"application":"app"}}'), 'listeners wildcard')
self.assertIn('success', self.put('/listeners',
- '{"127.0.0.1:8081":{"application":"app"}}'), 'listeners explicit')
+ '{"127.0.0.1:7081":{"application":"app"}}'), 'listeners explicit')
self.assertIn('success', self.put('/listeners',
- '{"[::1]:8082":{"application":"app"}}'), 'listeners explicit ipv6')
+ '{"[::1]:7082":{"application":"app"}}'), 'listeners explicit ipv6')
self.assertIn('error', self.put('/listeners',
'{"127.0.0.1":{"application":"app"}}'), 'listeners no port')
@unittest.skip("TODO")
def test_broken(self):
self.assertIn('error', self.put('/', '00'), 'leading zero')
- self.assertIn('error', self.put('/listeners', '{"*:8080":{}}'),
+ self.assertIn('error', self.put('/listeners', '{"*:7080":{}}'),
'listener empty')
self.assertIn('error', self.put('/applications', '"type":"python"'),
'application type only')