summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_testing_lib.h
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-19 02:30:17 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-19 02:30:17 -0400
commite35244074480faa18f6370e4d5b800ed35d8ef94 (patch)
tree5a5493a1899ee2ba33077d837966bd288c76f088 /src/include/taler_merchant_testing_lib.h
parent566408fa02acf56bbf6063c6d17d739e491e27f2 (diff)
downloadmerchant-e35244074480faa18f6370e4d5b800ed35d8ef94.tar.gz
merchant-e35244074480faa18f6370e4d5b800ed35d8ef94.tar.bz2
merchant-e35244074480faa18f6370e4d5b800ed35d8ef94.zip
stricter tests for query reserve(s) methods
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-rw-r--r--src/include/taler_merchant_testing_lib.h36
1 files changed, 36 insertions, 0 deletions
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
@@ -612,6 +612,25 @@ TALER_TESTING_cmd_merchant_get_reserve (const char *label,
/**
+ * 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
*
* @param label command label.
@@ -625,6 +644,23 @@ TALER_TESTING_cmd_merchant_get_reserves (const char *label,
/**
+ * 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.
*
* @param label command label.