summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_auditor_lib.h
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-28 16:51:13 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-28 16:51:13 +0100
commit3dd987035bcdbe4656ee77c62795f79dd591fc96 (patch)
tree85f3b1ee1bf6ad39c1e7ef22cb01f22ca163d396 /src/include/taler_testing_auditor_lib.h
parent0b0b22c8dba00e587d9a54e3dc51b27d3102a9f3 (diff)
downloadexchange-3dd987035bcdbe4656ee77c62795f79dd591fc96.tar.gz
exchange-3dd987035bcdbe4656ee77c62795f79dd591fc96.tar.bz2
exchange-3dd987035bcdbe4656ee77c62795f79dd591fc96.zip
Extend auditor testing-lib.
Add method to check whether a exchange (URL) belongs to the list of audited exchanges.
Diffstat (limited to 'src/include/taler_testing_auditor_lib.h')
-rw-r--r--src/include/taler_testing_auditor_lib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/taler_testing_auditor_lib.h b/src/include/taler_testing_auditor_lib.h
index 65f50b776..090a1210c 100644
--- a/src/include/taler_testing_auditor_lib.h
+++ b/src/include/taler_testing_auditor_lib.h
@@ -123,6 +123,23 @@ TALER_TESTING_cmd_exchanges
/**
+ * Create a "list exchanges" command and check whether
+ * a particular exchange belongs to the returned bundle.
+ *
+ * @param label command label.
+ * @param auditor auditor connection.
+ * @param expected_response_code expected HTTP response code.
+ * @param exchange_url URL of the exchange supposed to
+ * be included in the response.
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_exchanges_with_url
+ (const char *label,
+ unsigned int expected_response_code,
+ const char *exchange_url);
+
+/**
* Modify an exchanges command to enable retries when we get
* transient errors from the auditor.
*