mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
qa: radosgw_admin: validate a simple user stats output
In order to validate that we create user stats correctly Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
parent
efe91beccf
commit
5d0f33c603
@ -553,6 +553,12 @@ def task(ctx, config):
|
||||
assert out['usage']['rgw.main']['num_objects'] == 1
|
||||
assert out['usage']['rgw.main']['size_kb'] > 0
|
||||
|
||||
#validate we have a positive user stats now
|
||||
(err, out) = rgwadmin(ctx, client,
|
||||
['user', 'stats','--uid', user1, '--sync-stats'],
|
||||
check_status=True)
|
||||
assert out['stats']['size'] > 0
|
||||
|
||||
# reclaim it
|
||||
key.delete()
|
||||
rl.log_and_clear("delete_obj", bucket_name, user1)
|
||||
|
Loading…
Reference in New Issue
Block a user