add HTTP status argument to testin gCMD admin_add_incoming_with_ref for merchant tests
This commit is contained in:
parent
dd323a5d9c
commit
b2b1f88ab6
@ -1147,6 +1147,7 @@ TALER_TESTING_cmd_admin_add_incoming (
|
|||||||
* @param auth authentication data
|
* @param auth authentication data
|
||||||
* @param ref reference to a command that can offer a reserve
|
* @param ref reference to a command that can offer a reserve
|
||||||
* private key or public key.
|
* private key or public key.
|
||||||
|
* @param http_status expected HTTP status
|
||||||
* @return the command.
|
* @return the command.
|
||||||
*/
|
*/
|
||||||
struct TALER_TESTING_Command
|
struct TALER_TESTING_Command
|
||||||
@ -1155,7 +1156,8 @@ TALER_TESTING_cmd_admin_add_incoming_with_ref (
|
|||||||
const char *amount,
|
const char *amount,
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
const char *payto_debit_account,
|
const char *payto_debit_account,
|
||||||
const char *ref);
|
const char *ref,
|
||||||
|
unsigned int http_status);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -91,7 +91,8 @@ run (void *cls,
|
|||||||
"KUDOS:2.01",
|
"KUDOS:2.01",
|
||||||
&bc.exchange_auth,
|
&bc.exchange_auth,
|
||||||
bc.user42_payto,
|
bc.user42_payto,
|
||||||
"credit-1"),
|
"credit-1",
|
||||||
|
MHD_HTTP_CONFLICT),
|
||||||
TALER_TESTING_cmd_sleep ("Waiting 4s for 'credit-1' to settle",
|
TALER_TESTING_cmd_sleep ("Waiting 4s for 'credit-1' to settle",
|
||||||
4),
|
4),
|
||||||
TALER_TESTING_cmd_bank_credits ("history-1c",
|
TALER_TESTING_cmd_bank_credits ("history-1c",
|
||||||
|
@ -557,12 +557,13 @@ TALER_TESTING_cmd_admin_add_incoming (const char *label,
|
|||||||
|
|
||||||
|
|
||||||
struct TALER_TESTING_Command
|
struct TALER_TESTING_Command
|
||||||
TALER_TESTING_cmd_admin_add_incoming_with_ref
|
TALER_TESTING_cmd_admin_add_incoming_with_ref (
|
||||||
(const char *label,
|
const char *label,
|
||||||
const char *amount,
|
const char *amount,
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
const char *payto_debit_account,
|
const char *payto_debit_account,
|
||||||
const char *ref)
|
const char *ref,
|
||||||
|
unsigned int http_status)
|
||||||
{
|
{
|
||||||
struct AdminAddIncomingState *fts;
|
struct AdminAddIncomingState *fts;
|
||||||
|
|
||||||
@ -570,7 +571,7 @@ TALER_TESTING_cmd_admin_add_incoming_with_ref
|
|||||||
auth,
|
auth,
|
||||||
payto_debit_account);
|
payto_debit_account);
|
||||||
fts->reserve_reference = ref;
|
fts->reserve_reference = ref;
|
||||||
fts->expected_http_status = MHD_HTTP_CONFLICT;
|
fts->expected_http_status = http_status;
|
||||||
return make_command (label,
|
return make_command (label,
|
||||||
fts);
|
fts);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user