From 15f6b2b62ac0f3e3338bb2b77091d5d7c6b63087 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 23 Aug 2021 22:10:17 -1100 Subject: debug --- src/cli/test_iban.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh index b4b3c0e..c947518 100755 --- a/src/cli/test_iban.sh +++ b/src/cli/test_iban.sh @@ -59,14 +59,15 @@ function prepare_sandbox_account() { trap cleanup EXIT -# Transfer _always_ from debit to credit/anastasis account. +# Transfer only from debit to credit/anastasis account. +# This function moves funds directly at the Sandbox. No need +# to pass through the Nexus+Ebics layer to issue the payment # $1 = amount ($CURRENCY:X.Y), $2 = subject. function wire_transfer_to_anastasis() { libeufin-sandbox make-transaction \ --debit-account=sandbox-account-debit \ --credit-account=sandbox-account-credit "$1" "$2" - # Download new transactions now, so that they show up in the - # Anastasis facade. + # Sync nexus with sandbox export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD libeufin-cli accounts fetch-transactions nexus-bankaccount-credit > /dev/null @@ -74,8 +75,6 @@ function wire_transfer_to_anastasis() { # $1 = facade base URL. Merely a debug utility. function see_anastasis_transactions_via_facade() { - export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME - export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD curl -s --user "$CREDIT_USERNAME:$CREDIT_PASSWORD" "${1}history/incoming?delta=5" | jq } @@ -455,7 +454,7 @@ SUBJECT="Anastasis ${NUMBER}" # 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 # via Nexus/facade. +# see_anastasis_transactions_via_facade $FACADE_URL bash -- cgit v1.2.3