From 48a95bc50b84ce4f57b4f4377327a1cdbf06cf62 Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Fri, 27 Oct 2023 13:22:38 +0300 Subject: [PATCH] remove http from s3 multipart upload load scenario, protocol would be set in endpoint parameter Signed-off-by: m.malygina --- scenarios/s3_multipart.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scenarios/s3_multipart.js b/scenarios/s3_multipart.js index 39e943f..ee39996 100644 --- a/scenarios/s3_multipart.js +++ b/scenarios/s3_multipart.js @@ -19,7 +19,9 @@ const summary_json = __ENV.SUMMARY_JSON || "/tmp/summary.json"; // Select random S3 endpoint for current VU const s3_endpoints = __ENV.S3_ENDPOINTS.split(','); const s3_endpoint = s3_endpoints[Math.floor(Math.random() * s3_endpoints.length)]; -const s3_client = s3.connect(`http://${s3_endpoint}`); +const no_verify_ssl = __ENV.NO_VERIFY_SSL || "true"; +const connection_args = {no_verify_ssl: no_verify_ssl} +const s3_client = s3.connect(s3_endpoint, connection_args); const log = logging.new().withField("endpoint", s3_endpoint); const registry_enabled = !!__ENV.REGISTRY_FILE;