mirror of
https://github.com/ceph/s3-tests.git
synced 2025-01-09 11:19:07 +00:00
Merge pull request #602 from pritha-srivastava/wip-rgw-change-err-code
rgw/s3tests: making the tests generic to check only
This commit is contained in:
commit
391587a062
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)
|
e = assert_raises(ClientError, bad_auth_client.list_buckets)
|
||||||
status, error_code = _get_status_and_error_code(e.response)
|
status, error_code = _get_status_and_error_code(e.response)
|
||||||
assert status == 403
|
assert status == 403
|
||||||
assert error_code == 'InvalidAccessKeyId'
|
|
||||||
|
|
||||||
def test_list_buckets_bad_auth():
|
def test_list_buckets_bad_auth():
|
||||||
main_access_key = get_main_aws_access_key()
|
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)
|
e = assert_raises(ClientError, bad_auth_client.list_buckets)
|
||||||
status, error_code = _get_status_and_error_code(e.response)
|
status, error_code = _get_status_and_error_code(e.response)
|
||||||
assert status == 403
|
assert status == 403
|
||||||
assert error_code == 'SignatureDoesNotMatch'
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def override_prefix_a():
|
def override_prefix_a():
|
||||||
|
|
Loading…
Reference in a new issue