summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-27 19:14:55 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-27 19:14:55 +0530
commit6620a5b6919856bf6b3fc1154a380c5c79be73d9 (patch)
tree0d52c4ca90e06cfd4f2089bb17b79bdc7ae0b216 /src/include/taler_testing_lib.h
parentd923f29144a1fb0bdf647e597659f6699254e40a (diff)
downloadexchange-6620a5b6919856bf6b3fc1154a380c5c79be73d9.tar.gz
exchange-6620a5b6919856bf6b3fc1154a380c5c79be73d9.tar.bz2
exchange-6620a5b6919856bf6b3fc1154a380c5c79be73d9.zip
add test case (currently fails) for deposit idempotency
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 6f422969a..c3a3cea11 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1330,6 +1330,20 @@ TALER_TESTING_cmd_deposit (const char *label,
struct TALER_TESTING_Command
TALER_TESTING_cmd_deposit_with_retry (struct TALER_TESTING_Command cmd);
+/**
+ * Create a "deposit" command that repeats an existing
+ * deposit command.
+ *
+ * @param label command label.
+ * @param expected_response_code expected HTTP response code.
+ *
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_deposit_replay (const char *label,
+ const char *deposit_reference,
+ unsigned int expected_response_code);
+
/**
* Create a "refresh melt" command.