Skip to content

Commit

Permalink
CBQE-7498: Update S3 bucket creation exceptions
Browse files Browse the repository at this point in the history
Adds the new S3 exception to list we can ignore in bucket creation

Change-Id: I32e34962e479aabcc3f5820519e3b9fb18c420f6
Reviewed-on: https://review.couchbase.org/c/testrunner/+/171750
Tested-by: Joe Mitchell Jones <joe.mitchelljones@couchbase.com>
Reviewed-by: Arunkumar Senthilnathan <arun.couchbase@yahoo.com>
  • Loading branch information
Joe Mitchell Jones committed Mar 3, 2022
1 parent 209251d commit 0900066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytests/ent_backup_restore/provider/s3.py
Expand Up @@ -50,7 +50,7 @@ def setup(self):
self.resource.create_bucket(Bucket=self.bucket, CreateBucketConfiguration=configuration)
except botocore.exceptions.ClientError as error:
error_code = error.response['Error']['Code']
if error_code != 'BucketAlreadyExists':
if error_code not in ('BucketAlreadyExists', 'BucketAlreadyOwnedByYou'):
raise error

def teardown(self, info, remote_client):
Expand Down

0 comments on commit 0900066

Please sign in to comment.