summaryrefslogtreecommitdiffhomepage
path: root/test/test_php_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_php_basic.py
parent48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c (diff)
downloadunit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.gz
unit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.bz2
Tests: using "pass" option instead of deprecated "application".
Diffstat (limited to 'test/test_php_basic.py')
-rw-r--r--test/test_php_basic.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_php_basic.py b/test/test_php_basic.py
index d579afee..02ff81de 100644
--- a/test/test_php_basic.py
+++ b/test/test_php_basic.py
@@ -14,7 +14,7 @@ class TestPHPBasic(TestControl):
}
conf_basic = {
- "listeners": {"*:7080": {"application": "app"}},
+ "listeners": {"*:7080": {"pass": "applications/app"}},
"applications": conf_app,
}
@@ -82,7 +82,7 @@ class TestPHPBasic(TestControl):
self.assertEqual(
self.conf_get()['listeners'],
- {"*:7080": {"application": "app"}},
+ {"*:7080": {"pass": "applications/app"}},
'listeners',
)
@@ -91,7 +91,7 @@ class TestPHPBasic(TestControl):
self.assertEqual(
self.conf_get('listeners'),
- {"*:7080": {"application": "app"}},
+ {"*:7080": {"pass": "applications/app"}},
'listeners prefix',
)
@@ -100,29 +100,29 @@ class TestPHPBasic(TestControl):
self.assertEqual(
self.conf_get('listeners/*:7080'),
- {"application": "app"},
+ {"pass": "applications/app"},
'listeners prefix 2',
)
def test_php_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_php_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',
)