Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3tests_boto3/functional/test_s3.py: add test for list object versions with key marker #594

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions s3tests_boto3/functional/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,22 @@ def test_bucket_list_return_data_versioning():
assert obj['VersionId'] == key_data['VersionId']
_compare_dates(obj['LastModified'],key_data['LastModified'])

@pytest.mark.fails_on_dbstore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this is needed - there are other list_object_versions() tests that work with dbstore

def test_bucket_list_return_data_versioning_key_marker():

bucket_name = get_new_bucket()
check_configure_versioning_retry(bucket_name, "Enabled", "Enabled")
key_names = ['bar', 'baz', 'foo']
bucket_name = _create_objects(bucket_name=bucket_name,keys=key_names)

client = get_client()
response = client.list_object_versions(Bucket=bucket_name, KeyMarker='baz')
assert response['KeyMarker'] == 'baz'
assert response['IsTruncated'] == False

keys = [obj['Key'] for obj in response['Versions']]
assert keys == ['foo']

def test_bucket_list_objects_anonymous():
bucket_name = get_new_bucket()
client = get_client()
Expand Down