X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fapi_curl.sh;h=615ccabca7c98ed080e2d361c36941890e83c45d;hb=0b74e0b18aee730623a668e10702300d2ae0e564;hp=4ebac805c09cc61e334ecc56378127571d309ee1;hpb=483ee33ac3de88385c0eeb3f1ecf3a1bb760db54;p=nonrtric.git diff --git a/test/common/api_curl.sh b/test/common/api_curl.sh index 4ebac805..615ccabc 100644 --- a/test/common/api_curl.sh +++ b/test/common/api_curl.sh @@ -31,7 +31,11 @@ __do_curl_to_api() { proxyflag="" if [ $RUNMODE == "KUBE" ]; then if [ ! -z "$KUBE_PROXY_PATH" ]; then - proxyflag=" --proxy $KUBE_PROXY_PATH" + if [ $KUBE_PROXY_HTTPX == "http" ]; then + proxyflag=" --proxy $KUBE_PROXY_PATH" + else + proxyflag=" --proxy-insecure --proxy $KUBE_PROXY_PATH" + fi fi fi paramError=0