mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
Test delete object on non-existent bucket
This commit is contained in:
parent
a23c81187b
commit
870c19a44b
1 changed files with 14 additions and 0 deletions
|
@ -2152,6 +2152,20 @@ def test_object_raw_get_bucket_gone():
|
|||
eq(res.reason, 'Not Found')
|
||||
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='delete')
|
||||
@attr(operation='deleted object and bucket')
|
||||
@attr(assertion='fails 404')
|
||||
def test_object_delete_key_bucket_gone():
|
||||
(bucket, key) = _setup_request()
|
||||
key.delete()
|
||||
bucket.delete()
|
||||
|
||||
e = assert_raises(boto.exception.S3ResponseError, key.delete)
|
||||
eq(e.status, 404)
|
||||
eq(e.reason, 'Not Found')
|
||||
eq(e.error_code, 'NoSuchBucket')
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='get')
|
||||
@attr(operation='deleted object')
|
||||
|
|
Loading…
Reference in a new issue