diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-16 02:18:22 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-16 02:18:22 -0400 |
commit | add99bf305d986cf14805cc99767cf665a1ccacb (patch) | |
tree | 4b14c62cce38bf0f8997c49946aa039cf2fd94d4 /src/testing/test_merchant_api.c | |
parent | 46fdfc6cf7001a1e158690ca30468b68ab887a02 (diff) | |
download | merchant-add99bf305d986cf14805cc99767cf665a1ccacb.tar.gz merchant-add99bf305d986cf14805cc99767cf665a1ccacb.tar.bz2 merchant-add99bf305d986cf14805cc99767cf665a1ccacb.zip |
more fixes/tests for claim order and get tips
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 90d88bf5..2b2eedd4 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -209,6 +209,11 @@ run (void *cls, TALER_TESTING_cmd_poll_orders_start ("poll-orders-1-start", merchant_url, GNUNET_TIME_UNIT_MINUTES), + TALER_TESTING_cmd_merchant_claim_order ("claim-order-nx", + merchant_url, + MHD_HTTP_NOT_FOUND, + NULL, + "1"), TALER_TESTING_cmd_merchant_post_orders ("create-proposal-1", merchant_url, MHD_HTTP_OK, @@ -216,6 +221,16 @@ run (void *cls, GNUNET_TIME_UNIT_ZERO_ABS, GNUNET_TIME_UNIT_FOREVER_ABS, "EUR:5.0"), + TALER_TESTING_cmd_merchant_claim_order ("reclaim-1", + merchant_url, + MHD_HTTP_OK, + "create-proposal-1", + NULL), + TALER_TESTING_cmd_merchant_claim_order ("reclaim-1-bad-nonce", + merchant_url, + MHD_HTTP_CONFLICT, + NULL, + "1"), TALER_TESTING_cmd_merchant_post_orders ("create-proposal-1-pre-exists", merchant_url, MHD_HTTP_BAD_REQUEST, @@ -656,6 +671,21 @@ run (void *cls, "authorize-tip-2", "authorize-tip-1", NULL), + TALER_TESTING_cmd_get_tips2 ("get-tips-1-asc", + merchant_url, + 0, + 20, + MHD_HTTP_OK, + "authorize-tip-1", + "authorize-tip-2", + NULL), + TALER_TESTING_cmd_get_tips2 ("get-tips-1-asc-offset", + merchant_url, + 1, + 20, + MHD_HTTP_OK, + "authorize-tip-2", + NULL), TALER_TESTING_cmd_merchant_get_reserves ("get-reserves-1", merchant_url, MHD_HTTP_OK, |