mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
radosgw-admin: fix for non-numeric bucket ids
This commit is contained in:
parent
697c3b94c6
commit
3bd387f9e8
@ -269,7 +269,7 @@ def task(ctx, config):
|
||||
|
||||
# TESTCASE 'bucket-stats5','bucket','stats','after creating key','succeeds, lists one non-empty object'
|
||||
(err, out) = rgwadmin(ctx, client, [
|
||||
'bucket', 'stats', '--bucket-id', '%d' % bucket_id])
|
||||
'bucket', 'stats', '--bucket-id', bucket_id])
|
||||
assert not err
|
||||
assert out['id'] == bucket_id
|
||||
assert out['usage']['rgw.main']['num_objects'] == 1
|
||||
@ -280,7 +280,7 @@ def task(ctx, config):
|
||||
|
||||
# TESTCASE 'bucket-stats6','bucket','stats','after deleting key','succeeds, lists one no objects'
|
||||
(err, out) = rgwadmin(ctx, client, [
|
||||
'bucket', 'stats', '--bucket-id', '%d' % bucket_id])
|
||||
'bucket', 'stats', '--bucket-id', bucket_id])
|
||||
assert not err
|
||||
assert out['id'] == bucket_id
|
||||
assert out['usage']['rgw.main']['num_objects'] == 0
|
||||
|
Loading…
Reference in New Issue
Block a user