diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-19 02:30:17 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-19 02:30:17 -0400 |
commit | e35244074480faa18f6370e4d5b800ed35d8ef94 (patch) | |
tree | 5a5493a1899ee2ba33077d837966bd288c76f088 /src/testing/test_merchant_api.c | |
parent | 566408fa02acf56bbf6063c6d17d739e491e27f2 (diff) | |
download | merchant-e35244074480faa18f6370e4d5b800ed35d8ef94.tar.gz merchant-e35244074480faa18f6370e4d5b800ed35d8ef94.tar.bz2 merchant-e35244074480faa18f6370e4d5b800ed35d8ef94.zip |
stricter tests for query reserve(s) methods
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", |