Skip to content

Commit

Permalink
Fix test using minio
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Oct 3, 2023
1 parent 2932bce commit 4595277
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
'Effect': 'Allow',
'Principal': '*',
'Action': ['s3:GetObject'],
'Resource': f"arn:aws:s3:::{'S3_BUCKET_NAME'}/*"
'Resource': f"arn:aws:s3:::{S3_BUCKET_NAME}/*"
}]
}


def create_bucket():
s3 = boto3.resource("s3", endpoint_url="S3_URL_ENDPOINT")
bucket = s3.Bucket("S3_BUCKET_NAME")
s3 = boto3.resource("s3", endpoint_url=S3_URL_ENDPOINT)
bucket = s3.Bucket(S3_BUCKET_NAME)
if bucket.creation_date is None:
bucket.create()
bucket.Policy().put(Policy=json.dumps(BUCKET_POLICY))
Expand Down

0 comments on commit 4595277

Please sign in to comment.