From e856cbcee63657bbcdfd2ca0e3a5b7975dcb82a7 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Tue, 29 Nov 2016 11:57:03 +0100 Subject: [PATCH] test multi-delete with object with ending underscore Fixes: http://tracker.ceph.com/issues/18023 Signed-off-by: Orit Wasserman --- s3tests/functional/test_s3.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index f2a5e54..15ad1b9 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -1038,16 +1038,18 @@ def test_multi_object_delete(): key0.set_contents_from_string('foo') key1 = bucket.new_key('key1') key1.set_contents_from_string('bar') + key2 = bucket.new_key('_key2_') + key2.set_contents_from_string('underscore') stored_keys = bucket.get_all_keys() - eq(len(stored_keys), 2) + eq(len(stored_keys), 3) result = bucket.delete_keys(stored_keys) - eq(len(result.deleted), 2) + eq(len(result.deleted), 3) 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.deleted), 3) eq(len(result.errors), 0) eq(len(bucket.get_all_keys()), 0)