aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/auditor/setup.sh28
-rwxr-xr-xsrc/auditor/test-auditor.sh45
-rwxr-xr-xsrc/auditor/test-kyc.sh38
-rwxr-xr-xsrc/auditor/test-revocation.sh14
-rwxr-xr-xsrc/auditor/test-sync.sh4
5 files changed, 74 insertions, 55 deletions
diff --git a/src/auditor/setup.sh b/src/auditor/setup.sh
index 1ac8980ad..9ca0fe07e 100755
--- a/src/auditor/setup.sh
+++ b/src/auditor/setup.sh
@@ -63,14 +63,18 @@ function get_payto_uri() {
export LIBEUFIN_SANDBOX_USERNAME="$1"
export LIBEUFIN_SANDBOX_PASSWORD="$2"
export LIBEUFIN_SANDBOX_URL="http://localhost:18082"
- libeufin-cli sandbox demobank info --bank-account "$1" | jq --raw-output '.paytoUri'
+ echo "broken"
+ exit 1
+# libeufin-cli sandbox demobank info --bank-account "$1" | jq --raw-output '.paytoUri'
}
function get_bankaccount_transactions() {
export LIBEUFIN_SANDBOX_USERNAME=$1
export LIBEUFIN_SANDBOX_PASSWORD=$2
export LIBEUFIN_SANDBOX_URL="http://localhost:18082"
- libeufin-cli sandbox demobank list-transactions --bank-account $1
+ echo "broken"
+ exit 1
+# libeufin-cli sandbox demobank list-transactions --bank-account $1
}
@@ -123,11 +127,13 @@ function nexus_fetch_transactions () {
export LIBEUFIN_NEXUS_USERNAME="exchange"
export LIBEUFIN_NEXUS_PASSWORD="x"
export LIBEUFIN_NEXUS_URL="http://localhost:8082/"
- libeufin-cli accounts \
- fetch-transactions \
- --range-type since-last \
- --level report \
- exchange-nexus > /dev/null
+ echo "broken"
+ exit 1
+# libeufin-cli accounts \
+# fetch-transactions \
+# --range-type since-last \
+# --level report \
+# exchange-nexus > /dev/null
unset LIBEUFIN_NEXUS_USERNAME
unset LIBEUFIN_NEXUS_PASSWORD
unset LIBEUFIN_NEXUS_URL
@@ -140,9 +146,11 @@ function nexus_submit_to_sandbox () {
export LIBEUFIN_NEXUS_USERNAME="exchange"
export LIBEUFIN_NEXUS_PASSWORD="x"
export LIBEUFIN_NEXUS_URL="http://localhost:8082/"
- libeufin-cli accounts \
- submit-payments\
- exchange-nexus
+ echo "broken"
+ exit 1
+# libeufin-cli accounts \
+# submit-payments\
+# exchange-nexus
unset LIBEUFIN_NEXUS_USERNAME
unset LIBEUFIN_NEXUS_PASSWORD
unset LIBEUFIN_NEXUS_URL
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 4c8389b99..80a59282a 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -373,27 +373,28 @@ function run_audit () {
export LIBEUFIN_NEXUS_USERNAME="exchange"
export LIBEUFIN_NEXUS_PASSWORD="x"
export LIBEUFIN_NEXUS_URL="http://localhost:8082/"
- PAIN_UUID=$(libeufin-cli accounts list-payments exchange-nexus | jq .initiatedPayments[] | jq 'select(.submitted==false)' | jq -r .paymentInitiationId)
- if test -z "${PAIN_UUID}"
- then
- echo -n "Payment likely already submitted, running submit-payments without UUID anyway ..."
- libeufin-cli accounts \
- submit-payments \
- exchange-nexus
- else
- echo -n "Running payment submission for transaction ${PAIN_UUID} ..."
- libeufin-cli accounts \
- submit-payments \
- --payment-uuid "${PAIN_UUID}" \
- exchange-nexus
- fi
- echo " DONE"
- echo -n "Import outgoing transactions..."
- libeufin-cli accounts \
- fetch-transactions \
- --range-type since-last \
- --level report \
- exchange-nexus
+
+ #PAIN_UUID=$(libeufin-cli accounts list-payments exchange-nexus | jq .initiatedPayments[] | jq 'select(.submitted==false)' | jq -r .paymentInitiationId)
+# if test -z "${PAIN_UUID}"
+# then
+# echo -n "Payment likely already submitted, running submit-payments without UUID anyway ..."
+# libeufin-cli accounts \
+# submit-payments \
+# exchange-nexus
+# else
+# echo -n "Running payment submission for transaction ${PAIN_UUID} ..."
+# libeufin-cli accounts \
+# submit-payments \
+# --payment-uuid "${PAIN_UUID}" \
+# exchange-nexus
+# fi
+# echo " DONE"
+# echo -n "Import outgoing transactions..."
+# libeufin-cli accounts \
+# fetch-transactions \
+# --range-type since-last \
+# --level report \
+# exchange-nexus
echo " DONE"
fi
audit_only
@@ -2215,7 +2216,7 @@ echo "Testing for faketime"
faketime -h > /dev/null || exit_skip "faketime required"
# NOTE: really check for all three libeufin commands?
echo "Testing for libeufin"
-libeufin-cli --help >/dev/null 2> /dev/null </dev/null || exit_skip "libeufin required"
+libeufin-bank --help >/dev/null 2> /dev/null </dev/null || exit_skip "libeufin required"
echo "Testing for pdflatex"
which pdflatex > /dev/null </dev/null || exit_skip "pdflatex required"
echo "Testing for taler-wallet-cli"
diff --git a/src/auditor/test-kyc.sh b/src/auditor/test-kyc.sh
index b984dd881..b20e55665 100755
--- a/src/auditor/test-kyc.sh
+++ b/src/auditor/test-kyc.sh
@@ -376,27 +376,35 @@ function run_audit () {
export LIBEUFIN_NEXUS_USERNAME="exchange"
export LIBEUFIN_NEXUS_PASSWORD="x"
export LIBEUFIN_NEXUS_URL="http://localhost:8082/"
- PAIN_UUID=$(libeufin-cli accounts list-payments exchange-nexus | jq .initiatedPayments[] | jq 'select(.submitted==false)' | jq -r .paymentInitiationId)
+ echo "broken"
+ exit 1
+# PAIN_UUID=$(libeufin-cli accounts list-payments exchange-nexus | jq .initiatedPayments[] | jq 'select(.submitted==false)' | jq -r .paymentInitiationId)
if test -z "${PAIN_UUID}"
then
echo -n "Payment likely already submitted, running submit-payments without UUID anyway ..."
- libeufin-cli accounts \
- submit-payments \
- exchange-nexus
+ echo "broken"
+ exit 1
+# libeufin-cli accounts \
+# submit-payments \
+# exchange-nexus
else
echo -n "Running payment submission for transaction ${PAIN_UUID} ..."
- libeufin-cli accounts \
- submit-payments \
- --payment-uuid "${PAIN_UUID}" \
- exchange-nexus
+ echo "broken"
+ exit 1
+# libeufin-cli accounts \
+# submit-payments \
+# --payment-uuid "${PAIN_UUID}" \
+# exchange-nexus
fi
echo " DONE"
echo -n "Import outgoing transactions..."
- libeufin-cli accounts \
- fetch-transactions \
- --range-type since-last \
- --level report \
- exchange-nexus
+ echo "broken"
+ exit 1
+# libeufin-cli accounts \
+# fetch-transactions \
+# --range-type since-last \
+# --level report \
+# exchange-nexus
echo " DONE"
fi
audit_only
@@ -702,8 +710,8 @@ jq -h > /dev/null || exit_skip "jq required"
echo "Testing for faketime"
faketime -h > /dev/null || exit_skip "faketime required"
# NOTE: really check for all three libeufin commands?
-echo "Testing for libeufin"
-libeufin-cli --help >/dev/null 2> /dev/null </dev/null || exit_skip "libeufin required"
+echo "Testing for libeufin-bank"
+libeufin-bank --help >/dev/null 2> /dev/null </dev/null || exit_skip "libeufin-bank required"
echo "Testing for pdflatex"
which pdflatex > /dev/null </dev/null || exit_skip "pdflatex required"
echo "Testing for taler-wallet-cli"
diff --git a/src/auditor/test-revocation.sh b/src/auditor/test-revocation.sh
index 06e2b5ae0..924d554e5 100755
--- a/src/auditor/test-revocation.sh
+++ b/src/auditor/test-revocation.sh
@@ -93,9 +93,11 @@ function get_payto_uri() {
export LIBEUFIN_SANDBOX_USERNAME=$1
export LIBEUFIN_SANDBOX_PASSWORD=$2
export LIBEUFIN_SANDBOX_URL=http://localhost:18082
- libeufin-cli sandbox demobank info \
- --bank-account "$1" \
- | jq --raw-output '.paytoUri'
+ echo "broken"
+ exit 1
+# libeufin-cli sandbox demobank info \
+# --bank-account "$1" \
+# | jq --raw-output '.paytoUri'
}
@@ -689,12 +691,12 @@ jq -h > /dev/null || exit_skip "jq required"
echo "Testing for faketime"
faketime -h > /dev/null \
|| exit_skip "faketime required"
-echo "Testing for libeufin(-cli)"
-libeufin-cli --help \
+echo "Testing for libeufin-bank"
+libeufin-bank --help \
>/dev/null \
2> /dev/null \
</dev/null \
- || exit_skip "libeufin required"
+ || exit_skip "libeufin-bank required"
echo "Testing for pdflatex"
which pdflatex > /dev/null </dev/null || exit_skip "pdflatex required"
echo "Testing for taler-wallet-cli"
diff --git a/src/auditor/test-sync.sh b/src/auditor/test-sync.sh
index 9f1255b7c..bcef908aa 100755
--- a/src/auditor/test-sync.sh
+++ b/src/auditor/test-sync.sh
@@ -99,8 +99,8 @@ echo "Testing for jq"
jq -h > /dev/null || exit_skip "jq required"
echo "Testing for faketime"
faketime -h > /dev/null || exit_skip "faketime required"
-echo "Testing for libeufin"
-libeufin-cli --help >/dev/null </dev/null 2> /dev/null || exit_skip "libeufin required"
+echo "Testing for libeufin-bank"
+libeufin-bank --help >/dev/null </dev/null 2> /dev/null || exit_skip "libeufin-bank required"
echo "Testing for pdflatex"
which pdflatex > /dev/null </dev/null || exit_skip "pdflatex required"
echo "Testing for taler-wallet-cli"