From c1a3b06d03c01e4ed40018944b90e6347ebf77d7 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 22 Apr 2019 18:20:53 +0300 Subject: Tests: using "pass" option instead of deprecated "application". --- test/test_tls.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test/test_tls.py') 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: -- cgit