diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-17 10:30:17 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-17 10:30:17 +0200 |
commit | e5ec16b9089873876036443835ecfe324881fd5b (patch) | |
tree | 98cb2f69befb7713890b6754ec5cc5deea38b6be /src | |
parent | 776f222547e78e8d53e35e0d35ae3d2eab0ad185 (diff) |
trigger refund fee currency missmatch.
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange-lib/test_exchange_api_twisted.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c index 0a1e6bd8d..c7e371944 100644 --- a/src/exchange-lib/test_exchange_api_twisted.c +++ b/src/exchange-lib/test_exchange_api_twisted.c @@ -209,8 +209,10 @@ run (void *cls, CMD_TRANSFER_TO_EXCHANGE ("create-reserve-r1", "EUR:5.01"), + CMD_EXEC_WIREWATCH ("wirewatch-r1"), + TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-r1", is->exchange, @@ -232,9 +234,16 @@ run (void *cls, "EUR:5", MHD_HTTP_OK), + TALER_TESTING_cmd_modify_object_ul + ("hack-currency", + CONFIG_FILE, + /* Will make currency missmatch */ + "refund_amount", + "USD:5"), + TALER_TESTING_cmd_refund ("refund-ok", - MHD_HTTP_OK, + MHD_HTTP_BAD_REQUEST, "EUR:5", "EUR:0.01", "deposit-refund-1"), |