mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-27 23:31:41 +00:00
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:
parent
1effe15a40
commit
811db45733
1 changed files with 0 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue