diff options
Diffstat (limited to 'src/cli/test_iban.sh')
-rw-r--r-- | src/cli/test_iban.sh | 36 |
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 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | # Script's guidelines: | ||
6 | |||
7 | #* uses 'CURRENCY=TESTKUDOS' and uses $CURRENCY for all | ||
8 | # currencies in what follows ... | ||
9 | #* for databases, use either 'anastasischeck' for Postgres | ||
10 | # or an sqlite file created via "mktemp /tmp/test-XXXXXX" | ||
11 | # or something like that | ||
12 | #* exits with 77 if libeufin is not properly installed/available | ||
13 | #* exits with 77 if Postgres with 'anastasischeck' is not properly | ||
14 | # installed/available | ||
15 | #* starts Nexus (in background) | ||
16 | #* starts sandbox (in background) | ||
17 | #* creates two IBAN accounts | ||
18 | #* stores IBANs of both accounts in shell variables, | ||
19 | # call them IBAN_CREDIT and IBAN_DEBIT. | ||
20 | #* configures an Anastasis facade for IBAN_CREDIT. | ||
21 | #* exports authentication credentials (URL, access token) | ||
22 | # for the facade to shell variables | ||
23 | # (FACADE_URL, FACADE_AUTH_TOKEN) | ||
24 | #* contains a command to do a wire-transfer (pick your amount) | ||
25 | # from DEBIT to CREDIT (setup authentication as needed to | ||
26 | # trigger the transfer) | ||
27 | # | ||
28 | # | ||
29 | #Make sure 'set -eu' and include some progress indicators, like: | ||
30 | # | ||
31 | #echo -n "Starting nexus ..." | ||
32 | ## DO WORK | ||
33 | #echo " DONE" | ||
34 | #echo -n "Starting sandbox ..." | ||
35 | ## DO WORK | ||
36 | #echo " DONE" | ||