From b2b1f88ab617ee9a01ac263b8b1c679f24277076 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 May 2021 20:10:46 +0200 Subject: add HTTP status argument to testin gCMD admin_add_incoming_with_ref for merchant tests --- src/testing/testing_api_cmd_bank_admin_add_incoming.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/testing/testing_api_cmd_bank_admin_add_incoming.c') diff --git a/src/testing/testing_api_cmd_bank_admin_add_incoming.c b/src/testing/testing_api_cmd_bank_admin_add_incoming.c index aaa447fec..28f907fda 100644 --- a/src/testing/testing_api_cmd_bank_admin_add_incoming.c +++ b/src/testing/testing_api_cmd_bank_admin_add_incoming.c @@ -557,12 +557,13 @@ TALER_TESTING_cmd_admin_add_incoming (const char *label, struct TALER_TESTING_Command -TALER_TESTING_cmd_admin_add_incoming_with_ref - (const char *label, +TALER_TESTING_cmd_admin_add_incoming_with_ref ( + const char *label, const char *amount, const struct TALER_BANK_AuthenticationData *auth, const char *payto_debit_account, - const char *ref) + const char *ref, + unsigned int http_status) { struct AdminAddIncomingState *fts; @@ -570,7 +571,7 @@ TALER_TESTING_cmd_admin_add_incoming_with_ref auth, payto_debit_account); fts->reserve_reference = ref; - fts->expected_http_status = MHD_HTTP_CONFLICT; + fts->expected_http_status = http_status; return make_command (label, fts); } -- cgit v1.2.3