diff options
| author | Florian Dold <florian.dold@gmail.com> | 2020-08-13 00:41:53 +0530 |
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2020-08-13 00:41:53 +0530 |
| commit | db65f0a20669a81cb7db4425d7d044b8ff49952a (patch) | |
| tree | 280ebbc25fdc3aed12ae3ebbecb692c1b0e39093 /integrationtests/test-refund.sh | |
| parent | e9ed3b18672af919efa12364b97fd2b7efe21cd9 (diff) | |
remove old tests, superseded by the JS-based harness
Diffstat (limited to 'integrationtests/test-refund.sh')
| -rwxr-xr-x | integrationtests/test-refund.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/integrationtests/test-refund.sh b/integrationtests/test-refund.sh deleted file mode 100755 index 7b8fbdef7..000000000 --- a/integrationtests/test-refund.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Script to check that the wallet can handle refund URIs and actually process the refund - -source "common.sh" -normal_start_and_wait "refund" - -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" -BALANCE_1=$(get_balance) -echo "Balance after withdrawal: $BALANCE_1" -REFUND_URI=$(taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing gen-refund-uri \ - -m "$MERCHANT_URL" -k sandbox \ - -s "first refund" -a "TESTKUDOS:8" -r "TESTKUDOS:2" 2>>"$LOG" | grep -E -m 1 -o "taler://refund.*insecure=1") -BALANCE_2=$(get_balance) -echo "Balance after payment: $BALANCE_2" -assert_less_than "$BALANCE_2" "$BALANCE_1" -taler-wallet-cli --wallet-db="$WALLET_DB" balance 2>>"$LOG" -echo "Handling refund: $REFUND_URI" -taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle handle-uri "$REFUND_URI" 2>"$LOG" -taler-wallet-cli --wallet-db="$WALLET_DB" run-until-done 2>>"$LOG" >>"$LOG" -BALANCE_3=$(get_balance) -echo "Balance after first refund: $BALANCE_3" -assert_greater_than "$BALANCE_3" "$BALANCE_2" -# TODO how to test second refund for same purchase? - -exit_success |
