From 6c895d8fded5c1ca466923e8eff4425c6958466c Mon Sep 17 00:00:00 2001 From: Kumbirai Tanekha Date: Tue, 19 Mar 2019 22:19:49 +0800 Subject: [PATCH] fix urls + silence curl output in urls wait --- 7_verify_authentication.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/7_verify_authentication.sh b/7_verify_authentication.sh index e49383b..4c99e23 100755 --- a/7_verify_authentication.sh +++ b/7_verify_authentication.sh @@ -75,14 +75,10 @@ else secretless_url=$(service_ip test-app-secretless):8080 fi -function split_url() { - echo $1 | awk -F":" '{print $1, $2}'; -} - echo "Waiting for urls to be ready" -while ! $(curl $(split_url $init_url)) || - ! $(curl $(split_url $sidecar_url)) || - ! $(curl $(split_url $secretless_url)); do +while ! $(curl -s --connect-timeout 3 $init_url > /dev/null) || + ! $(curl -s --connect-timeout 3 $sidecar_url > /dev/null) || + ! $(curl -s --connect-timeout 3 $secretless_url > /dev/null); do printf "." sleep 3 done