aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:24:48 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:24:48 +0200
commit1b5dfe20c3148270ec032b265cfdd19e2f564d0d (patch)
tree0c92ea2106a601c469d15d7908fc4741d2f6533a /src
parent2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc (diff)
Trigger refund insufficient funds
Diffstat (limited to 'src')
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c
index 63358e755..319bcb601 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -243,7 +243,7 @@ run (void *cls,
"deposit-refund-1"),
TALER_TESTING_cmd_refund
- ("refund-above-amount",
+ ("refund-fee-above-amount",
MHD_HTTP_BAD_REQUEST,
"EUR:5",
"EUR:10",
@@ -289,6 +289,13 @@ run (void *cls,
"EUR:0.01",
"deposit-refund-to-fail"),
+ TALER_TESTING_cmd_refund
+ ("refund-insufficient-funds",
+ MHD_HTTP_PRECONDITION_FAILED,
+ "EUR:50",
+ "EUR:0.01",
+ "deposit-refund-1"),
+
TALER_TESTING_cmd_end ()
};