aboutsummaryrefslogtreecommitdiff
path: root/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh')
-rwxr-xr-xsrc/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
index b32dd5d..4efbe6b 100755
--- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
+++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -393,17 +393,18 @@ echo " OK"
393 393
394echo -n "Preparing wallet" 394echo -n "Preparing wallet"
395rm $WALLET_DB 395rm $WALLET_DB
396taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'withdrawTestBalance' \ 396taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api --expect-success 'withdrawTestBalance' \
397 "$(jq -n ' 397 "$(jq -n '
398 { 398 {
399 amount: "TESTKUDOS:100", 399 amount: "TESTKUDOS:100",
400 bankBaseUrl: $BANK_URL, 400 bankBaseUrl: $BANK_URL,
401 exchangeBaseUrl: $EXCHANGE_URL 401 exchangeBaseUrl: $EXCHANGE_URL
402 }' \ 402 }' \
403 --arg BANK_URL "$BANK_URL" \ 403 --arg BANK_URL "${BANK_URL}demobanks/default/access-api/" \
404 --arg EXCHANGE_URL "$EXCHANGE_URL" 404 --arg EXCHANGE_URL "$EXCHANGE_URL"
405 )" 2> /dev/null >/dev/null 405 )" 2> wallet-withdraw.err > wallet-withdraw.out
406taler-wallet-cli --wallet-db=$WALLET_DB run-until-done 2>/dev/null >/dev/null 406taler-wallet-cli --wallet-db=$WALLET_DB \
407 run-until-done 2>wallet-withdraw-finish.err >wallet-withdraw-finish.out
407echo " OK" 408echo " OK"
408 409
409echo -en "Making payments for truth uploads ... " 410echo -en "Making payments for truth uploads ... "
@@ -413,12 +414,14 @@ do
413 PAY_URI=`jq --argjson INDEX $INDEX -r -e '.payments[$INDEX]' < $B2FILE` 414 PAY_URI=`jq --argjson INDEX $INDEX -r -e '.payments[$INDEX]' < $B2FILE`
414 # run wallet CLI 415 # run wallet CLI
415 echo -n "$INDEX" 416 echo -n "$INDEX"
416 taler-wallet-cli --wallet-db=$WALLET_DB handle-uri $PAY_URI -y 2>/dev/null >/dev/null 417 taler-wallet-cli --wallet-db=$WALLET_DB \
418 handle-uri $PAY_URI -y 2>wallet-pay-truth-$INDEX.err >wallet-pay-truth-$INDEX.out
417 echo -n ", " 419 echo -n ", "
418done 420done
419echo "OK" 421echo "OK"
420echo -e "Running wallet run-pending..." 422echo -e "Running wallet run-pending..."
421taler-wallet-cli --wallet-db=$WALLET_DB run-pending 2>/dev/null >/dev/null 423taler-wallet-cli --wallet-db=$WALLET_DB \
424 run-pending 2>wallet-pay-truth-finish-$INDEX.err >wallet-pay-truth-finish-$INDEX.out
422echo -e "Payments done" 425echo -e "Payments done"
423 426
424export B2FILE 427export B2FILE
@@ -436,12 +439,13 @@ do
436 PAY_URI=`jq --argjson INDEX $INDEX -r -e '.policy_payment_requests[$INDEX].payto' < $B2FILE` 439 PAY_URI=`jq --argjson INDEX $INDEX -r -e '.policy_payment_requests[$INDEX].payto' < $B2FILE`
437 # run wallet CLI 440 # run wallet CLI
438 echo -n "$INDEX" 441 echo -n "$INDEX"
439 taler-wallet-cli --wallet-db=$WALLET_DB handle-uri $PAY_URI -y 2>/dev/null >/dev/null 442 taler-wallet-cli --wallet-db=$WALLET_DB handle-uri $PAY_URI -y 2>wallet-pay-policy-$INDEX.err >wallet-pay-policy-$INDEX.out
440 echo -n ", " 443 echo -n ", "
441done 444done
442echo " OK" 445echo " OK"
443echo -en "Running wallet run-pending..." 446echo -en "Running wallet run-pending..."
444taler-wallet-cli --wallet-db=$WALLET_DB run-pending 2>/dev/null >/dev/null 447taler-wallet-cli --wallet-db=$WALLET_DB \
448 run-pending 2>wallet-pay-policy-finish.err >wallet-pay-policy-finish.out
445echo -e " payments DONE" 449echo -e " payments DONE"
446 450
447echo -en "Try to upload again ..." 451echo -en "Try to upload again ..."