]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Test listing a blob which ends with delimiter 73/head
authorAndrew Gaul <andrew@gaul.org>
Wed, 12 Aug 2015 00:23:08 +0000 (17:23 -0700)
committerAndrew Gaul <andrew@gaul.org>
Thu, 13 Aug 2015 18:12:09 +0000 (11:12 -0700)
This has a different behavior than when the blob does not end with the
delimiter.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
s3tests/functional/test_s3.py

index 3376127bb34eb5cc5f692931cb1dcdd43995f218..f55dec21217794840bbb083f903d9c9ee2f31119 100644 (file)
@@ -234,6 +234,14 @@ def test_bucket_list_delimiter_prefix():
 
     marker = validate_bucket_list(bucket, prefix, delim, '', 2, False, ['boo/bar'], ['boo/baz/'], None)
 
+@attr(resource='bucket')
+@attr(method='get')
+@attr(operation='list')
+@attr(assertion='prefix and delimiter handling when object ends with delimiter')
+def test_bucket_list_delimiter_prefix_ends_with_delimiter():
+    bucket = _create_keys(keys=['asdf/'])
+    validate_bucket_list(bucket, 'asdf/', '/', '', 1000, False, ['asdf/'], [], None)
+
 @attr(resource='bucket')
 @attr(method='get')
 @attr(operation='list')