mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
Merge pull request #11 from andrewgaul/long-bucket-name-tests
Call get_new_bucket_name in long bucket name tests Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
d0e4dd09b0
1 changed files with 2 additions and 2 deletions
|
@ -2667,7 +2667,7 @@ def _test_bucket_create_naming_good_long(length):
|
||||||
Attempt to create a bucket whose name (including the
|
Attempt to create a bucket whose name (including the
|
||||||
prefix) is of a specified length.
|
prefix) is of a specified length.
|
||||||
"""
|
"""
|
||||||
prefix = get_prefix()
|
prefix = get_new_bucket_name()
|
||||||
assert len(prefix) < 255
|
assert len(prefix) < 255
|
||||||
num = length - len(prefix)
|
num = length - len(prefix)
|
||||||
get_new_bucket(targets.main.default, '{prefix}{name}'.format(
|
get_new_bucket(targets.main.default, '{prefix}{name}'.format(
|
||||||
|
@ -2742,7 +2742,7 @@ def test_bucket_create_naming_good_long_255():
|
||||||
@attr(operation='list w/251 byte name')
|
@attr(operation='list w/251 byte name')
|
||||||
@attr(assertion='fails with subdomain')
|
@attr(assertion='fails with subdomain')
|
||||||
def test_bucket_list_long_name():
|
def test_bucket_list_long_name():
|
||||||
prefix = get_prefix()
|
prefix = get_new_bucket_name()
|
||||||
length = 251
|
length = 251
|
||||||
num = length - len(prefix)
|
num = length - len(prefix)
|
||||||
bucket = get_new_bucket(targets.main.default, '{prefix}{name}'.format(
|
bucket = get_new_bucket(targets.main.default, '{prefix}{name}'.format(
|
||||||
|
|
Loading…
Reference in a new issue