mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
More precise test for rgw bad error message.
This commit is contained in:
parent
c87555d060
commit
820104b31f
1 changed files with 11 additions and 0 deletions
11
test_s3.py
11
test_s3.py
|
@ -184,6 +184,17 @@ def test_bucket_list_empty():
|
|||
eq(l, [])
|
||||
|
||||
|
||||
# TODO rgw gives NoSuchKey instead of NoSuchBucket
|
||||
@attr('fails_on_rgw')
|
||||
def test_bucket_notexist():
|
||||
name = '{prefix}foo'.format(prefix=prefix)
|
||||
print 'Trying bucket {name!r}'.format(name=name)
|
||||
e = assert_raises(boto.exception.S3ResponseError, s3.main.get_bucket, name)
|
||||
eq(e.status, 404)
|
||||
eq(e.reason, 'Not Found')
|
||||
eq(e.error_code, 'NoSuchBucket')
|
||||
|
||||
|
||||
# TODO rgw gives NoSuchKey instead of NoSuchBucket
|
||||
@attr('fails_on_rgw')
|
||||
def test_bucket_create_delete():
|
||||
|
|
Loading…
Reference in a new issue