diff --git a/tests/integration/test_storage_s3/s3_mocks/mock_s3.py b/tests/integration/test_storage_s3/s3_mocks/mock_s3.py index 3e876689175..9009d345f49 100644 --- a/tests/integration/test_storage_s3/s3_mocks/mock_s3.py +++ b/tests/integration/test_storage_s3/s3_mocks/mock_s3.py @@ -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 'ForbiddenErrorForbidden Errortxfbd566d03042474888193-00608d7537' @route('/') diff --git a/tests/integration/test_storage_s3/test.py b/tests/integration/test_storage_s3/test.py index b1427c09981..667b8219b00 100644 --- a/tests/integration/test_storage_s3/test.py +++ b/tests/integration/test_storage_s3/test.py @@ -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):