commit 0a74003538dff631cff4afd77b1f144a3f35a8b8
parent 916149f7e16b813f69c933040abeb97f0977947b
Author: MS <ms@taler.net>
Date: Fri, 20 Aug 2021 00:25:27 -1100
Noting guidelines for the IBAN-test script.
Diffstat:
1 file changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+set -eu
+
+# Script's guidelines:
+
+#* uses 'CURRENCY=TESTKUDOS' and uses $CURRENCY for all
+# currencies in what follows ...
+#* for databases, use either 'anastasischeck' for Postgres
+# or an sqlite file created via "mktemp /tmp/test-XXXXXX"
+# or something like that
+#* exits with 77 if libeufin is not properly installed/available
+#* exits with 77 if Postgres with 'anastasischeck' is not properly
+# installed/available
+#* starts Nexus (in background)
+#* starts sandbox (in background)
+#* creates two IBAN accounts
+#* stores IBANs of both accounts in shell variables,
+# call them IBAN_CREDIT and IBAN_DEBIT.
+#* configures an Anastasis facade for IBAN_CREDIT.
+#* exports authentication credentials (URL, access token)
+# for the facade to shell variables
+# (FACADE_URL, FACADE_AUTH_TOKEN)
+#* contains a command to do a wire-transfer (pick your amount)
+# from DEBIT to CREDIT (setup authentication as needed to
+# trigger the transfer)
+#
+#
+#Make sure 'set -eu' and include some progress indicators, like:
+#
+#echo -n "Starting nexus ..."
+## DO WORK
+#echo " DONE"
+#echo -n "Starting sandbox ..."
+## DO WORK
+#echo " DONE"