}
#
+function probe_test_docker {
+ # This expected logging should be output by startup.sh of the
+ # respective test docker container
+ MATCH=`docker logs --tail 30 $1 | grep "Startup completed successfully"`
+ echo MATCH is -- ${MATCH}
+
+ if [ -n "$MATCH" ] ; then
+ echo TEST DOCKER start finished in $2 seconds
+ return ${SUCCESS}
+ fi
+ return ${FAILURE}
+}
+#
+
function probe_es {
health_Check_http_code=$(curl --noproxy "*" -o /dev/null -w '%{http_code}' http://${IP}:9200/_cluster/health?wait_for_status=yellow&timeout=120s)
status=$? ;
;;
sdc-BE)
- ready_probe ${DOCKER_NAME} ${TIME} ;
+ ready_probe ${DOCKER_NAME} ${TIME} ;
status=$? ;
;;
sdc-FE)
ready_probe ${DOCKER_NAME} ${TIME} ;
status=$? ;
;;
+ sdc-api-tests)
+ probe_test_docker ${DOCKER_NAME} ${TIME};
+ status=$? ;
+ ;;
+ sdc-ui-tests)
+ probe_test_docker ${DOCKER_NAME} ${TIME};
+ status=$? ;
+ ;;
*)
probe_docker ${DOCKER_NAME} ${TIME};
status=$? ;
rc=$?
if [[ $rc != 0 ]]; then
- echo "Sanity failed !!!"
+ echo "Startup failed !!!"
exit $rc
else
- echo "completed successfully :-)"
- exit 0
-fi
\ No newline at end of file
+# Note that the output below is monitored in CSIT by
+# sdc/sdc-os-chef/scripts/docker_run.sh
+# If this text is changed, docker_run.sh check for sdc-api-tests docker
+# startup must be adjusted accordingly!
+ echo "Startup completed successfully"
+fi
rc=$?
if [[ $rc != 0 ]]; then
- echo "Sanity failed !!!"
+ echo "Startup failed !!!"
exit $rc
else
- echo "completed successfully :-)"
-# exit 0
+# Note that the output below is monitored in CSIT by
+# sdc/sdc-os-chef/scripts/docker_run.sh
+# If this text is changed, docker_run.sh check for sdc-ui-tests docker
+# startup must be adjusted accordingly!
+ echo "Startup completed successfully"
fi