generating revocation test DB

This commit is contained in:
Christian Grothoff 2020-03-26 18:58:42 +01:00
parent 28c00bedbf
commit 8fa6b996ed
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
6 changed files with 4907 additions and 4 deletions

View File

@ -14,3 +14,4 @@ taler-helper-auditor-coins
taler-helper-auditor-deposits
taler-helper-auditor-reserves
taler-helper-auditor-wire
generate-auditor-basedb-prod.conf

View File

@ -94,6 +94,7 @@ taler-bank-manage-testing $CONF postgres:///$TARGET_DB serve-http &> revocation-
taler-exchange-httpd -c $CONF 2> taler-exchange-httpd.log &
EXCHANGE_PID=$!
taler-merchant-httpd -c $CONF -L INFO 2> taler-merchant-httpd.log &
MERCHANT_PID=$!
taler-exchange-wirewatch -c $CONF 2> taler-exchange-wirewatch.log &
taler-auditor-httpd -c $CONF 2> taler-auditor-httpd.log &
@ -246,15 +247,26 @@ taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB advanced suspend-coins "$sus
taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB exchanges update \
-f $EXCHANGE_URL
# FIXME: wallet is broken...
echo "Before Wallet CABOOM (type exit, note that you will have to terminate the wallet with CTRL-C)"
bash
# Block until scheduled operations are done
taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB run-until-done &> wallet-caboom.log
bash
# FIXME: check commands work from here...
echo "Restarting merchant (so new keys are known)"
kill -TERM $MERCHANT_PID
taler-merchant-httpd -c $CONF -L INFO 2> taler-merchant-httpd.log &
MERCHANT_PID=$!
# Wait for merchant to be again available
for n in `seq 1 50`
do
echo -n "."
sleep 0.1
OK=0
# merchant
wget http://localhost:9966/ -o /dev/null -O /dev/null >/dev/null || continue
OK=1
break
done
# Now we buy something, only the coins resulting from recoup+refresh will be
# used, as other ones are suspended

View File

@ -0,0 +1 @@
1585243926

Binary file not shown.

View File

@ -0,0 +1 @@
NNH07CN3XZ7NF5825YP5MH5VTZCY7SE87J5WRZGNWGAEY3SV7C6G

File diff suppressed because it is too large Load Diff