radosgw-admin: fix for non-numeric bucket ids

This commit is contained in:
Sage Weil 2012-06-14 14:03:39 -07:00
parent 697c3b94c6
commit 3bd387f9e8

View File

@ -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