From 6620a5b6919856bf6b3fc1154a380c5c79be73d9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 27 Mar 2020 19:14:55 +0530 Subject: add test case (currently fails) for deposit idempotency --- src/include/taler_testing_lib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include') 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. -- cgit v1.2.3