mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
test_s3: check stats correct after multipart upload
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
f6fb47e513
commit
d4978eb4d1
1 changed files with 9 additions and 0 deletions
|
@ -3861,6 +3861,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')
|
||||
|
@ -3871,6 +3876,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…
Reference in a new issue