From b9504f261169ff416e02d126649d05ba705b1714 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 077cf7ba..c58421da 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -5290,7 +5290,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() @@ -5298,7 +5297,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(): -- 2.39.5