+TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results
+
+check_os_deployment() {
+ FUNCTEST_IMAGE=opnfv/functest-healthcheck:${DOCKER_TAG}
+ echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..."
+ docker pull ${FUNCTEST_IMAGE}>/dev/null
+ cmd="docker run --rm --privileged=true ${volumes} ${FUNCTEST_IMAGE} check_deployment"
+ echo "Checking deployment, CMD: ${cmd}"
+ eval ${cmd}
+ ret_value=$?
+ if [ ${ret_value} != 0 ]; then
+ echo "ERROR: Problem while checking OpenStack deployment."
+ exit 1
+ else
+ echo "OpenStack deployment OK."
+ fi
+
+}
+
+