[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Add walkthrough script for subscriber
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Add walkthrough script for subscriber initialization. |
Date: |
Sat, 25 Jan 2020 01:21:49 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 1102d8a Add walkthrough script for subscriber initialization.
1102d8a is described below
commit 1102d8a9bde4fa452494f9eb6141176feb399e1d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Jan 25 01:21:14 2020 +0100
Add walkthrough script for subscriber initialization.
---
nexus/src/test/script/prepare_subscriber.sh | 59 +++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/nexus/src/test/script/prepare_subscriber.sh
b/nexus/src/test/script/prepare_subscriber.sh
new file mode 100755
index 0000000..1bb2dd8
--- /dev/null
+++ b/nexus/src/test/script/prepare_subscriber.sh
@@ -0,0 +1,59 @@
+#!/bin/bash
+
+# This program allocates a new customer into the Sandbox
+# and Nexus systems.
+
+usage () {
+ printf "Usage: ./prepare_subscriber.sh <salt>\n"
+ printf "<salt> is any chars used to form user and partner IDs.\n"
+}
+
+exe_echo () {
+ echo \$ "$@"; "$@"
+}
+
+if [ -z "$1" ]; then
+ usage
+ exit 1
+fi
+
+printf "\nFirst: the new subscriber must exist in the Sandbox. For\n"
+printf "this reason, we invoke the \"admin\" part of its API.\n"
+printf "Press <enter> key to proceed.."
+read x
+printf "\n"
+
+exe_echo libeufin-cli admin add-subscriber \
+ --sandbox-url http://localhost:5000/admin/add/subscriber \
+ --user-id "user$1" \
+ --partner-id "partner$1" \
+ --host-id "host$1" \
+ --name "name $1" && sleep 1
+
+printf "\nSecond: the Nexus must persist the same information,\n"
+printf "and associate a numerical ID to it.\n"
+printf "Press <enter> key to proceed.."
+read x
+
+printf "\n"
+exe_echo libeufin-cli ebics new-subscriber \
+ --ebics-url http://localhost:5001/ebicsweb \
+ --user-id "user$1" \
+ --partner-id "partner$1" \
+ --host-id "host$1" && sleep 1
+
+
+# Finally, the numerical ID just created can be used
+# to drive all the EBICS operations. Request it with:
+
+printf "\nA new subscriber was created at the Sandbox and\n"
+printf "at the Nexus. Press <enter> for more useful commands.."
+read x
+
+printf "\nSee again your ID:\n"
+printf "\tcurl http://localhost:5001/ebics/subscribers\n"
+
+printf "Request INI, HIA, and HPB, with:\n"
+printf "\tlibeufin-cli ebics ini --customer-id=\$ID_NUMBER\n"
+printf "\tlibeufin-cli ebics hia --customer-id=\$ID_NUMBER\n"
+printf "\tlibeufin-cli ebics sync --customer-id=\$ID_NUMBER\n\n"
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Add walkthrough script for subscriber initialization.,
gnunet <=