From f642492ee9fd4f54575e028c7ab4a33eafc2f922 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 11 Aug 2015 17:23:08 -0700 Subject: [PATCH] Test listing a blob which ends with delimiter This has a different behavior than when the blob does not end with the delimiter. Signed-off-by: Andrew Gaul --- s3tests/functional/test_s3.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 3376127..f55dec2 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -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')