while [ $attempts -ge 0 ] ; do
echo -e "\n$( date '+%F_%H:%M:%S' ) Creating K8s Cluster"
- osm k8scluster-add --creds ${K8S_CREDENTIALS} --version "v1" --vim ${VIM_TARGET} --k8s-nets "{\"net1\": \"${VIM_MGMT_NET}\"}" ${VIM_TARGET} --description "Robot cluster"
+ osm k8scluster-add --creds ${K8S_CREDENTIALS} --version "v1" --vim ${VIM_TARGET} --k8s-nets "{\"net1\": \"${VIM_MGMT_NET}\"}" ${VIM_TARGET} --description "Robot cluster" --skip-jujubundle
STATUS=""
i=0
((attempts--))
done
if [ $attempts -lt 0 ] ; then
- echo "VIM failed to enter ENABLED state"
+ echo "K8s cluster failed to enter ENABLED state"
exit 1
fi
}
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
fi
fi
fi
+
}
;;
-c|--createvim)
create_vim
+ # create_sdnc
create_k8scluster
shift 1
;;
python3 ${ROBOT_DEVOPS_FOLDER}/conformance-tests/run_conformance_tests.py
fi
-if [[ -z "${TEST}" ]]; then
- printf "Test not provided. \nRunning default test: sanity\n"
- TEST="sanity"
-fi
-
if [[ -n "${TEST}" ]]; then
- robot -d ${ROBOT_DEVOPS_FOLDER}/reports -i ${TEST} ${ROBOT_DEVOPS_FOLDER}/testsuite/
- exit 0
+ robot -d ${ROBOT_DEVOPS_FOLDER}/reports --tagstatinclude "cluster_*" -i ${TEST} ${ROBOT_DEVOPS_FOLDER}/testsuite/
else
- echo "Wrong test provided"
- exit 1
+ echo "No test was provided. Exiting..."
fi
-exit 1
+exit 0