]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: check that data deletions work as well
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 10 Mar 2014 07:20:28 +0000 (00:20 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 10 Mar 2014 07:29:50 +0000 (00:29 -0700)
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/radosgw-admin.py

index aae49259bc5d2a136e54104e451362cf02a0a4ef..858726873b1271af8957e86d815a2726a31ac438 100644 (file)
@@ -445,6 +445,15 @@ def task(ctx, config):
             dest_k = dest_connection.get_bucket(bucket_name + 'data').get_key('tiny_file')
             assert k.get_contents_as_string() == dest_k.get_contents_as_string()
 
+            # check that deleting it removes it from the dest zone
+            k.delete()
+            time.sleep(rgw_utils.radosgw_data_log_window(ctx, source_client))
+            rgw_utils.radosgw_agent_sync_all(ctx, data=True)
+
+            dest_bucket = dest_connection.get_bucket(bucket_name + 'data')
+            dest_k = dest_bucket.get_key('tiny_file')
+            assert dest_k == None, 'object not deleted from destination zone'
+
         # finally we delete the bucket
         bucket.delete()