mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
Merge pull request #34 from andrewgaul/abort-multipart-upload-not-found
Add test for aborting a bogus multi-part upload Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
d2de82d020
1 changed files with 8 additions and 0 deletions
|
@ -4540,6 +4540,14 @@ def test_abort_multipart_upload():
|
|||
eq(obj_count, 0)
|
||||
eq(bytes_used, 0)
|
||||
|
||||
def test_abort_multipart_upload_not_found():
|
||||
bucket = get_new_bucket()
|
||||
key="mymultipart"
|
||||
e = assert_raises(boto.exception.S3ResponseError, bucket.cancel_multipart_upload, key, '1')
|
||||
eq(e.status, 404)
|
||||
eq(e.reason, 'Not Found')
|
||||
eq(e.error_code, 'NoSuchUpload')
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='concurrent multi-part uploads')
|
||||
|
|
Loading…
Reference in a new issue