Skip to content

Commit 6d6c68c

Browse files
javorszkyhongzhidao
authored andcommitted
tests: Change request_uri tests for changed behaviour
1 parent f8d1069 commit 6d6c68c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_variables.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ def check_request_uri(req_uri):
185185
assert client.get(url='/blah%2Fblah?a=b')['status'] == 200
186186

187187
assert (
188-
wait_for_record(fr'^::1 /bar /bar\?a=b$', 'access.log') is not None
188+
wait_for_record(fr'^::1 /bar /foo\?a=b$', 'access.log') is not None
189189
), 'req 8081 (proxy) rewrite'
190190
assert (
191-
search_in_file(fr'^127\.0\.0\.1 /foo /foo\?a=b$', 'access.log')
191+
search_in_file(fr'^127\.0\.0\.1 /foo /blah%2Fblah\?a=b$', 'access.log')
192192
is not None
193193
), 'req 8080 rewrite'
194194

@@ -201,11 +201,11 @@ def check_request_uri(req_uri):
201201

202202
assert (
203203
wait_for_record(
204-
fr'^127\.0\.0\.1 /foo/foo /foo%2Ffoo\?a=b$', 'access.log'
204+
fr'^127\.0\.0\.1 /foo/foo /blah%2Fblah\?a=b$', 'access.log'
205205
)
206206
is not None
207207
), 'req 8080 percent'
208-
assert len(findall(fr'^::1 /bar /bar\?a=b$', 'access.log')) == 2
208+
assert len(findall(fr'^::1 /bar /foo/foo\?a=b$', 'access.log')) == 1
209209

210210

211211
def test_variables_uri(search_in_file, wait_for_record):

0 commit comments

Comments
 (0)