summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli/test_iban.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
new file mode 100644
index 0000000..e43dc10
--- /dev/null
+++ 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"