mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
qa/rgw: add bucket-id param to 'bucket link' admin api test
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
3b795cc2c3
commit
638fa1de42
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user