[#213] Return response in complete_multipart_upload function #213

Merged
ylukoyan merged 1 commit from ylukoyan/frostfs-testlib:037 into support/v0.37 2024-04-25 12:59:01 +00:00
2 changed files with 6 additions and 1 deletions

View file

@ -693,7 +693,10 @@ class AwsCliClient(S3ClientWrapper):
f"--key {key} --upload-id {upload_id} --multipart-upload file://{file_path} "
f"--endpoint-url {self.s3gate_endpoint}"
)
self.local_shell.exec(cmd)
output = self.local_shell.exec(cmd).stdout
response = self._to_json(output)
return response
abereziny marked this conversation as resolved
Review

need empty line between methods

need empty line between methods
@reporter.step_deco("Put object lock configuration")
def put_object_lock_configuration(self, bucket: str, configuration: dict) -> dict:

View file

@ -573,6 +573,8 @@ class Boto3ClientWrapper(S3ClientWrapper):
)
log_command_execution("S3 Complete multipart upload", response)
return response
@reporter.step_deco("Put object retention")
@report_error
def put_object_retention(