Skip to content

Commit

Permalink
Fix tox
Browse files Browse the repository at this point in the history
Signed-off-by: ckulal <[email protected]>
  • Loading branch information
ckulal committed Mar 4, 2024
1 parent 6b33d56 commit f8b3e6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ config:
user_count: 1
bucket_count: 1
test_ops:
verify_etag_for_complete_multipart_upload: true
verify_etag_for_complete_multipart_upload: true
7 changes: 4 additions & 3 deletions rgw/v2/tests/aws/reusable.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create_multipart_upload(bucket_name, key_name, end_point, ssl=None):


def upload_part(
bucket_name, key_name, part_number, upload_id, body, end_point, ssl=None
bucket_name, key_name, part_number, upload_id, body, end_point, ssl=None
):
"""
Upload part to the key in a bucket
Expand Down Expand Up @@ -153,7 +153,7 @@ def upload_part(


def complete_multipart_upload(
bucket_name, key_name, upload_file, upload_id, end_point, ssl=None
bucket_name, key_name, upload_file, upload_id, end_point, ssl=None
):
"""
Complete multipart uploads for given object on a given bucket
Expand Down Expand Up @@ -194,7 +194,8 @@ def complete_multipart_upload(
if not response:
raise Exception(
f"creating multipart upload failed for bucket {bucket_name} with key {key_name} and"
f" upload id {upload_id}")
f" upload id {upload_id}"
)
return response
except Exception as e:
raise AWSCommandExecError(message=str(e))
Expand Down
2 changes: 1 addition & 1 deletion rgw/v2/tests/aws/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_exec(config, ssh_con):

parts = [
{"ETag": upload_part1["ETag"], "PartNumber": 1},
{"ETag": upload_part2["ETag"], "PartNumber": 2}
{"ETag": upload_part2["ETag"], "PartNumber": 2},
]
mpstructure = {"Parts": parts}
os.system("touch test.json")
Expand Down

0 comments on commit f8b3e6e

Please sign in to comment.