commit 3ac752ce41ce5d474320fd5b39dcb14c0e5a835c parent 269df8d4090558f28ab25ef4a4f7cf060359a90e Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 8 Dec 2024 21:43:19 +0100 get tests to pass again Diffstat:
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/cli/test_anastasis_reducer_enter_secret.sh b/src/cli/test_anastasis_reducer_enter_secret.sh @@ -226,7 +226,7 @@ fi echo -en "${COLOR}${BOLD}Withdrawing amount to wallet ...${NORM}${NOCOLOR}" -EXCHANGE_URL="$(taler-config -c "$CONF" -s exchange -o BASE_URL)" +EXCHANGE_URL="$(taler-exchange-config -c "$CONF" -s exchange -o BASE_URL)" rm "$WALLET_DB" taler-wallet-cli \ diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh @@ -256,7 +256,7 @@ echo " OK" echo -n "Preparing wallet" -EXCHANGE_URL="$(taler-config -c "$CONF" -s exchange -o BASE_URL)" +EXCHANGE_URL="$(taler-exchange-config -c "$CONF" -s exchange -o BASE_URL)" rm -f "$WALLET_DB" taler-wallet-cli --no-throttle --wallet-db="$WALLET_DB" api --expect-success 'withdrawTestBalance' \ diff --git a/src/cli/test_anastasis_reducer_recovery_hanging.sh b/src/cli/test_anastasis_reducer_recovery_hanging.sh @@ -350,21 +350,21 @@ echo " OK" echo -n "Checking recovered secret ..." # finally: check here that we recovered the secret... -STATE=`jq -r -e .recovery_state < $R2FILE` +STATE=$(jq -r -e .recovery_state < "$R2FILE") if test "$STATE" != "RECOVERY_FINISHED" then jq -e . $R2FILE exit_fail "Expected new state to be 'RECOVERY_FINISHED', got '$STATE'" fi -SECRET=`jq -r -e .core_secret.value < $R2FILE` +SECRET=$(jq -r -e .core_secret.value < "$R2FILE") if test "$SECRET" != "VERYHARDT0GVESSSECRET" then - jq -e . $R2FILE + jq -e . "$R2FILE" exit_fail "Expected recovered secret to be 'VERYHARDT0GVESSSECRET', got '$SECRET'" fi -MIME=`jq -r -e .core_secret.mime < $R2FILE` +MIME=$(jq -r -e .core_secret.mime < "$R2FILE") if test "$MIME" != "text/plain" then jq -e . $R2FILE diff --git a/src/cli/test_reducer_free.conf b/src/cli/test_reducer_free.conf @@ -7,6 +7,7 @@ TALER_CACHE_HOME = $TALER_HOME/.cache/taler/ TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/ [anastasis] +CURRENCY = TESTKUDOS DB = postgres ANNUAL_FEE = TESTKUDOS:0 TRUTH_UPLOAD_FEE = TESTKUDOS:0.0