aboutsummaryrefslogtreecommitdiff
path: root/src/testing/taler-unified-setup.sh
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-06-12 16:34:35 +0200
committerMS <ms@taler.net>2023-06-12 16:34:35 +0200
commit9b20c5047ec6bfefdd7a45e6b67b5bff6a2f0dd2 (patch)
treec1fe7e19ac838c2073bc80812054dbd30a79be38 /src/testing/taler-unified-setup.sh
parentd8f8c550bd7ad85f9da9bc5edba619e533eabcc8 (diff)
downloadexchange-9b20c5047ec6bfefdd7a45e6b67b5bff6a2f0dd2.tar.xz
test_bank_api_with_nexus
Fixing the wiring of accounts in the test preparation. In particular, the name and IBAN of one debited account (along the /admin/add-incoming) was wrongly registered at Sandbox.
Diffstat (limited to 'src/testing/taler-unified-setup.sh')
-rwxr-xr-xsrc/testing/taler-unified-setup.sh21
1 files changed, 17 insertions, 4 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"