mirror of
https://github.com/ceph/s3-tests.git
synced 2025-02-16 11:16:31 +00:00
test_s3: check stats correct after multipart upload
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
9ce2f75648
commit
d9a8eaac4d
1 changed files with 9 additions and 0 deletions
|
@ -2882,6 +2882,11 @@ def test_multipart_upload():
|
|||
upload = _multipart_upload(bucket, key, 30)
|
||||
upload.complete_upload()
|
||||
|
||||
(obj_count, bytes_used) = _head_bucket(bucket)
|
||||
|
||||
eq(obj_count, 1)
|
||||
eq(bytes_used, 30 * 1024 * 1024)
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='abort multi-part upload')
|
||||
|
@ -2892,6 +2897,10 @@ def test_abort_multipart_upload():
|
|||
upload = _multipart_upload(bucket, key, 10)
|
||||
upload.cancel_upload()
|
||||
|
||||
(obj_count, bytes_used) = _head_bucket(bucket)
|
||||
|
||||
eq(obj_count, 0)
|
||||
eq(bytes_used, 0)
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
|
|
Loading…
Add table
Reference in a new issue