Added CSIT for Macroflow with HEAT
[integration/csit.git] / plans / dcaegen2-collectors-datafile / ManagementInterface-suite / setup.sh
1 #!/usr/bin/env bash
2
3 DFC_ROOT=$WORKSPACE/scripts/dcaegen2-collectors-datafile/dfc-management
4 cd $DFC_ROOT
5 source dfc-start.sh
6
7 #Wait for initialization of the DFC service
8 for i in {1..10}; do
9 if [ $(curl -so /dev/null -w '%{response_code}' http://localhost:8100/heartbeat ) -eq 200 ]
10 then
11    echo "DFC Service running"
12    break
13 else
14    echo sleep $i
15    sleep $i
16 fi
17 done
18