diff options
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 8663b2e3..8920a2a4 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -49,12 +49,17 @@ */ #define EXCHANGE_URL "http://localhost:8081/" +static const char *tip_refs[] = {"authorize-tip-1", "authorize-tip-2", NULL}; + static const char *pickup_amounts_1[] = {"EUR:5", NULL}; static const char *pickup_amounts_2[] = {"EUR:0.01", NULL}; static const char *pickup_refs[] = {"pickup-tip-1", "pickup-tip-4", NULL}; +static const char *reserve_refs[] = {"create-reserve-tip-1", + "create-reserve-tip-2", NULL}; + /** * Payto URI of the customer (payer). */ @@ -683,6 +688,11 @@ run (void *cls, merchant_url, MHD_HTTP_OK, "create-reserve-tip-1"), + TALER_TESTING_cmd_merchant_get_reserve_with_tips ("get-reserve-2", + merchant_url, + MHD_HTTP_OK, + "create-reserve-tip-1", + tip_refs), TALER_TESTING_cmd_tip_pickup ("pickup-tip-1", merchant_url, MHD_HTTP_OK, @@ -763,6 +773,11 @@ run (void *cls, pickup_amounts_1, TALER_EC_TIP_PICKUP_TIP_ID_UNKNOWN), + TALER_TESTING_cmd_merchant_get_reserves_with_reserves ("get-reserves-2", + merchant_url, + reserve_refs, + MHD_HTTP_OK), + TALER_TESTING_cmd_merchant_delete_reserve ("delete-reserve-tip-1", merchant_url, "create-reserve-tip-1", |