aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_merchant_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r--src/testing/test_merchant_api.c36
1 files changed, 27 insertions, 9 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index 27129066..c73e025e 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -1162,26 +1162,36 @@ run (void *cls,
};
struct TALER_TESTING_Command pay_again[] = {
- cmd_transfer_to_exchange ("create-reserve-10",
- "EUR:10.02"),
- cmd_exec_wirewatch ("wirewatch-10"),
+ cmd_transfer_to_exchange ("create-reserve-20",
+ "EUR:20.04"),
+ cmd_exec_wirewatch ("wirewatch-20"),
TALER_TESTING_cmd_check_bank_admin_transfer ("check_bank_transfer-10",
- "EUR:10.02",
+ "EUR:20.04",
payer_payto,
exchange_payto,
- "create-reserve-10"),
+ "create-reserve-20"),
TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-10a",
- "create-reserve-10",
+ "create-reserve-20",
"EUR:5",
0,
MHD_HTTP_OK),
TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-10b",
- "create-reserve-10",
+ "create-reserve-20",
+ "EUR:5",
+ 0,
+ MHD_HTTP_OK),
+ TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-10c",
+ "create-reserve-20",
+ "EUR:5",
+ 0,
+ MHD_HTTP_OK),
+ TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-10d",
+ "create-reserve-20",
"EUR:5",
0,
MHD_HTTP_OK),
- TALER_TESTING_cmd_status ("withdraw-status-10",
- "create-reserve-10",
+ TALER_TESTING_cmd_status ("withdraw-status-20",
+ "create-reserve-20",
"EUR:0",
MHD_HTTP_OK),
TALER_TESTING_cmd_merchant_post_orders ("create-proposal-10",
@@ -1207,6 +1217,14 @@ run (void *cls,
"EUR:5",
"EUR:4.99",
NULL),
+ TALER_TESTING_cmd_merchant_pay_order ("pay-too-much-10",
+ merchant_url,
+ MHD_HTTP_CONFLICT,
+ "create-proposal-10",
+ "withdraw-coin-10c;withdraw-coin-10d",
+ "EUR:5",
+ "EUR:4.99",
+ NULL),
CMD_EXEC_AGGREGATOR ("run-aggregator-10"),
TALER_TESTING_cmd_check_bank_transfer ("check_bank_transfer-9.97-10",
EXCHANGE_URL,