]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
rgw/s3tests: making the tests generic to check only 602/head
authorPritha Srivastava <prsrivas@redhat.com>
Wed, 20 Nov 2024 04:12:18 +0000 (09:42 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Wed, 20 Nov 2024 04:12:18 +0000 (09:42 +0530)
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>
s3tests_boto3/functional/test_s3.py

index 85dfba16dea688a3c1a976592f775934dcc64090..f11d5730c0c0a54abce2eb46b6f8e2205c39b61e 100644 (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():