From eed21785b761f885d8e74fbbb21c05cc487a7ad0 Mon Sep 17 00:00:00 2001 From: Gabor Javorszky Date: Tue, 30 Apr 2024 14:52:00 +0800 Subject: tests: Change request_uri tests for changed behaviour --- test/test_variables.py | 8 ++++---- 1 file 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): -- cgit