From 6d59c19f363d0eb7a0ba94646914624df56bd14a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 4 Nov 2022 15:16:22 +0100 Subject: [PATCH] fix sandbox auth in test --- src/auditor/generate-auditor-basedb.sh | 10 ++++++++-- src/auditor/generate-revoke-basedb.sh | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/auditor/generate-auditor-basedb.sh b/src/auditor/generate-auditor-basedb.sh index b738823d5..5dfc263c4 100755 --- a/src/auditor/generate-auditor-basedb.sh +++ b/src/auditor/generate-auditor-basedb.sh @@ -154,14 +154,20 @@ echo $LIBEUFIN_SANDBOX_URL set +e echo -n "Waiting for Sandbox..." OK=0 -for n in `seq 1 50`; do +for n in `seq 1 100`; do echo -n "." sleep 1 - if wget --timeout=1 \ + echo wget --timeout=1 \ --user admin --password secret \ --tries=3 --waitretry=0 \ -o /dev/null -O /dev/null \ ${LIBEUFIN_SANDBOX_URL}; + + if wget --timeout=1 \ + --user admin --password secret --auth-no-challenge \ + --tries=3 --waitretry=0 \ + -o /dev/null -O /dev/null \ + ${LIBEUFIN_SANDBOX_URL}; then OK=1 break diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh index e70e0130b..2e3fbe750 100755 --- a/src/auditor/generate-revoke-basedb.sh +++ b/src/auditor/generate-revoke-basedb.sh @@ -160,7 +160,7 @@ for n in `seq 1 50`; do echo -n "." sleep 1 if wget --timeout=1 \ - --user admin --password secret \ + --user admin --password secret --auth-no-challenge \ --tries=3 --waitretry=0 \ -o /dev/null -O /dev/null \ ${LIBEUFIN_SANDBOX_URL};