From dcad92eb85e2b91a2f9ae22e963ad96f6b171fcb Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 10 Mar 2014 00:20:28 -0700 Subject: [PATCH] radosgw-admin: check that data deletions work as well Signed-off-by: Josh Durgin --- teuthology/task/radosgw-admin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/task/radosgw-admin.py b/teuthology/task/radosgw-admin.py index aae49259bc5d2..858726873b127 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() -- 2.39.5