From: Soumya Koduri Date: Tue, 25 Jun 2019 07:15:25 +0000 (+0530) Subject: Bucket names cannot contain underscore X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7d4a729ff761fe1ca073b7ceade46acf1321e9fd;p=ragweed.git Bucket names cannot contain underscore As per Amazon s3 spec, bucket names cannot contain underscore. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-s3-bucket-naming-requirements.html This (along with other naming convention mentioned in the doc) are being enforced via https://github.com/ceph/ceph/pull/26787 This patch is to correct the bucket name generated in ragweed tests as well. Signed-off-by: Soumya Koduri --- diff --git a/ragweed/framework.py b/ragweed/framework.py index 3eaa674..6a25b6b 100644 --- a/ragweed/framework.py +++ b/ragweed/framework.py @@ -294,7 +294,9 @@ class RTest: def create_bucket(self): bid = len(self.r_buckets) + 1 - rb = suite.zone.create_bucket(suite.get_bucket_name(self._name + '-' + str(bid))) + bucket_name = suite.get_bucket_name(self._name + '.' + str(bid)) + bucket_name = bucket_name.replace("_", "-") + rb = suite.zone.create_bucket(bucket_name) self.r_buckets.append(rb) return rb