summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_basic.py
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-04-22 18:20:53 +0300
committerValentin Bartenev <vbart@nginx.com>2019-04-22 18:20:53 +0300
commitc1a3b06d03c01e4ed40018944b90e6347ebf77d7 (patch)
treef05c71841d93db33ef71eca3e55c386746e58f47 /test/test_python_basic.py
parent48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c (diff)
downloadunit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.gz
unit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.bz2
Tests: using "pass" option instead of deprecated "application".
Diffstat (limited to '')
-rw-r--r--test/test_python_basic.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_python_basic.py b/test/test_python_basic.py
index c425718d..9987e886 100644
--- a/test/test_python_basic.py
+++ b/test/test_python_basic.py
@@ -14,7 +14,7 @@ class TestPythonBasic(TestControl):
}
conf_basic = {
- "listeners": {"*:7080": {"application": "app"}},
+ "listeners": {"*:7080": {"pass": "applications/app"}},
"applications": conf_app,
}
@@ -95,7 +95,7 @@ class TestPythonBasic(TestControl):
self.assertEqual(
self.conf_get()['listeners'],
- {"*:7080": {"application": "app"}},
+ {"*:7080": {"pass": "applications/app"}},
'listeners',
)
@@ -104,7 +104,7 @@ class TestPythonBasic(TestControl):
self.assertEqual(
self.conf_get('listeners'),
- {"*:7080": {"application": "app"}},
+ {"*:7080": {"pass": "applications/app"}},
'listeners prefix',
)
@@ -113,29 +113,29 @@ class TestPythonBasic(TestControl):
self.assertEqual(
self.conf_get('listeners/*:7080'),
- {"application": "app"},
+ {"pass": "applications/app"},
'listeners prefix 2',
)
def test_python_change_listener(self):
self.conf(self.conf_basic)
- self.conf({"*:7081": {"application": "app"}}, 'listeners')
+ self.conf({"*:7081": {"pass": "applications/app"}}, 'listeners')
self.assertEqual(
self.conf_get('listeners'),
- {"*:7081": {"application": "app"}},
+ {"*:7081": {"pass": "applications/app"}},
'change listener',
)
def test_python_add_listener(self):
self.conf(self.conf_basic)
- self.conf({"application": "app"}, 'listeners/*:7082')
+ self.conf({"pass": "applications/app"}, 'listeners/*:7082')
self.assertEqual(
self.conf_get('listeners'),
{
- "*:7080": {"application": "app"},
- "*:7082": {"application": "app"},
+ "*:7080": {"pass": "applications/app"},
+ "*:7082": {"pass": "applications/app"},
},
'add listener',
)