diff options
author | Torsten Grote <t@grobox.de> | 2020-05-08 15:02:07 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-05-08 15:02:07 -0300 |
commit | 7e947ca2cdd8e66ea49822acbad81e7d35289c0a (patch) | |
tree | db9240c5c67d69d89785110c4f2bf346a87d2622 /integrationtests/test-double-link.sh | |
parent | 1cf48054c47d9562876b5f021dc398b050b959fd (diff) |
Add functions for getting and comparing balances to integration tests
Diffstat (limited to 'integrationtests/test-double-link.sh')
-rwxr-xr-x | integrationtests/test-double-link.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integrationtests/test-double-link.sh b/integrationtests/test-double-link.sh index ee4af891a..d5f5d3329 100755 --- a/integrationtests/test-double-link.sh +++ b/integrationtests/test-double-link.sh @@ -7,13 +7,13 @@ normal_start_and_wait "double-link" echo "Getting pay taler:// Uri" PAY_URI=$(taler-wallet-cli testing gen-pay-uri -m "$MERCHANT_URL" -k sandbox -a "TESTKUDOS:1" -s "foo" | grep -E -o 'taler://.*') echo "Trying to pay without balance" -taler-wallet-cli --wallet-db=$WALLET_DB --no-throttle handle-uri --yes "$PAY_URI" 2>&1 | grep -q "insufficient balance" || exit_error "not reporting insufficient balance" +taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle handle-uri --yes "$PAY_URI" 2>&1 | grep -q "insufficient balance" || exit_error "not reporting insufficient balance" echo "Withdrawing" -taler-wallet-cli --wallet-db=$WALLET_DB --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:10" > /dev/null +taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:10" > /dev/null echo "Trying to pay again, should work this time" -taler-wallet-cli --wallet-db=$WALLET_DB --no-throttle handle-uri --yes "$PAY_URI" > /dev/null +taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle handle-uri --yes "$PAY_URI" > /dev/null echo "Trying to pay what was paid already should throw error" -taler-wallet-cli --wallet-db=$WALLET_DB --no-throttle handle-uri --yes "$PAY_URI" 2>&1 | grep -q "already paid" || exit_error "not reporting already paid" +taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle handle-uri --yes "$PAY_URI" 2>&1 | grep -q "already paid" || exit_error "not reporting already paid" echo "Already paid properly detected" exit_success |