From: Pritha Srivastava Date: Wed, 20 Nov 2024 04:12:18 +0000 (+0530) Subject: rgw/s3tests: making the tests generic to check only X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14f5672d097f7b5c820526179b45adf11271036c;p=s3-tests.git 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 --- diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 85dfba16..f11d5730 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():