]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test for https://github.com/ceph/ceph/pull/17934 189/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Sun, 24 Sep 2017 03:56:36 +0000 (11:56 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Sun, 24 Sep 2017 03:56:36 +0000 (11:56 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
s3tests/functional/test_s3.py

index be025502c7231863f6f5c38783e7d7f164b2d349..9537a030484ccb6cf715df217946d6bad885f6c0 100644 (file)
@@ -894,6 +894,21 @@ def test_bucket_list_return_data_versioning():
         eq(key.version_id, key_data['version_id'])
 
 
+@attr(resource='bucket')
+@attr(method='get')
+@attr(operation='list keys after marker when bucket versioning is configured')
+@attr(assertion='marker list on versioning bucket')
+def test_bucket_list_marker_versioning():
+    bucket = get_new_bucket()
+    check_configure_versioning_retry(bucket, True, "Enabled")
+    key_names = ['bar', 'baz', 'foo']
+    bucket = _create_keys(bucket=bucket, keys=key_names)
+    li = bucket.get_all_keys(marker='baz')
+    eq(li.marker, 'baz')
+    names = [e.name for e in li]
+    eq(names, ['foo'])
+
+
 @attr(resource='object.metadata')
 @attr(method='head')
 @attr(operation='modification-times')