prepare for KYC tests
This commit is contained in:
parent
cd8d4bede1
commit
4fff4895ad
@ -1194,6 +1194,7 @@ struct TALER_TESTING_Command
|
|||||||
TALER_TESTING_cmd_exec_wirewatch (const char *label,
|
TALER_TESTING_cmd_exec_wirewatch (const char *label,
|
||||||
const char *config_filename);
|
const char *config_filename);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a "aggregator" CMD.
|
* Make a "aggregator" CMD.
|
||||||
*
|
*
|
||||||
@ -1207,6 +1208,19 @@ TALER_TESTING_cmd_exec_aggregator (const char *label,
|
|||||||
const char *config_filename);
|
const char *config_filename);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make a "aggregator" CMD and do not disable KYC checks.
|
||||||
|
*
|
||||||
|
* @param label command label.
|
||||||
|
* @param config_filename configuration file for the
|
||||||
|
* aggregator to use.
|
||||||
|
* @return the command.
|
||||||
|
*/
|
||||||
|
struct TALER_TESTING_Command
|
||||||
|
TALER_TESTING_cmd_exec_aggregator_with_kyc (const char *label,
|
||||||
|
const char *config_filename);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a "closer" CMD. Note that it is right now not supported to run the
|
* Make a "closer" CMD. Note that it is right now not supported to run the
|
||||||
* closer to close multiple reserves in combination with a subsequent reserve
|
* closer to close multiple reserves in combination with a subsequent reserve
|
||||||
|
@ -43,6 +43,11 @@ struct AggregatorState
|
|||||||
* Configuration file used by the aggregator.
|
* Configuration file used by the aggregator.
|
||||||
*/
|
*/
|
||||||
const char *config_filename;
|
const char *config_filename;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run with KYC restrictions on.
|
||||||
|
*/
|
||||||
|
bool kyc_on;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +73,9 @@ aggregator_run (void *cls,
|
|||||||
"taler-exchange-aggregator",
|
"taler-exchange-aggregator",
|
||||||
"-c", as->config_filename,
|
"-c", as->config_filename,
|
||||||
"-t", /* exit when done */
|
"-t", /* exit when done */
|
||||||
"-y", /* skip KYC */
|
(as->kyc_on)
|
||||||
|
? NULL
|
||||||
|
: "-y", /* skip KYC */
|
||||||
NULL);
|
NULL);
|
||||||
if (NULL == as->aggregator_proc)
|
if (NULL == as->aggregator_proc)
|
||||||
{
|
{
|
||||||
@ -157,4 +164,27 @@ TALER_TESTING_cmd_exec_aggregator (const char *label,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
struct TALER_TESTING_Command
|
||||||
|
TALER_TESTING_cmd_exec_aggregator_with_kyc (const char *label,
|
||||||
|
const char *config_filename)
|
||||||
|
{
|
||||||
|
struct AggregatorState *as;
|
||||||
|
|
||||||
|
as = GNUNET_new (struct AggregatorState);
|
||||||
|
as->config_filename = config_filename;
|
||||||
|
as->kyc_on = true;
|
||||||
|
{
|
||||||
|
struct TALER_TESTING_Command cmd = {
|
||||||
|
.cls = as,
|
||||||
|
.label = label,
|
||||||
|
.run = &aggregator_run,
|
||||||
|
.cleanup = &aggregator_cleanup,
|
||||||
|
.traits = &aggregator_traits
|
||||||
|
};
|
||||||
|
|
||||||
|
return cmd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* end of testing_api_cmd_exec_aggregator.c */
|
/* end of testing_api_cmd_exec_aggregator.c */
|
||||||
|
Loading…
Reference in New Issue
Block a user