diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-04-22 18:20:53 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-04-22 18:20:53 +0300 |
commit | c1a3b06d03c01e4ed40018944b90e6347ebf77d7 (patch) | |
tree | f05c71841d93db33ef71eca3e55c386746e58f47 /test/test_configuration.py | |
parent | 48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c (diff) | |
download | unit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.gz unit-c1a3b06d03c01e4ed40018944b90e6347ebf77d7.tar.bz2 |
Tests: using "pass" option instead of deprecated "application".
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r-- | test/test_configuration.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index 74596ed8..51c6f6a2 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -200,7 +200,7 @@ class TestConfiguration(TestControl): def test_listeners_no_app(self): self.assertIn( 'error', - self.conf({"*:7080": {"application": "app"}}, 'listeners'), + self.conf({"*:7080": {"pass": "applications/app"}}, 'listeners'), 'listeners no app', ) @@ -209,7 +209,7 @@ class TestConfiguration(TestControl): 'success', self.conf( { - "listeners": {"*:7080": {"application": "app"}}, + "listeners": {"*:7080": {"pass": "applications/app"}}, "applications": { "app": { "type": "python", @@ -228,7 +228,7 @@ class TestConfiguration(TestControl): 'success', self.conf( { - "listeners": {"127.0.0.1:7080": {"application": "app"}}, + "listeners": {"127.0.0.1:7080": {"pass": "applications/app"}}, "applications": { "app": { "type": "python", @@ -247,7 +247,7 @@ class TestConfiguration(TestControl): 'success', self.conf( { - "listeners": {"[::1]:7080": {"application": "app"}}, + "listeners": {"[::1]:7080": {"pass": "applications/app"}}, "applications": { "app": { "type": "python", @@ -274,7 +274,7 @@ class TestConfiguration(TestControl): 'error', self.conf( { - "listeners": {"127.0.0.1": {"application": "app"}}, + "listeners": {"127.0.0.1": {"pass": "applications/app"}}, "applications": { "app": { "type": "python", @@ -295,7 +295,7 @@ class TestConfiguration(TestControl): 'success', self.conf( { - "listeners": {"*:7080": {"application": name}}, + "listeners": {"*:7080": {"pass": "applications/" + name}}, "applications": { name: { "type": "python", @@ -327,7 +327,7 @@ class TestConfiguration(TestControl): for a in range(apps) }, "listeners": { - "*:" + str(7000 + a): {"application": "app-" + str(a)} + "*:" + str(7000 + a): {"pass": "applications/app-" + str(a)} for a in range(apps) }, } @@ -350,7 +350,7 @@ class TestConfiguration(TestControl): } for a in range(999) }, - "listeners": {"*:7001": {"application": "app-1"}}, + "listeners": {"*:7001": {"pass": "applications/app-1"}}, } self.assertIn('success', self.conf(conf)) |