summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_tls.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index 54fdb665..a56d5428 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -12,7 +12,7 @@ prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}}
client = ApplicationTLS()
-def add_tls(application='empty', cert='default', port=7080):
+def add_tls(application='empty', cert='default', port=8080):
assert 'success' in client.conf(
{
"pass": f"applications/{application}",
@@ -85,7 +85,7 @@ basicConstraints = critical,CA:TRUE"""
f.write('')
-def remove_tls(application='empty', port=7080):
+def remove_tls(application='empty', port=8080):
assert 'success' in client.conf(
{"pass": f"applications/{application}"}, f'listeners/*:{port}'
)
@@ -178,12 +178,12 @@ def test_tls_certificate_update():
add_tls()
- cert_old = ssl.get_server_certificate(('127.0.0.1', 7080))
+ cert_old = ssl.get_server_certificate(('127.0.0.1', 8080))
client.certificate()
assert cert_old != ssl.get_server_certificate(
- ('127.0.0.1', 7080)
+ ('127.0.0.1', 8080)
), 'update certificate'
@@ -207,12 +207,12 @@ def test_tls_certificate_change():
add_tls()
- cert_old = ssl.get_server_certificate(('127.0.0.1', 7080))
+ cert_old = ssl.get_server_certificate(('127.0.0.1', 8080))
add_tls(cert='new')
assert cert_old != ssl.get_server_certificate(
- ('127.0.0.1', 7080)
+ ('127.0.0.1', 8080)
), 'change certificate'
@@ -542,7 +542,7 @@ def test_tls_no_close_notify():
assert 'success' in client.conf(
{
"listeners": {
- "*:7080": {
+ "*:8080": {
"pass": "routes",
"tls": {"certificate": "default"},
}
@@ -576,7 +576,7 @@ def test_tls_keepalive_certificate_remove():
)
assert 'success' in client.conf(
- {"pass": "applications/empty"}, 'listeners/*:7080'
+ {"pass": "applications/empty"}, 'listeners/*:8080'
)
assert 'success' in client.conf_delete('/certificates/default')
@@ -697,8 +697,8 @@ def test_tls_multi_listener():
client.certificate()
add_tls()
- add_tls(port=7081)
+ add_tls(port=8081)
assert client.get_ssl()['status'] == 200, 'listener #1'
- assert client.get_ssl(port=7081)['status'] == 200, 'listener #2'
+ assert client.get_ssl(port=8081)['status'] == 200, 'listener #2'