gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: fix tests


From: gnunet
Subject: [taler-anastasis] branch master updated: fix tests
Date: Wed, 17 Mar 2021 21:50:11 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 05fa06a  fix tests
05fa06a is described below

commit 05fa06aeb9c82cbbedede32166787fc70bad0005
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Mar 17 21:50:09 2021 +0100

    fix tests
---
 ...astasis_reducer_recovery_enter_user_attributes.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh 
b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
index 84c1ec4..edd9bd6 100755
--- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
+++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -345,6 +345,26 @@ taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 
'withdrawTestBalance'
 taler-wallet-cli --wallet-db=$WALLET_DB run-until-done 2>/dev/null >/dev/null
 echo " OK"
 
+echo -en "Making payments for truth uploads ... "
+OBJECT_SIZE=`jq -r -e '.payments | length' < $B2FILE`
+for ((INDEX=0; INDEX < $OBJECT_SIZE; INDEX++))
+do
+    PAY_URI=`jq --argjson INDEX $INDEX -r -e '.payments[$INDEX]' < $B2FILE`
+    # run wallet CLI
+    echo -n "$INDEX"
+    taler-wallet-cli --wallet-db=$WALLET_DB handle-uri $PAY_URI -y 2>/dev/null 
>/dev/null
+    echo -n ","
+done
+echo " OK"
+echo -e "Running wallet run-pending..."
+taler-wallet-cli --wallet-db=$WALLET_DB run-pending 2>/dev/null >/dev/null
+echo -e "Payments done"
+
+echo -en "Try to upload again ..."
+$PREFIX anastasis-reducer pay $B2FILE $B1FILE
+mv $B1FILE $B2FILE
+echo " OK"
+
 echo -en "Making payments for policy uploads ... "
 OBJECT_SIZE=`jq -r -e '.policy_payment_requests | length' < $B2FILE`
 for ((INDEX=0; INDEX < $OBJECT_SIZE; INDEX++))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]