From 30db28e775ad010d2a4b130d0087fa3b6eff8185 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 969d28f..0aad5a4 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -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')