From: Josh Durgin Date: Mon, 10 Mar 2014 07:20:28 +0000 (-0700) Subject: radosgw-admin: check that data deletions work as well X-Git-Tag: 1.1.0~1597 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dcad92eb85e2b91a2f9ae22e963ad96f6b171fcb;p=teuthology.git radosgw-admin: check that data deletions work as well Signed-off-by: Josh Durgin --- diff --git a/teuthology/task/radosgw-admin.py b/teuthology/task/radosgw-admin.py index aae49259bc..858726873b 100644 --- a/teuthology/task/radosgw-admin.py +++ b/teuthology/task/radosgw-admin.py @@ -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()