From ae981dd3a83bd3992d746363bc0d9e64c1de182a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=8E=AE=E6=96=87?= Date: Fri, 25 Sep 2020 00:28:06 +0800 Subject: [PATCH] Test list_objects_v2 KeyCount with Delimiter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test for: https://github.com/ceph/ceph/pull/37396 Signed-off-by: 胡玮文 --- s3tests_boto3/functional/test_s3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 85d96d2..848487c 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -227,6 +227,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')