X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fapi_curl.sh;h=615ccabca7c98ed080e2d361c36941890e83c45d;hb=02a72fd14966d3a7f26e6ef93f1a045607348f14;hp=4ebac805c09cc61e334ecc56378127571d309ee1;hpb=7682abb5a05160aeb83004a4e56c36e302eded1e;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