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
parent 54103207e4
commit 30db28e775

View file

@ -229,6 +229,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')