mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
test_s3: fix test_list_multipart_upload
test wasn't really testing what it should have Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
d4978eb4d1
commit
fd33286494
1 changed files with 12 additions and 1 deletions
|
@ -3889,11 +3889,22 @@ def test_list_multipart_upload():
|
|||
bucket = get_new_bucket()
|
||||
key="mymultipart"
|
||||
upload1 = _multipart_upload(bucket, key, 5, 1)
|
||||
upload2 = _multipart_upload(bucket, key, 5, 1)
|
||||
upload2 = _multipart_upload(bucket, key, 6, 1)
|
||||
|
||||
key2="mymultipart2"
|
||||
upload3 = _multipart_upload(bucket, key2, 5, 1)
|
||||
|
||||
l = bucket.list_multipart_uploads()
|
||||
l = list(l)
|
||||
|
||||
index = dict([(key, 2), (key2, 1)])
|
||||
|
||||
for upload in l:
|
||||
index[upload.key_name] -= 1;
|
||||
|
||||
for k, c in index.items():
|
||||
eq(c, 0)
|
||||
|
||||
upload1.cancel_upload()
|
||||
upload2.cancel_upload()
|
||||
upload3.cancel_upload()
|
||||
|
|
Loading…
Reference in a new issue