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 <prsrivas@redhat.com>
(cherry picked from commit 14f5672d09)
This commit is contained in:
Pritha Srivastava 2024-11-20 09:42:18 +05:30 committed by Casey Bodley
parent 1effe15a40
commit 811db45733

View file

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