]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test_s3: Add a test of multi-object delete.
authorcaleb miles <caleb.miles@inktank.com>
Thu, 9 Aug 2012 22:51:07 +0000 (15:51 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 28 Aug 2012 20:42:08 +0000 (13:42 -0700)
Tests the implementation of the multi-object delete function call.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
s3tests/functional/test_s3.py

index ae3abad3b8f8bf009d8dacc42fd53de51bd502e2..7f9a495aa2b61dfe964497cf97467a91ccce2f56 100644 (file)
@@ -779,6 +779,20 @@ def test_object_create_unreadable():
     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(method='all')
 @attr(operation='complete object life cycle')