summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-11 11:29:02 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-11 11:29:02 +0200
commit96c2fb8e107451c6e26e37c55f0dcbf91cfefd28 (patch)
tree7ff790be762592f2d202de7bb23968aa276a439c /src/include
parent1ee55ea838a2b98b54a28a5f6b426496e2e36b89 (diff)
downloadexchange-96c2fb8e107451c6e26e37c55f0dcbf91cfefd28.tar.gz
exchange-96c2fb8e107451c6e26e37c55f0dcbf91cfefd28.tar.bz2
exchange-96c2fb8e107451c6e26e37c55f0dcbf91cfefd28.zip
implement retries for a few more commands
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 8e55c058c..8db59ee45 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -836,6 +836,17 @@ TALER_TESTING_cmd_deposit
/**
+ * Modify a deposit command to enable retries when we get transient
+ * errors from the exchange.
+ *
+ * @param cmd a deposit command
+ * @return the command with retries enabled
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_deposit_with_retry (struct TALER_TESTING_Command cmd);
+
+
+/**
* Create a "refresh melt" command.
*
* @param label command label.
@@ -855,6 +866,7 @@ TALER_TESTING_cmd_refresh_melt
const char *coin_reference,
unsigned int expected_response_code);
+
/**
* Create a "refresh melt" CMD that does TWO /refresh/melt
* requests. This was needed to test the replay of a valid melt
@@ -879,6 +891,16 @@ TALER_TESTING_cmd_refresh_melt_double
/**
+ * Modify a "refresh melt" command to enable retries.
+ *
+ * @param cmd command
+ * @return modified command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_refresh_melt_with_retry (struct TALER_TESTING_Command cmd);
+
+
+/**
* Create a "refresh reveal" command.
*
* @param label command label.
@@ -897,6 +919,16 @@ TALER_TESTING_cmd_refresh_reveal
/**
+ * Modify a "refresh reveal" command to enable retries.
+ *
+ * @param cmd command
+ * @return modified command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_refresh_reveal_with_retry (struct TALER_TESTING_Command cmd);
+
+
+/**
* Create a "refresh link" command.
*
* @param label command label.
@@ -915,6 +947,16 @@ TALER_TESTING_cmd_refresh_link
/**
+ * Modify a "refresh link" command to enable retries.
+ *
+ * @param cmd command
+ * @return modified command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_refresh_link_with_retry (struct TALER_TESTING_Command cmd);
+
+
+/**
* Create a "track transaction" command.
*
* @param label the command label.