Decouple create_sdnc from create_vim in run_test.sh 61/14161/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 23 Jan 2024 13:27:30 +0000 (14:27 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 23 Jan 2024 13:27:30 +0000 (14:27 +0100)
Change-Id: I8984e97de7010c43a000451e15b396f83635c5cd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/run_test.sh

index e96e17a..c6fb837 100755 (executable)
@@ -104,6 +104,10 @@ create_vim(){
         echo "VIM failed to enter ENABLED state"
         exit 1
     fi
+}
+
+
+create_sdnc(){
     if [ -n "${SDNC_URL}" ]; then
         osm sdnc-create --name sdnc-osm --type ${SDNC_TYPE} --user ${SDNC_USER} --password ${SDNC_PASSWORD} --url ${SDNC_URL}
         COUNTER=0
@@ -147,6 +151,7 @@ create_vim(){
             fi
         fi
     fi
+
 }
 
 
@@ -169,6 +174,7 @@ while (( "$#" )); do
             ;;
         -c|--createvim)
             create_vim
+            create_sdnc
             create_k8scluster
             shift 1
             ;;