diff options
author | 2018-05-10 20:49:33 +0000 | |
---|---|---|
committer | 2018-05-10 20:49:33 +0000 | |
commit | f96f0902a611fb61378251b0b3192ba56e1939f1 (patch) | |
tree | d969ba0f820236ab941947eacb3db6e04d6bf3bc /test/csit/scripts/common_functions.sh | |
parent | ee9f6a171e16ec1e1f60596a15db021dec4831ea (diff) | |
parent | f8aab84d0665344ac865baa24ee3e10335d63b5e (diff) |
Merge "CSIT for Multicloud-Ocata HPA"
Diffstat (limited to 'test/csit/scripts/common_functions.sh')
-rwxr-xr-x | test/csit/scripts/common_functions.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/csit/scripts/common_functions.sh b/test/csit/scripts/common_functions.sh index 4293a526c..684c41841 100755 --- a/test/csit/scripts/common_functions.sh +++ b/test/csit/scripts/common_functions.sh @@ -250,3 +250,14 @@ function bypass_ip_adress () export no_proxy=$no_proxy,$ip_address fi } + +function wait_for_service_init () +{ + local service_url=$1 + + for delay in {1..50}; do + curl -sS ${service_url} && break + echo "$delay - Waiting for $service_url..." + sleep $delay + done +} |