Updated helm manager README
[nonrtric.git] / test / common / ricsimulator_api_functions.sh
index bf30310..0df800f 100644 (file)
@@ -314,7 +314,7 @@ __find_sim_port() {
 __find_sim_host() {
        if [ $RUNMODE == "KUBE" ]; then
                ricname=$(echo "$1" | tr '_' '-')
-               for timeout in {1..60}; do
+               for timeout in {1..500}; do   # long waiting time needed in case of starting large number of sims
                        host=$(kubectl get pod $ricname  -n $KUBE_NONRTRIC_NAMESPACE -o jsonpath='{.status.podIP}' 2> /dev/null)
                        if [ ! -z "$host" ]; then
                                echo $RIC_SIM_HTTPX"://"$host":"$RIC_SIM_PORT
@@ -351,7 +351,11 @@ __execute_curl_to_sim() {
        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: $2 $proxyflag" >> $HTTPLOG
@@ -475,7 +479,7 @@ sim_post_delete_instances() {
 # (Function for test scripts)
 sim_post_delete_all() {
        __log_conf_start $@
-       if [ $# -ne 3 ]; then
+       if [ $# -ne 2 ]; then
                __print_err "<response-code> <numericic-id>" $@
                return 1
        fi