From f8aab84d0665344ac865baa24ee3e10335d63b5e Mon Sep 17 00:00:00 2001 From: Shashank Kumar Shankar Date: Fri, 20 Apr 2018 11:22:55 -0700 Subject: CSIT for Multicloud-Ocata HPA Adds CSIT tests for multicloud ocata HPA. Change-Id: I89c51f8bd9056fd8c2afd871ab9ab8b0cc567bb9 Issue-ID: MULTICLOUD-214 Depends-On: Idc7b0b709caf79e03c2f66774ef780223b913946 Signed-off-by: Shashank Kumar Shankar Signed-off-by: Victor Morales --- test/csit/scripts/common_functions.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/csit/scripts/common_functions.sh') 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 +} -- cgit 1.2.3-korg