From 3050ccc9fa5597a398b6f81999de54f264d4d443 Mon Sep 17 00:00:00 2001 From: Yaroslava Lukoyanova Date: Thu, 6 Jul 2023 14:20:23 +0300 Subject: [PATCH] Added -k parameter to curl to ignore self signed SSL certificate --- src/frostfs_testlib/steps/http/http_gate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frostfs_testlib/steps/http/http_gate.py b/src/frostfs_testlib/steps/http/http_gate.py index 64bb5ce..e0ae8fa 100644 --- a/src/frostfs_testlib/steps/http/http_gate.py +++ b/src/frostfs_testlib/steps/http/http_gate.py @@ -215,13 +215,13 @@ def upload_via_http_gate_curl( # pre-clean _cmd_run("rm pipe -f") files = f"file=@pipe;filename={os.path.basename(filepath)}" - cmd = f"mkfifo pipe;cat {filepath} > pipe & curl --no-buffer -F '{files}' {attributes} {request}" + cmd = f"mkfifo pipe;cat {filepath} > pipe & curl -k --no-buffer -F '{files}' {attributes} {request}" output = _cmd_run(cmd, LONG_TIMEOUT) # clean up pipe _cmd_run("rm pipe") else: files = f"file=@{filepath};filename={os.path.basename(filepath)}" - cmd = f"curl -F '{files}' {attributes} {request}" + cmd = f"curl -k -F '{files}' {attributes} {request}" output = _cmd_run(cmd) if error_pattern: @@ -246,7 +246,7 @@ def get_via_http_curl(cid: str, oid: str, endpoint: str) -> str: request = f"{endpoint}/get/{cid}/{oid}" file_path = os.path.join(os.getcwd(), ASSETS_DIR, f"{cid}_{oid}_{str(uuid.uuid4())}") - cmd = f"curl {request} > {file_path}" + cmd = f"curl -k {request} > {file_path}" _cmd_run(cmd) return file_path