diff options
Diffstat (limited to 'src/cli/test_iban.sh')
-rwxr-xr-x | src/cli/test_iban.sh | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh index c947518..9cdb475 100755 --- a/src/cli/test_iban.sh +++ b/src/cli/test_iban.sh @@ -444,31 +444,20 @@ then fi AMOUNT=`jq -r -e .challenge_feedback.\"$NAME_UUID\".details.challenge_amount < $R1FILE` -NUMBER=`jq -r -e .challenge_feedback.\"$NAME_UUID\".details.wire_transfer_subject < $R1FILE` -SUBJECT="Anastasis ${NUMBER}" +SUBJECT=`jq -r -e .challenge_feedback.\"$NAME_UUID\".details.wire_transfer_subject < $R1FILE` -# FIXME-MS: must do wire transfer using $SUBJECT and $AMOUNT here! -# -# This command (see function definition above) wires funds: -# wire_transfer_to_anastasis "$CURRENCY:1" "Sandbox-only transaction 1" -# wire_transfer_to_anastasis "$CURRENCY:1" "Sandbox-only transaction 2" -# -# This command (see function definition above) checks the history via the facade API: -# see_anastasis_transactions_via_facade $FACADE_URL - - -bash +echo -e "Performing authorization wire transfer ..." +wire_transfer_to_anastasis "${AMOUNT}" "${SUBJECT}" -echo "TEST INCOMPLETE --- BAILING for now" - -exit 77 +echo " OK" -# Check for inbound wire transfer (fails with 'Failed to load bank access configuration data') +echo -e "Triggering inbound check ..." anastasis-helper-authorization-iban -c $CONF -t +echo " OK" # Now we should get the secret... +echo -e "Polling for recovery ..." anastasis-reducer poll < $R1FILE > $R2FILE - echo " OK" echo -n "Checking recovered secret ..." |