Project

General

Profile

Actions

Bug #63904

open

[RGW]list_objects_v2 API KeyCount incorrect

Added by Jinghua Zeng 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

s3-tests test case:
FAILED s3tests_boto3/functional/s3_api/test_list_objects_v2.py::test_bucket_listv2_delimiter_basic - AssertionError: assert 1 == (2 + 1)

correct is: len(prefixes) + len(keys)


Files

Actions #1

Updated by Jinghua Zeng 4 months ago

@set_test_case_description(
description=" <用例描述> \n")
@pytest.mark.list_objects_v2
def test_bucket_listv2_delimiter_basic():
bucket_name = _create_objects(keys=['foo/bar', 'foo/bar/xyzzy', 'quux/thud', 'asdf'])
client = get_client()

response = client.list_objects_v2(Bucket=bucket_name, Delimiter='/')
assert response['Delimiter'] == '/'
keys = _get_keys(response)
assert keys == ['asdf']
prefixes = _get_prefixes(response)
assert len(prefixes) 2
assert prefixes ['foo/', 'quux/']
assert response['KeyCount'] == len(prefixes) + len(keys)
Actions #2

Updated by Ilya Dryomov 4 months ago

  • Target version deleted (v18.2.0)
Actions

Also available in: Atom PDF