libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit d9133fc1399ebeb9afe4609363ab3b3d3b54d250
parent c3699356938968f66e462f8b5d1423a2f6084aca
Author: MS <ms@taler.net>
Date:   Fri, 12 Jun 2020 14:51:09 +0200

fix new cli

Diffstat:
Mcli/libeufin-cli-new | 4++--
Mcli/setup-template.sh | 23+++++++++++++----------
2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/cli/libeufin-cli-new b/cli/libeufin-cli-new @@ -52,9 +52,9 @@ def new_ebics_connection(obj, connection_name, ebics_url, host_id, partner_id, source="new", type="ebics", data=dict(ebicsURL=ebics_url, hostID=host_id, partnerID=partner_id, userID=ebics_user_id) - ), + ) try: - resp = post(url, json=body, auth = auth.HTTPBasicAuth(nexus_user_id, nexus_password)) + resp = post(url, json=body, auth=auth.HTTPBasicAuth(nexus_user_id, nexus_password)) except Exception: print("Could not reach nexus") exit(1) diff --git a/cli/setup-template.sh b/cli/setup-template.sh @@ -19,11 +19,14 @@ NEXUS_USER=u NEXUS_PASSWORD=p NEXUS_BANK_CONNECTION_NAME=b +NEXUS_DB=/tmp/n.sqlite3 +SANDBOX_DB=/tmp/s.sqlite3 + ########## setup sandbox ############# -# make ebics host as sandbox +# make ebics host at sandbox echo Making a ebics host at the sandbox -sleep 3 +sleep 2 ./libeufin-cli-new \ sandbox \ make-ebics-host \ @@ -32,7 +35,7 @@ sleep 3 # activate a ebics subscriber on that host echo Activating the ebics subscriber at the sandbox -sleep 3 +sleep 2 ./libeufin-cli-new \ sandbox \ activate-ebics-subscriber \ @@ -54,14 +57,14 @@ echo Giving a bank account to such subscriber --ebics-host-id=$EBICS_HOST_ID \ --ebics-partner-id=$EBICS_PARTNER_ID \ $SANDBOX_URL -sleep 3 +sleep 2 ########## setup nexus ############# # create a user -echo Creating a nexus user -nexus superuser --password $NEXUS_PASSWORD $NEXUS_USER -sleep 3 +echo "Creating a nexus user (giving time to settle)" +nexus superuser --db-name=$NEXUS_DB --password $NEXUS_PASSWORD $NEXUS_USER +sleep 2 # create a bank connection echo Creating a bank connection for such user @@ -76,7 +79,7 @@ echo Creating a bank connection for such user --nexus-user-id $NEXUS_USER \ --nexus-password $NEXUS_PASSWORD \ $NEXUS_URL -sleep 3 +sleep 2 # Bootstrapping such connection echo Bootstrapping the bank connection @@ -87,7 +90,7 @@ echo Bootstrapping the bank connection --nexus-user-id $NEXUS_USER \ --nexus-password $NEXUS_PASSWORD \ $NEXUS_URL -sleep 3 +sleep 2 # Fetching the bank accounts echo Fetching the bank accounts @@ -98,7 +101,7 @@ echo Fetching the bank accounts --nexus-user-id $NEXUS_USER \ --nexus-password $NEXUS_PASSWORD \ $NEXUS_URL -sleep 3 +sleep 2 echo User is setup, history can be requested, and \ new payments can be prepared and submitted.