]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Call get_new_bucket_name in long bucket name tests 11/head
authorAndrew Gaul <andrew@gaul.org>
Fri, 1 Aug 2014 23:36:12 +0000 (16:36 -0700)
committerAndrew Gaul <andrew@gaul.org>
Fri, 1 Aug 2014 23:43:50 +0000 (16:43 -0700)
Previously test_bucket_create_naming_good_long_251 and
test_bucket_list_long_name could fail with BucketAlreadyOwnedByYou.

s3tests/functional/test_s3.py

index 44db1f191f38cfe5288067fe81546240b8cda8ae..81838ccd22002e306feea80a6a5cb3d3ce7d7d2a 100644 (file)
@@ -2454,7 +2454,7 @@ def _test_bucket_create_naming_good_long(length):
     Attempt to create a bucket whose name (including the
     prefix) is of a specified length.
     """
-    prefix = get_prefix()
+    prefix = get_new_bucket_name()
     assert len(prefix) < 255
     num = length - len(prefix)
     get_new_bucket(targets.main.default, '{prefix}{name}'.format(
@@ -2529,7 +2529,7 @@ def test_bucket_create_naming_good_long_255():
 @attr(operation='list w/251 byte name')
 @attr(assertion='fails with subdomain')
 def test_bucket_list_long_name():
-    prefix = get_prefix()
+    prefix = get_new_bucket_name()
     length = 251
     num = length - len(prefix)
     bucket = get_new_bucket(targets.main.default, '{prefix}{name}'.format(