Skip to content

Commit

Permalink
fix urls + silence curl output in urls wait
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlesbykumbi committed Mar 19, 2019
1 parent 41e1f27 commit 6c895d8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions 7_verify_authentication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c895d8

Please sign in to comment.