Change-Id: Ide879491f1790451f80280aa42871ba9f300f6c2
Signed-off-by: kinkwan_tsui <kinkwan.tsui@nokia.com>
nanobot_pod=$(kubectl get pods -n rictest -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
sleep 10
kubectl logs $nanobot_pod -n rictest
-
+#--------------kill helm---------------------------------------------------------------------
+pkill helm
#------------checking the status of the rictest pod--------------------------------------
command="$(kubectl get po --no-headers --namespace=rictest --field-selector status.phase=Completed 2> /dev/null)"
if [[ $command != "" ]]; then
exit 1
fi
+
+
sed -i 's,local,localric,g' "ric_install.sh"
bash -x ./ric_install.sh
+#--------------kill helm---------------------------------------------------------------------
+pkill helm
#-------------checking the output-------------------------------------------------------------
command="$(kubectl get po --no-headers --namespace=ricplatform --field-selector status.phase!=Running 2> /dev/null)"
if [[ $command != "" ]]; then
exit 1
fi
+
+
#---------show the test cases------------------------------
cd /home/cloudadmin/RIC/test/ric_robot_suite/helm/ric-robot/
bash ete-k8s.sh ricplatform health
+#--------------kill helm---------------------------------------------------------------------
+pkill helm
#----------checking the status of the pods------------------
command="$(kubectl get po --no-headers --namespace=ricplatform --field-selector status.phase!=Running 2> /dev/null)"
if [[ $command != "" ]]; then
exit 1
fi
+