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>
diff --git a/test/csit/scripts/common_functions.sh b/test/csit/scripts/common_functions.sh
index 4293a52..684c418 100755
--- a/test/csit/scripts/common_functions.sh
+++ b/test/csit/scripts/common_functions.sh
@@ -250,3 +250,14 @@
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
+}