From d4978eb4d12255d342a205bdc3127dfd224b0e61 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 6 Feb 2013 10:31:19 -0800 Subject: [PATCH] test_s3: check stats correct after multipart upload Signed-off-by: Yehuda Sadeh --- s3tests/functional/test_s3.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 258e3d8..29085cf 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -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')