summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-17 18:14:11 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-17 18:14:11 +0100
commit5f365133cd31a6c3ea13d40ba34fb11a7a530c4e (patch)
tree0759cb23adc47996909baf0e04f6879f205f4f9a /src/include
parente42f014cffae126a52c92fbf8151e6f5cecc9de0 (diff)
downloadexchange-5f365133cd31a6c3ea13d40ba34fb11a7a530c4e.tar.gz
exchange-5f365133cd31a6c3ea13d40ba34fb11a7a530c4e.tar.bz2
exchange-5f365133cd31a6c3ea13d40ba34fb11a7a530c4e.zip
add list exchanges command
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_auditor_lib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/taler_testing_auditor_lib.h b/src/include/taler_testing_auditor_lib.h
index 2d7e8e14b..fc8af678f 100644
--- a/src/include/taler_testing_auditor_lib.h
+++ b/src/include/taler_testing_auditor_lib.h
@@ -94,6 +94,32 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_deposit_confirmation_with_retry (struct TALER_TESTING_Command cmd);
+/**
+ * Create a "list exchanges" command.
+ *
+ * @param label command label.
+ * @param auditor auditor connection.
+ * @param expected_response_code expected HTTP response code.
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_exchanges
+ (const char *label,
+ struct TALER_AUDITOR_Handle *auditor,
+ unsigned int expected_response_code);
+
+
+/**
+ * Modify an exchanges command to enable retries when we get
+ * transient errors from the auditor.
+ *
+ * @param cmd a deposit confirmation command
+ * @return the command with retries enabled
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_exchanges_with_retry (struct TALER_TESTING_Command cmd);
+
+
/* ********************* Helper functions ********************* */