Test list_objects_v2 KeyCount with Delimiter

Test for: https://github.com/ceph/ceph/pull/37396

Signed-off-by: 胡玮文 <huww98@outlook.com>
This commit is contained in:
胡玮文 2020-09-25 00:28:06 +08:00 committed by Casey Bodley
parent 5e0cea1c07
commit ae981dd3a8

View file

@ -227,6 +227,7 @@ def test_bucket_listv2_delimiter_basic():
prefixes = _get_prefixes(response) prefixes = _get_prefixes(response)
eq(len(prefixes), 2) eq(len(prefixes), 2)
eq(prefixes, ['foo/', 'quux/']) eq(prefixes, ['foo/', 'quux/'])
eq(response['KeyCount'], len(prefixes) + len(keys))
@attr(resource='bucket') @attr(resource='bucket')