the test requires region param for sts

This commit is contained in:
Hossein Shafagh 2020-10-16 10:32:10 -07:00
parent 11ce540246
commit 503530e935
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@ def test_put_delete_s3_object(app):
from lemur.plugins.lemur_aws.s3 import put, delete, get from lemur.plugins.lemur_aws.s3 import put, delete, get
bucket = "public-bucket" bucket = "public-bucket"
region = "us-east-1"
account = "123456789012" account = "123456789012"
path = "some-path/foo" path = "some-path/foo"
data = "dummy data" data = "dummy data"
@ -16,11 +17,12 @@ def test_put_delete_s3_object(app):
s3_client.create_bucket(Bucket=bucket) s3_client.create_bucket(Bucket=bucket)
put(bucket_name=bucket, put(bucket_name=bucket,
region=None, region_name=region,
prefix=path, prefix=path,
data=data, data=data,
encrypt=False, encrypt=False,
account_number=account) account_number=account,
region=region)
response = get(bucket_name=bucket, prefix=path, account_number=account) response = get(bucket_name=bucket, prefix=path, account_number=account)