From 811db457337ef1a4c468039e973b314ef088bc35 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Wed, 20 Nov 2024 09:42:18 +0530 Subject: [PATCH] rgw/s3tests: making the tests generic to check only for 403 error code (and not specific errors) so that the tests pass for any order of auth engines. Signed-off-by: Pritha Srivastava (cherry picked from commit 14f5672d097f7b5c820526179b45adf11271036c) --- s3tests_boto3/functional/test_s3.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 2997771..a5c5863 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -5296,7 +5296,6 @@ def test_list_buckets_invalid_auth(): e = assert_raises(ClientError, bad_auth_client.list_buckets) status, error_code = _get_status_and_error_code(e.response) assert status == 403 - assert error_code == 'InvalidAccessKeyId' def test_list_buckets_bad_auth(): main_access_key = get_main_aws_access_key() @@ -5304,7 +5303,6 @@ def test_list_buckets_bad_auth(): e = assert_raises(ClientError, bad_auth_client.list_buckets) status, error_code = _get_status_and_error_code(e.response) assert status == 403 - assert error_code == 'SignatureDoesNotMatch' @pytest.fixture def override_prefix_a():