adjusting the tests to the better naming

This commit is contained in:
Hossein Shafagh 2020-10-30 18:36:32 -07:00
parent 7bca42776b
commit 9c6856bcdd
2 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ def test_upload_acme_token(app):
options=additional_options)
response = get(bucket_name=bucket,
prefix=prefix + token_name,
prefixed_object_name=prefix + token_name,
encrypt=False,
account_number=account)

View File

@ -24,18 +24,18 @@ def test_put_delete_s3_object(app):
account_number=account,
region=region)
response = get(bucket_name=bucket, prefix=path, account_number=account)
response = get(bucket_name=bucket, prefixed_object_name=path, account_number=account)
# put data, and getting the same data
assert (response == data)
response = get(bucket_name="wrong-bucket", prefix=path, account_number=account)
response = get(bucket_name="wrong-bucket", prefixed_object_name=path, account_number=account)
# attempting to get thccle wrong data
assert (response is None)
delete(bucket_name=bucket, prefix=path, account_number=account)
response = get(bucket_name=bucket, prefix=path, account_number=account)
delete(bucket_name=bucket, prefixed_object_name=path, account_number=account)
response = get(bucket_name=bucket, prefixed_object_name=path, account_number=account)
# delete data, and getting the same data
assert (response is None)