summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-03 08:38:40 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-03 08:38:48 -0500
commit17ce196e1259bdc2a0899e67e15cde204a2164ee (patch)
treece237dc15e2d20e6007decca6548a7e47a3b61e3 /src/include
parentd4d8114af921f713c4ba6ccde768f901f176b6b4 (diff)
downloadmerchant-17ce196e1259bdc2a0899e67e15cde204a2164ee.tar.gz
merchant-17ce196e1259bdc2a0899e67e15cde204a2164ee.tar.bz2
merchant-17ce196e1259bdc2a0899e67e15cde204a2164ee.zip
new test logic
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index c805afba..9ac15909 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -1767,6 +1767,46 @@ TALER_TESTING_cmd_merchant_delete_webhook (const char *label,
const char *webhook_id,
unsigned int http_status);
+/**
+ * to use the 'taler-merchant-webhook' program.
+ *
+ * @param label command label.
+ * @param configuration file used by the webhook.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_webhook (const char *label,
+ const char *config_filename);
+
+
+/**
+ * This function is used to start the web server.
+ *
+ * @param label command label
+ * @param port is the port of the web server
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_testserver (const char *label,
+ uint16_t port);
+
+
+/**
+ * This function is used to check the web server
+ *
+ * @param label command label
+ * @param url of the webhook
+ * @param http_method of the webhook
+ * @param header of the webhook
+ * @param body of the webhook
+ * @param port is the port of the web server
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_checkserver (const char *label,
+ char *url,
+ char *http_method,
+ char *header,
+ char *body,
+ uint16_t port);
+
/* ****** Specific traits supported by this component ******* */