From 834800f341362ffedb9aadf8575c561b15a35c59 Mon Sep 17 00:00:00 2001 From: caleb miles Date: Thu, 9 Aug 2012 15:51:07 -0700 Subject: [PATCH] test_s3: Add a test of multi-object delete. Tests the implementation of the multi-object delete function call. Signed-off-by: caleb miles --- s3tests/functional/test_s3.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index ae3abad..7f9a495 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -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')