summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index 83201005..e1908fdd 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -217,6 +217,35 @@ TALER_TESTING_cmd_merchant_get_instance (const char *label,
/**
+ * Define a "GET instance" CMD that compares accounts returned.
+ *
+ * @param label command label.
+ * @param merchant_url base URL of the merchant serving the
+ * GET /instances/$ID request.
+ * @param instance_id the ID of the instance to query
+ * @param http_status expected HTTP response code.
+ * @param instance_reference reference to a "POST /instances" or "PATCH /instances/$ID" CMD
+ * that will provide what we expect the backend to return to us
+ * @param active_accounts the accounts the merchant is actively using.
+ * @param active_accounts_length length of @e active_accounts.
+ * @param inactive_accounts the accounts the merchant is no longer using.
+ * @param inactive_accounts_length length of @e inactive_accounts.
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_merchant_get_instance2 (const char *label,
+ const char *merchant_url,
+ const char *instance_id,
+ unsigned int http_status,
+ const char *instance_reference,
+ const char *active_accounts[],
+ unsigned int active_accounts_length,
+ const char *inactive_accounts[],
+ unsigned int
+ inactive_accounts_length);
+
+
+/**
* Define a "PURGE instance" CMD.
*
* @param label command label.