]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Test list_objects_v2 KeyCount with Delimiter 359/head
author胡玮文 <huww98@outlook.com>
Thu, 24 Sep 2020 16:28:06 +0000 (00:28 +0800)
committer胡玮文 <huww98@outlook.com>
Thu, 24 Sep 2020 16:28:15 +0000 (00:28 +0800)
Test for: https://github.com/ceph/ceph/pull/37396

Signed-off-by: 胡玮文 <huww98@outlook.com>
s3tests_boto3/functional/test_s3.py

index 969d28fd51f20a2bb330e0881b46a99b2e22b0d5..0aad5a4b7ae5efbdf77b3283fe515ce7969439cd 100644 (file)
@@ -229,6 +229,7 @@ def test_bucket_listv2_delimiter_basic():
     prefixes = _get_prefixes(response)
     eq(len(prefixes), 2)
     eq(prefixes, ['foo/', 'quux/'])
+    eq(response['KeyCount'], len(prefixes) + len(keys))
 
 
 @attr(resource='bucket')