[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 02/02: setup accounts also for fakebank setup
From: |
gnunet |
Subject: |
[taler-exchange] 02/02: setup accounts also for fakebank setup |
Date: |
Wed, 23 Aug 2023 10:29:34 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 8cc927b778a8476deda5ffcdf1e91607f9667db8
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Aug 23 10:29:29 2023 +0200
setup accounts also for fakebank setup
---
src/testing/taler-unified-setup.sh | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/src/testing/taler-unified-setup.sh
b/src/testing/taler-unified-setup.sh
index 04a80c65..bdd7bf19 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -227,6 +227,20 @@ register_sandbox_account() {
unset LIBEUFIN_SANDBOX_PASSWORD
}
+register_fakebank_account() {
+ BODY='{"username":"'"$1"'","password":"'"$2"'"}'
+ wget \
+ --post-data="$BODY" \
+ --header='Content-type: application/json' \
+ --tries=3 \
+ --waitretry=1 \
+ --timeout=30 \
+ "http://localhost:$BANK_PORT/taler-bank-access/testing/register" \
+ -o /dev/null \
+ -O /dev/null \
+ >/dev/null
+}
+
if [[ "1" = "$START_NEXUS" || "1" = "$START_FAKEBANK" ]]
then
@@ -449,10 +463,13 @@ fi
if [ "1" = "$START_FAKEBANK" ]
then
echo "Setting up fakebank ..."
- $USE_VALGRIND taler-fakebank-run -c "$CONF" -L "$LOGLEVEL" -n 4 2>
taler-fakebank-run.log &
+ $USE_VALGRIND taler-fakebank-run\
+ -c "$CONF" \
+ -L "$LOGLEVEL" \
+ -n 4 \
+ 2> taler-fakebank-run.log &
fi
-
if [ "1" = "$START_EXCHANGE" ]
then
echo -n "Starting exchange ..."
@@ -598,6 +615,20 @@ then
echo " OK"
fi
+if [ "1" = "$START_FAKEBANK" ]
+then
+ echo -n "Register Fakebank users ..."
+ register_fakebank_account fortytwo x
+ register_fakebank_account fortythree x
+ register_fakebank_account exchange x
+ register_fakebank_account tor x
+ register_fakebank_account gnunet x
+ register_fakebank_account tutorial x
+ register_fakebank_account survey x
+ echo " DONE"
+fi
+
+
echo -n "Waiting for Taler services ..."
# Wait for all other taler services to be available
E_DONE=0
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.