You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if you would fix that, thanks a lot!
Code References -
get_new_bucket() -
defget_new_bucket(client=None, name=None):
""" Get a bucket that exists and is empty. Always recreates a bucket from scratch. This is useful to also reset ACLs and such. """ifclientisNone:
client=get_client()
ifnameisNone:
name=get_new_bucket_name()
client.create_bucket(Bucket=name) //createbucketfirsttimereturnname
get_new_bucket_resource() -
defget_new_bucket_resource(name=None):
""" Get a bucket that exists and is empty. Always recreates a bucket from scratch. This is useful to also reset ACLs and such. """s3=boto3.resource('s3',
aws_access_key_id=config.main_access_key,
aws_secret_access_key=config.main_secret_key,
endpoint_url=config.default_endpoint,
use_ssl=config.default_is_secure,
verify=config.default_ssl_verify)
ifnameisNone:
name=get_new_bucket_name()
bucket=s3.Bucket(name)
bucket_location=bucket.create() //createbucketsecondtimereturnbucket
Hey!
While running test_versioning_concurrent_multi_object_delete on NooBaa, I saw that the test is trying to create the bucket twice -
get_new_bucket()
-client.create_bucket(Bucket=name)
_create_objects()
->get_new_bucket_resource()
->bucket.create()
See code references after the suggested fix.
According to my understanding, these are the needed changes for fixing the issue -
It would be great if you would fix that, thanks a lot!
Code References -
The text was updated successfully, but these errors were encountered: