summaryrefslogtreecommitdiffhomepage
path: root/test/test_variables.py
diff options
context:
space:
mode:
authorGabor Javorszky <g.javorszky@f5.com>2024-04-30 14:52:00 +0800
committerZhidao HONG <z.hong@f5.com>2024-05-09 09:51:34 +0800
commiteed21785b761f885d8e74fbbb21c05cc487a7ad0 (patch)
treeaf299f3f2f89183cb7907894ff713a8bb9d501ec /test/test_variables.py
parent87077ec4ba9a59f3332c3758a3c39a5c149025e5 (diff)
downloadunit-eed21785b761f885d8e74fbbb21c05cc487a7ad0.tar.gz
unit-eed21785b761f885d8e74fbbb21c05cc487a7ad0.tar.bz2
tests: Change request_uri tests for changed behaviour
Diffstat (limited to 'test/test_variables.py')
-rw-r--r--test/test_variables.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_variables.py b/test/test_variables.py
index 735a87b3..e20a3cd7 100644
--- a/test/test_variables.py
+++ b/test/test_variables.py
@@ -185,10 +185,10 @@ def test_variables_request_uri(
assert client.get(url='/blah%2Fblah?a=b')['status'] == 200
assert (
- wait_for_record(fr'^::1 /bar /bar\?a=b$', 'access.log') is not None
+ wait_for_record(fr'^::1 /bar /foo\?a=b$', 'access.log') is not None
), 'req 8081 (proxy) rewrite'
assert (
- search_in_file(fr'^127\.0\.0\.1 /foo /foo\?a=b$', 'access.log')
+ search_in_file(fr'^127\.0\.0\.1 /foo /blah%2Fblah\?a=b$', 'access.log')
is not None
), 'req 8080 rewrite'
@@ -201,11 +201,11 @@ def test_variables_request_uri(
assert (
wait_for_record(
- fr'^127\.0\.0\.1 /foo/foo /foo%2Ffoo\?a=b$', 'access.log'
+ fr'^127\.0\.0\.1 /foo/foo /blah%2Fblah\?a=b$', 'access.log'
)
is not None
), 'req 8080 percent'
- assert len(findall(fr'^::1 /bar /bar\?a=b$', 'access.log')) == 2
+ assert len(findall(fr'^::1 /bar /foo/foo\?a=b$', 'access.log')) == 1
def test_variables_uri(search_in_file, wait_for_record):