From e35244074480faa18f6370e4d5b800ed35d8ef94 Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Fri, 19 Jun 2020 02:30:17 -0400 Subject: stricter tests for query reserve(s) methods --- src/include/taler_merchant_testing_lib.h | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/include/taler_merchant_testing_lib.h') diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 85cd73ef..02df16c7 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -611,6 +611,25 @@ TALER_TESTING_cmd_merchant_get_reserve (const char *label, const char *reserve_reference); +/** + * Define a "GET reserve" CMD. + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the request. + * @param http_status expected HTTP response code. + * @param reserve_reference reference to a "POST /reserves" that provides the + * information we are expecting. + * @param tip_refs a NULL-terminated list of references to tips + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_get_reserve_with_tips (const char *label, + const char *merchant_url, + unsigned int http_status, + const char *reserve_reference, + const char *tip_refs[]); + + /** * Define a "GET /reserves" CMD * @@ -624,6 +643,23 @@ TALER_TESTING_cmd_merchant_get_reserves (const char *label, unsigned int http_status); +/** + * Define a "GET /reserves" CMD + * + * @param label command label. + * @param merchant_url url to the merchant. + * @param reserve_refs a NULL-terminated list of references to + * commands that created reserves. + * @param http_status expected HTTP response code. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_get_reserves_with_reserves (const char *label, + const char *merchant_url, + const char *reserve_refs + [], + unsigned int + http_status); + /** * Define a "DELETE reserve" CMD. * -- cgit v1.2.3