forked from TrueCloudLab/s3-tests
test_s3: Add a test of multi-object delete.
Tests the implementation of the multi-object delete function call. Signed-off-by: caleb miles <caleb.miles@inktank.com>
This commit is contained in:
parent
09cdd45026
commit
834800f341
1 changed files with 14 additions and 0 deletions
|
@ -779,6 +779,20 @@ def test_object_create_unreadable():
|
||||||
key.set_contents_from_string('bar')
|
key.set_contents_from_string('bar')
|
||||||
|
|
||||||
|
|
||||||
|
@attr('fails_on_dho')
|
||||||
|
@attr(resource='object')
|
||||||
|
@attr(method='post')
|
||||||
|
@attr(operation='delete multiple objects')
|
||||||
|
@attr(assertion='deletes multiple objects with a single call')
|
||||||
|
def test_multi_object_delete():
|
||||||
|
bucket = get_new_bucket()
|
||||||
|
key0 = bucket.new_key('key0')
|
||||||
|
key0.set_contents_from_string('foo')
|
||||||
|
key1 = bucket.new_key('key1')
|
||||||
|
key1.set_contents_from_string('bar')
|
||||||
|
stored_keys = bucket.get_all_keys()
|
||||||
|
bucket.delete_keys(stored_keys)
|
||||||
|
|
||||||
@attr(resource='object')
|
@attr(resource='object')
|
||||||
@attr(method='all')
|
@attr(method='all')
|
||||||
@attr(operation='complete object life cycle')
|
@attr(operation='complete object life cycle')
|
||||||
|
|
Loading…
Reference in a new issue