diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-16 21:44:18 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-16 21:44:18 -0400 |
commit | 06010ba8681aa588c977410e0ae6f32879435432 (patch) | |
tree | 819200d410273f103d3a8f5764ce681b3f0a7f06 /src/testing/test_merchant_api.c | |
parent | 63c035bfffaec9b245da58828f7d6504278fc46e (diff) | |
download | merchant-06010ba8681aa588c977410e0ae6f32879435432.tar.gz merchant-06010ba8681aa588c977410e0ae6f32879435432.tar.bz2 merchant-06010ba8681aa588c977410e0ae6f32879435432.zip |
fix/test for POST tips//pickup
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index c2ed9535..fb230f04 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -642,12 +642,24 @@ run (void *cls, EXCHANGE_URL, "x-taler-bank", MHD_HTTP_OK), + TALER_TESTING_cmd_admin_add_incoming_with_ref ("create-reserve-tip-1-exch", + "EUR:20.04", + &bc.exchange_auth, + payer_payto, + "create-reserve-tip-1"), + cmd_exec_wirewatch ("wirewatch-3"), TALER_TESTING_cmd_tip_authorize ("authorize-tip-1", merchant_url, EXCHANGE_URL, MHD_HTTP_OK, "tip 1", "EUR:5.01"), + TALER_TESTING_cmd_tip_authorize ("authorize-tip-2", + merchant_url, + EXCHANGE_URL, + MHD_HTTP_OK, + "tip 2", + "EUR:5.01"), TALER_TESTING_cmd_get_tips ("get-tips-1", merchant_url, MHD_HTTP_OK), @@ -658,7 +670,11 @@ run (void *cls, merchant_url, MHD_HTTP_OK, "create-reserve-tip-1"), - + TALER_TESTING_cmd_tip_pickup ("pickup-tip-1", + merchant_url, + MHD_HTTP_OK, + "authorize-tip-1", + pickup_amounts_1), TALER_TESTING_cmd_merchant_delete_reserve ("delete-reserve-tip-1", merchant_url, "create-reserve-tip-1", |