[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: check the exchange get its keys
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: check the exchange get its keys before trying to sign them |
Date: |
Thu, 02 Sep 2021 15:49:26 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new eac1b39e check the exchange get its keys before trying to sign them
eac1b39e is described below
commit eac1b39e5b5b5ada08d030c91e5abb9a80e0c127
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Sep 2 10:49:18 2021 -0300
check the exchange get its keys before trying to sign them
---
src/testing/initialize_taler_system.sh | 34 ++++++++++++++++++++++++++++------
1 file changed, 28 insertions(+), 6 deletions(-)
diff --git a/src/testing/initialize_taler_system.sh
b/src/testing/initialize_taler_system.sh
index 15e59988..b66780a1 100755
--- a/src/testing/initialize_taler_system.sh
+++ b/src/testing/initialize_taler_system.sh
@@ -138,10 +138,6 @@ taler-auditor-httpd -L INFO -c $CONF 2>
taler-auditor-httpd.log &
echo " OK"
-echo -n "Wait RSA service to build keys..."
-( tail -f -n0 taler-exchange-secmod-rsa.log & ) | grep -q "Sending RSA SYNCED
message"
-echo " done"
-
echo -n "Waiting for the bank"
# Wait for bank to be available (usually the slowest)
for n in `seq 1 50`
@@ -159,12 +155,14 @@ if [ 1 != $OK ]
then
exit_skip "Failed to launch services (bank)"
fi
+echo " OK"
+echo -n "Waiting for taler services "
# Wait for all other taler services to be available
-for n in `seq 1 50`
+for n in `seq 1 10`
do
echo -n "."
- sleep 0.1
+ sleep 1
OK=0
# exchange
wget --tries=1 --timeout=1 http://localhost:8081/seed -o /dev/null -O
/dev/null >/dev/null || continue
@@ -183,6 +181,30 @@ fi
echo "OK"
+set +e
+echo -n 'Wait the exchange for gather its keys '
+for n in `seq 1 10`
+do
+ echo -n "."
+ sleep 1
+ OK=0
+ # exchange
+ wget --tries=3 --waitretry=0 --timeout=1
http://localhost:8081/management/keys -o /dev/null -O $LAST_RESPONSE >/dev/null
+ DENOMS_COUNT=`jq '.future_denoms|length' < $LAST_RESPONSE`
+ SIGNKEYS_COUNT=`jq '.future_signkeys|length' < $LAST_RESPONSE`
+ [[ -z "$SIGNKEYS_COUNT" || "$SIGNKEYS_COUNT" == "0" || -z "$DENOMS_COUNT"
|| "$DENOMS_COUNT" == "0" ]] && continue
+ OK=1
+ break;
+done
+set -e
+
+if [ 1 != $OK ]
+then
+ exit_skip "Failed to setup exchange keys, check secmod logs"
+fi
+
+echo " OK"
+
echo -n "Setting up keys ..."
taler-exchange-offline -c $CONF \
download \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: check the exchange get its keys before trying to sign them,
gnunet <=