From: Yehuda Sadeh Date: Tue, 1 Apr 2014 19:20:08 +0000 (-0700) Subject: test_s3: extend multi-delete test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b3d7666210b27cfa165cb9697fe1ff011ffba22;p=s3-tests.git test_s3: extend multi-delete test Signed-off-by: Yehuda Sadeh --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index dfb105e2..464fbe1e 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -807,7 +807,14 @@ def test_multi_object_delete(): key1 = bucket.new_key('key1') key1.set_contents_from_string('bar') stored_keys = bucket.get_all_keys() - bucket.delete_keys(stored_keys) + result = bucket.delete_keys(stored_keys) + eq(len(result.deleted), 2) + eq(len(result.errors), 0) + + # now remove again, should all succeed due to idempotency + result = bucket.delete_keys(stored_keys) + eq(len(result.deleted), 2) + eq(len(result.errors), 0) @attr(resource='object') @attr(method='all')