From 8bb829780c7dadc5584d9282ebb163c9b5250cde Mon Sep 17 00:00:00 2001 From: Francesco Timperi Tiberi Date: Sat, 16 Sep 2023 22:05:06 +0100 Subject: [PATCH] chore: testing ip on static test for k3s chore: added retry for 7-static test chore: added retry for 7-static test chore: added retry for 7-static test --- debug | 0 tests/7-static.sh | 20 +++++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) delete mode 100644 debug diff --git a/debug b/debug deleted file mode 100644 index e69de29..0000000 diff --git a/tests/7-static.sh b/tests/7-static.sh index 770f8ab..b87ce7c 100755 --- a/tests/7-static.sh +++ b/tests/7-static.sh @@ -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