diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-06-12 18:08:15 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-06-12 18:08:15 +0200 |
commit | 35bf856fcba279c27dddb5ac4502f711eba8aa2b (patch) | |
tree | 3e062aae0e1aa317d9a545cd18de5d9a87785f4a /src | |
parent | 8be960125fed9860d8c254d1296ef100b548231c (diff) | |
parent | 9b20c5047ec6bfefdd7a45e6b67b5bff6a2f0dd2 (diff) | |
download | exchange-35bf856fcba279c27dddb5ac4502f711eba8aa2b.tar.xz |
Merge branch 'master' of git+ssh://git.taler.net/exchange
Diffstat (limited to 'src')
-rwxr-xr-x | src/testing/taler-unified-setup.sh | 21 | ||||
-rw-r--r-- | src/testing/test_bank_api.c | 4 |
2 files changed, 19 insertions, 6 deletions
diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh index a52aebff1..8f97b4405 100755 --- a/src/testing/taler-unified-setup.sh +++ b/src/testing/taler-unified-setup.sh @@ -201,9 +201,18 @@ register_sandbox_account() { demobank \ delete \ --bank-account "$1" &> /dev/null || true - libeufin-cli sandbox \ - demobank \ - register --name "$3" + + MAYBE_IBAN="${4:-}" + if test -n "$MAYBE_IBAN"; then + libeufin-cli sandbox \ + demobank \ + register --name "$3" --iban "$MAYBE_IBAN" + else + libeufin-cli sandbox \ + demobank \ + register --name "$3" + fi + unset LIBEUFIN_SANDBOX_USERNAME unset LIBEUFIN_SANDBOX_PASSWORD } @@ -256,7 +265,11 @@ then fi echo "OK" echo -n "Register Sandbox users ..." - register_sandbox_account fortytwo x "Forty Two" + # The specified IBAN and name must match the ones hard-coded into + # the C helper for the add-incoming call. Without this value, + # Sandbox won't find the target account to debit along a /add-incoming + # call. + register_sandbox_account fortytwo x "User42" FR7630006000011234567890189 register_sandbox_account fortythree x "Forty Three" register_sandbox_account exchange x "Exchange Company" register_sandbox_account tor x "Tor Project" diff --git a/src/testing/test_bank_api.c b/src/testing/test_bank_api.c index a2afdf06e..e197b152c 100644 --- a/src/testing/test_bank_api.c +++ b/src/testing/test_bank_api.c @@ -142,8 +142,8 @@ run (void *cls, "fetch-transactions-at-nexus", "exchange", /* from taler-nexus-prepare */ "x", /* from taler-nexus-prepare */ - "http://localhost:5001", - "my-bank-account") /* from taler-nexus-prepare */ + "http://localhost:8082", + "exchange-nexus") /* from taler-nexus-prepare */ : TALER_TESTING_cmd_sleep ("nop", 0), TALER_TESTING_cmd_bank_debits ("history-2b", |