mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
Merge pull request #33 from andrewgaul/multi-delete
Ensure multi-delete removes keys Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
c9e76672df
1 changed files with 3 additions and 0 deletions
|
@ -869,14 +869,17 @@ def test_multi_object_delete():
|
|||
key1 = bucket.new_key('key1')
|
||||
key1.set_contents_from_string('bar')
|
||||
stored_keys = bucket.get_all_keys()
|
||||
eq(len(stored_keys), 2)
|
||||
result = bucket.delete_keys(stored_keys)
|
||||
eq(len(result.deleted), 2)
|
||||
eq(len(result.errors), 0)
|
||||
eq(len(bucket.get_all_keys()), 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)
|
||||
eq(len(bucket.get_all_keys()), 0)
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
|
|
Loading…
Reference in a new issue