Skip to content

Commit

Permalink
chore: testing ip on static test for k3s
Browse files Browse the repository at this point in the history
chore: added retry for 7-static test

chore: added retry for 7-static test

chore: added retry for 7-static test
  • Loading branch information
francescotimperi committed Sep 16, 2023
1 parent 5535ef0 commit 8bb8297
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Empty file removed debug
Empty file.
20 changes: 15 additions & 5 deletions tests/7-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,21 @@ kind)
*)
STATIC_URL=$API_PROTOCOL://$user.$API_DOMAIN
echo "testing using $STATIC_URL"
if curl --insecure $STATIC_URL | grep "Welcome to Nuvolaris static content distributor landing page!!!"; then
echo SUCCESS STATIC
else
echo FAIL STATIC
N=0
RES=false
while [[ $N -lt 12 ]]
do
if curl $STATIC_URL | grep "Welcome to Nuvolaris static content distributor landing page!!!"; then
echo SUCCESS STATIC
RES=true; break
else
echo "$((N++)) FAIL STATIC. WAITING FOR 5 SECONDS..."
sleep 5
fi
done

if [[ $RES = false ]]; then
exit 1
fi
fi
;;
esac

0 comments on commit 8bb8297

Please sign in to comment.