summaryrefslogtreecommitdiffhomepage
path: root/test/test_php_basic.py
diff options
context:
space:
mode:
authorDan Callahan <d.callahan@f5.com>2024-02-27 15:15:42 +0000
committerDan Callahan <d.callahan@f5.com>2024-02-27 15:15:42 +0000
commitd76761901c4084bcdbc5a449e9bbb47d56b7093c (patch)
treeb4b7b4e3d588b73a2adcc0094cab466d9194c679 /test/test_php_basic.py
parentc43629880472bba8d389dfb0b7ae6d883b0ba499 (diff)
parent088117008c9e8f397a58cc8d8070ce047beff12f (diff)
downloadunit-d76761901c4084bcdbc5a449e9bbb47d56b7093c.tar.gz
unit-d76761901c4084bcdbc5a449e9bbb47d56b7093c.tar.bz2
Merge tag '1.32.0' into branches/packaging1.32.0-1
Unit 1.32.0 release.
Diffstat (limited to 'test/test_php_basic.py')
-rw-r--r--test/test_php_basic.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/test_php_basic.py b/test/test_php_basic.py
index 64754961..076b7498 100644
--- a/test/test_php_basic.py
+++ b/test/test_php_basic.py
@@ -14,7 +14,7 @@ conf_app = {
}
conf_basic = {
- "listeners": {"*:7080": {"pass": "applications/app"}},
+ "listeners": {"*:8080": {"pass": "applications/app"}},
"applications": conf_app,
}
@@ -60,14 +60,14 @@ def test_php_get_listeners():
assert 'success' in client.conf(conf_basic)
assert client.conf_get()['listeners'] == {
- "*:7080": {"pass": "applications/app"}
+ "*:8080": {"pass": "applications/app"}
}, 'listeners'
assert client.conf_get('listeners') == {
- "*:7080": {"pass": "applications/app"}
+ "*:8080": {"pass": "applications/app"}
}, 'listeners prefix'
- assert client.conf_get('listeners/*:7080') == {
+ assert client.conf_get('listeners/*:8080') == {
"pass": "applications/app"
}, 'listeners prefix 2'
@@ -75,23 +75,23 @@ def test_php_get_listeners():
def test_php_change_listener():
assert 'success' in client.conf(conf_basic)
assert 'success' in client.conf(
- {"*:7081": {"pass": "applications/app"}}, 'listeners'
+ {"*:8081": {"pass": "applications/app"}}, 'listeners'
)
assert client.conf_get('listeners') == {
- "*:7081": {"pass": "applications/app"}
+ "*:8081": {"pass": "applications/app"}
}, 'change listener'
def test_php_add_listener():
assert 'success' in client.conf(conf_basic)
assert 'success' in client.conf(
- {"pass": "applications/app"}, 'listeners/*:7082'
+ {"pass": "applications/app"}, 'listeners/*:8082'
)
assert client.conf_get('listeners') == {
- "*:7080": {"pass": "applications/app"},
- "*:7082": {"pass": "applications/app"},
+ "*:8080": {"pass": "applications/app"},
+ "*:8082": {"pass": "applications/app"},
}, 'add listener'
@@ -113,7 +113,7 @@ def test_php_delete():
assert 'success' in client.conf(conf_basic)
assert 'error' in client.conf_delete('applications/app')
- assert 'success' in client.conf_delete('listeners/*:7080')
+ assert 'success' in client.conf_delete('listeners/*:8080')
assert 'success' in client.conf_delete('applications/app')
assert 'error' in client.conf_delete('applications/app')
@@ -126,5 +126,5 @@ def test_php_delete_blocks():
assert 'success' in client.conf(conf_app, 'applications')
assert 'success' in client.conf(
- {"*:7081": {"pass": "applications/app"}}, 'listeners'
+ {"*:8081": {"pass": "applications/app"}}, 'listeners'
), 'applications restore'