summaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/common_functions.sh
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-04-20 11:22:55 -0700
committerVictor Morales <victor.morales@intel.com>2018-05-10 12:27:13 -0700
commitf8aab84d0665344ac865baa24ee3e10335d63b5e (patch)
treec7f3d681d59463c05ded36276ef8b59e36354eb7 /test/csit/scripts/common_functions.sh
parent006629d1a712bf256c2d50cb8ea8d1fb94612977 (diff)
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 <shashank.kumar.shankar@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>
Diffstat (limited to 'test/csit/scripts/common_functions.sh')
-rwxr-xr-xtest/csit/scripts/common_functions.sh11
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
+}