diff options
Diffstat (limited to 'src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh')
-rwxr-xr-x | src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 20 |
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 | ||
394 | echo -n "Preparing wallet" | 394 | echo -n "Preparing wallet" |
395 | rm $WALLET_DB | 395 | rm $WALLET_DB |
396 | taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'withdrawTestBalance' \ | 396 | taler-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 |
406 | taler-wallet-cli --wallet-db=$WALLET_DB run-until-done 2>/dev/null >/dev/null | 406 | taler-wallet-cli --wallet-db=$WALLET_DB \ |
407 | run-until-done 2>wallet-withdraw-finish.err >wallet-withdraw-finish.out | ||
407 | echo " OK" | 408 | echo " OK" |
408 | 409 | ||
409 | echo -en "Making payments for truth uploads ... " | 410 | echo -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 ", " |
418 | done | 420 | done |
419 | echo "OK" | 421 | echo "OK" |
420 | echo -e "Running wallet run-pending..." | 422 | echo -e "Running wallet run-pending..." |
421 | taler-wallet-cli --wallet-db=$WALLET_DB run-pending 2>/dev/null >/dev/null | 423 | taler-wallet-cli --wallet-db=$WALLET_DB \ |
424 | run-pending 2>wallet-pay-truth-finish-$INDEX.err >wallet-pay-truth-finish-$INDEX.out | ||
422 | echo -e "Payments done" | 425 | echo -e "Payments done" |
423 | 426 | ||
424 | export B2FILE | 427 | export 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 ", " |
441 | done | 444 | done |
442 | echo " OK" | 445 | echo " OK" |
443 | echo -en "Running wallet run-pending..." | 446 | echo -en "Running wallet run-pending..." |
444 | taler-wallet-cli --wallet-db=$WALLET_DB run-pending 2>/dev/null >/dev/null | 447 | taler-wallet-cli --wallet-db=$WALLET_DB \ |
448 | run-pending 2>wallet-pay-policy-finish.err >wallet-pay-policy-finish.out | ||
445 | echo -e " payments DONE" | 449 | echo -e " payments DONE" |
446 | 450 | ||
447 | echo -en "Try to upload again ..." | 451 | echo -en "Try to upload again ..." |