Test env updates
[nonrtric.git] / test / common / prodstub_api_functions.sh
index 744e357..8aae95a 100644 (file)
@@ -270,7 +270,11 @@ __execute_curl_to_prodstub() {
        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
        echo " CMD: $3 $proxyflag" >> $HTTPLOG