From 1141872db26dab5dbf53a193582d84be227cc449 Mon Sep 17 00:00:00 2001 From: Vladimir Chebotarev Date: Sun, 2 May 2021 13:55:24 +0300 Subject: [PATCH] Fix tests II. --- tests/integration/test_storage_s3/s3_mocks/mock_s3.py | 4 +++- tests/integration/test_storage_s3/test.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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):