diff options
author | 2021-11-26 09:37:46 +0000 | |
---|---|---|
committer | 2021-11-26 09:37:46 +0000 | |
commit | 1a07fc039140525af388d6b8c30fbbce9e1ebf9f (patch) | |
tree | 402c67d8030b23db9fbefe7fb2a4c34593243078 /csit/plans | |
parent | a84a4aa84fd22af9b89424d776a18a98d7515bd2 (diff) | |
parent | 20b4f9cf0b662de4a7665b2a82593ef0205f5e06 (diff) |
Merge "Allow separate registration of DMIDataPlugin and DmiModelPugin"
Diffstat (limited to 'csit/plans')
-rwxr-xr-x | csit/plans/cps/setup.sh | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/csit/plans/cps/setup.sh b/csit/plans/cps/setup.sh index e4bdd47a9..1e27fb972 100755 --- a/csit/plans/cps/setup.sh +++ b/csit/plans/cps/setup.sh @@ -25,28 +25,27 @@ check_health() { -TIME_OUT=120 -INTERVAL=5 -TICKER=0 + TIME_OUT=120 + INTERVAL=5 + TICKER=0 -while [ "$TICKER" -le "$TIME_OUT" ]; do + while [ "$TICKER" -le "$TIME_OUT" ]; do - RESPONSE=$(curl --location --request GET 'http://'$1'/manage/health/readiness') + RESPONSE=$(curl --location --request GET 'http://'$1'/manage/health/readiness') - if [[ "$RESPONSE" == *"UP"* ]]; then - echo "$2 started in $TICKER" - break; - fi + if [[ "$RESPONSE" == *"UP"* ]]; then + echo "$2 started in $TICKER" + break; + fi - sleep $INTERVAL - TICKER=$((TICKER + INTERVAL)) + sleep $INTERVAL + TICKER=$((TICKER + INTERVAL)) -done - -if [ "$TICKER" -ge "$TIME_OUT" ]; then - echo TIME OUT: $2 session not started in $TIME_OUT seconds... Could cause problems for testing activities... -fi + done + if [ "$TICKER" -ge "$TIME_OUT" ]; then + echo TIME OUT: $2 session not started in $TIME_OUT seconds... Could cause problems for testing activities... + fi } ###################### setup env ############################ @@ -143,4 +142,4 @@ check_health $DMI_HOST:$DMI_MANAGEMENT_PORT 'dmi-plugin' ###################### ROBOT Configurations ########################## # Pass variables required for Robot test suites in ROBOT_VARIABLES -ROBOT_VARIABLES="-v CPS_CORE_HOST:$CPS_CORE_HOST -v CPS_CORE_PORT:$CPS_CORE_PORT -v DMI_HOST:$LOCAL_IP -v DMI_PORT:$DMI_PORT -v CPS_CORE_MANAGEMENT_PORT:$CPS_CORE_MANAGEMENT_PORT -v DATADIR:$WORKSPACE/data"
\ No newline at end of file +ROBOT_VARIABLES="-v CPS_CORE_HOST:$CPS_CORE_HOST -v CPS_CORE_PORT:$CPS_CORE_PORT -v DMI_HOST:$LOCAL_IP -v DMI_PORT:$DMI_PORT -v CPS_CORE_MANAGEMENT_PORT:$CPS_CORE_MANAGEMENT_PORT -v DATADIR:$WORKSPACE/data --exitonfailure"
\ No newline at end of file |