aboutsummaryrefslogtreecommitdiff
path: root/integrationtests/test-coin-expiration.sh
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-05-18 13:45:21 -0300
committerTorsten Grote <t@grobox.de>2020-05-18 13:46:00 -0300
commita3354306c629ab3ab5f45617f31b90976416105a (patch)
treea5cb7255596e2a3e7b4bfa48df18a72e0e719921 /integrationtests/test-coin-expiration.sh
parentff50526560880ef070f1f6ec5a0a7eb4ae3fee2e (diff)
downloadwallet-core-a3354306c629ab3ab5f45617f31b90976416105a.tar.xz
Add integration test for withdrawals
Diffstat (limited to 'integrationtests/test-coin-expiration.sh')
-rwxr-xr-xintegrationtests/test-coin-expiration.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/integrationtests/test-coin-expiration.sh b/integrationtests/test-coin-expiration.sh
new file mode 100755
index 000000000..83f7477bf
--- /dev/null
+++ b/integrationtests/test-coin-expiration.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Script to check that the wallet automatically refreshes coins for they expire
+
+source "common.sh"
+normal_start_and_wait "coin-expiration"
+
+echo "Withdraw TESTKUDOS"
+taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:10" >>"$LOG" 2>>"$LOG"
+echo "Balance after withdrawal: $(get_balance)"
+
+# TODO time-travel to check that wallet actually refreshed coin before expiration
+taler-wallet-cli --wallet-db="$WALLET_DB" advanced dump-coins
+
+exit_success