Add support for cert-manager
[nonrtric.git] / test / common / chartmus_api_functions.sh
index a9f09c0..3cd8b33 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2021 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2021-2023 Nordix Foundation. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -79,7 +79,7 @@ __CHARTMUS_kube_delete_all() {
 # args: <log-dir> <file-prexix>
 __CHARTMUS_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
-               kubectl  logs -l "autotest=CHARTMUS" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_chartmuseum.log 2>&1
+               kubectl $KUBECONF  logs -l "autotest=CHARTMUS" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_chartmuseum.log 2>&1
        else
                docker logs $CHART_MUS_APP_NAME > $1$2_chartmuseum.log 2>&1
        fi
@@ -201,7 +201,7 @@ start_chart_museum() {
 
                if [ $retcode_p -eq 0 ]; then
                        echo -e " Using existing $CHART_MUS_APP_NAME deployment and service"
-                       echo " Setting RC replicas=1"
+                       echo " Setting CHARTMUS replicas=1"
                        __kube_scale deployment $CHART_MUS_APP_NAME $KUBE_SIM_NAMESPACE 1
                fi
 
@@ -258,7 +258,7 @@ __execute_curl_to_chartmuseum() {
                fi
        fi
        echo " CMD: $3 -skw %{http_code} $proxyflag" >> $HTTPLOG
-       res="$($3 -skw %{http_code} $proxyflag)"
+       res=$($3 -skw %{http_code} $proxyflag)
        echo " RESP: $res" >> $HTTPLOG
        retcode=$?
     if [ $retcode -ne 0 ]; then