]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: add bucket-id param to 'bucket link' admin api test
authorCasey Bodley <cbodley@redhat.com>
Tue, 24 Jul 2018 19:20:46 +0000 (15:20 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 Jul 2018 18:29:47 +0000 (14:29 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/radosgw_admin_rest.py

index c54e1bf394b16d3ebc6a35b9d2494c310f06b71a..dfd76b3792bdd955a686702c6ab3abd2669acb15 100644 (file)
@@ -425,7 +425,12 @@ def task(ctx, config):
     key.delete()
 
     # link the bucket to another user
-    (ret, out) = rgwadmin_rest(admin_conn, ['bucket', 'link'], {'uid' : user2, 'bucket' : bucket_name})
+    (ret, out) = rgwadmin_rest(admin_conn,
+            ['bucket', 'link'],
+            {'uid' : user2,
+             'bucket' : bucket_name,
+             'bucket-id' : bucket_id,
+            })
 
     assert ret == 200
 
@@ -440,7 +445,12 @@ def task(ctx, config):
     assert denied
 
     # relink the bucket to the first user and delete the second user
-    (ret, out) = rgwadmin_rest(admin_conn, ['bucket', 'link'], {'uid' : user1, 'bucket' : bucket_name})
+    (ret, out) = rgwadmin_rest(admin_conn,
+            ['bucket', 'link'],
+            {'uid' : user1,
+             'bucket' : bucket_name,
+             'bucket-id' : bucket_id,
+            })
     assert ret == 200
 
     (ret, out) = rgwadmin_rest(admin_conn, ['user', 'rm'], {'uid' : user2})