test get object with special key name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-09-05 09:53:27 +02:00
parent 56aa87d664
commit 29caf70ccd

View file

@ -4707,6 +4707,12 @@ def test_bucket_create_special_key_names():
names = [e.name for e in list(li)] names = [e.name for e in list(li)]
eq(names, key_names) eq(names, key_names)
for name in key_names:
key = bucket.get_key(name)
eq(key.name, name)
content = key.get_contents_as_string()
eq(content, name)
@attr(resource='bucket') @attr(resource='bucket')
@attr(method='get') @attr(method='get')
@attr(operation='create and list objects with underscore as prefix, list using prefix') @attr(operation='create and list objects with underscore as prefix, list using prefix')