summaryrefslogtreecommitdiffstats
path: root/csit/plans/pmmapper/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'csit/plans/pmmapper/setup.sh')
-rw-r--r--csit/plans/pmmapper/setup.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/csit/plans/pmmapper/setup.sh b/csit/plans/pmmapper/setup.sh
index 918b7f6..258b99e 100644
--- a/csit/plans/pmmapper/setup.sh
+++ b/csit/plans/pmmapper/setup.sh
@@ -71,6 +71,17 @@ for i in {1..5}; do
done
[ "$containers_ok" = "false" ] && echo "Error: required container not running." && exit 1
+#Data Router healthcheck
+for i in $(seq 10); do
+ curl -sf 'http://localhost:8080/internal/prov' -o /dev/null
+ curl_status=$?
+ if [ curl_status -eq 0 ]; then
+ break
+ else
+ sleep 2
+ fi
+done
+
# Data Router Configuration.
docker exec -i datarouter-prov sh -c \
"curl -k -X PUT https://$DR_PROV_IP:8443/internal/api/NODES?val=dmaap-dr-node\|$GATEWAY_IP"