mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
test_s3: extend multi-delete test
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
9a22d94aeb
commit
1b3d766621
1 changed files with 8 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue