mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Fix tests II.
This commit is contained in:
parent
a3f7992442
commit
1141872db2
@ -15,7 +15,9 @@ def server(_bucket, _path):
|
||||
for name in request.headers:
|
||||
if name == 'Authorization' and request.headers[name] == 'Bearer TOKEN':
|
||||
return '1, 2, 3'
|
||||
abort(403)
|
||||
response.status = 403
|
||||
response.content_type = 'text/xml'
|
||||
return '<?xml version="1.0" encoding="UTF-8"?><Error><Code>ForbiddenError</Code><Message>Forbidden Error</Message><RequestId>txfbd566d03042474888193-00608d7537</RequestId></Error>'
|
||||
|
||||
|
||||
@route('/')
|
||||
|
@ -504,7 +504,7 @@ def test_custom_auth_headers_exclusion(cluster):
|
||||
print(result)
|
||||
|
||||
assert ei.value.returncode == 243
|
||||
assert '403 Forbidden' in ei.value.stderr
|
||||
assert 'Forbidden Error' in ei.value.stderr
|
||||
|
||||
|
||||
def test_infinite_redirect(cluster):
|
||||
|
Loading…
Reference in New Issue
Block a user