summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.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_tls.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_tls.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index 573e4ae1..5b669ddf 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -18,12 +18,17 @@ class TestTLS(TestApplicationTLS):
def add_tls(self, application='empty', cert='default', port=7080):
self.conf(
- {"application": application, "tls": {"certificate": cert}},
+ {
+ "pass": "applications/" + application,
+ "tls": {"certificate": cert}
+ },
'listeners/*:' + str(port),
)
def remove_tls(self, application='empty', port=7080):
- self.conf({"application": application}, 'listeners/*:' + str(port))
+ self.conf(
+ {"pass": "applications/" + application}, 'listeners/*:' + str(port)
+ )
def test_tls_listener_option_add(self):
self.load('empty')
@@ -482,7 +487,7 @@ basicConstraints = critical,CA:TRUE"""
read_timeout=1,
)
- self.conf({"application": "empty"}, 'listeners/*:7080')
+ self.conf({"pass": "applications/empty"}, 'listeners/*:7080')
self.conf_delete('/certificates/default')
try: