aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/setup.sh
blob: 8f50d00b1018b2bbd22b24d1835876160da1fcb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

DFC_ROOT=$WORKSPACE/scripts/dcaegen2-collectors-datafile/dfc-management
cd $DFC_ROOT
source dfc-start.sh

#Wait for initialization of the DFC service
for i in {1..10}; do
if [ $(curl -so /dev/null -w '%{response_code}' http://localhost:8100/heartbeat ) -eq 200 ]
then
   echo "DFC Service running"
   break
else
   echo sleep $i
   sleep $i
fi
done