]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commitdiff
rgw/s3tests: making the tests generic to check only ceph-squid-19.2.2
authorPritha Srivastava <prsrivas@redhat.com>
Wed, 20 Nov 2024 04:12:18 +0000 (09:42 +0530)
committerCasey Bodley <cbodley@redhat.com>
Tue, 25 Mar 2025 17:48:51 +0000 (13:48 -0400)
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 14f5672d097f7b5c820526179b45adf11271036c)

s3tests_boto3/functional/test_s3.py

index 077cf7ba32f7ff15e83d27904db726b65086f08e..c58421da5ef475ededc8f91a2ea9f0554a114e00 100644 (file)
@@ -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():