Fix tests II.

This commit is contained in:
Vladimir Chebotarev 2021-05-02 13:55:24 +03:00
parent a3f7992442
commit 1141872db2
2 changed files with 4 additions and 2 deletions

View File

@ -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('/')

View File

@ -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):