[#xx] Revert scheme to http for s3 cli script #59

Merged
fyrchik merged 1 commits from ale64bit/xk6-frostfs:fix/s3cli-revert-http into master 2023-05-11 14:56:24 +00:00
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ def create_bucket(endpoint, versioning, location):
bucket_name = str(uuid.uuid4())
cmd_line = f"aws --no-verify-ssl s3api create-bucket --bucket {bucket_name} " \
f"--endpoint https://{endpoint} {location}"
f"--endpoint http://{endpoint} {location}"
cmd_line_ver = f"aws --no-verify-ssl s3api put-bucket-versioning --bucket {bucket_name} " \
f"--versioning-configuration Status=Enabled --endpoint https://{endpoint} "
f"--versioning-configuration Status=Enabled --endpoint http://{endpoint} "
out, success = execute_cmd(cmd_line)
@ -40,7 +40,7 @@ def upload_object(bucket, payload_filepath, endpoint):
object_name = str(uuid.uuid4())
cmd_line = f"aws --no-verify-ssl s3api put-object --bucket {bucket} --key {object_name} " \
f"--body {payload_filepath} --endpoint https://{endpoint}"
f"--body {payload_filepath} --endpoint http://{endpoint}"
out, success = execute_cmd(cmd_line)
if not success: