From 4fff4895adffcdfbaf20bb01c50c362c9a5a4ab7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 Nov 2021 12:45:49 +0100 Subject: prepare for KYC tests --- src/testing/testing_api_cmd_exec_aggregator.c | 32 ++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/testing/testing_api_cmd_exec_aggregator.c') diff --git a/src/testing/testing_api_cmd_exec_aggregator.c b/src/testing/testing_api_cmd_exec_aggregator.c index 20e99c141..1f05576ff 100644 --- a/src/testing/testing_api_cmd_exec_aggregator.c +++ b/src/testing/testing_api_cmd_exec_aggregator.c @@ -43,6 +43,11 @@ struct AggregatorState * Configuration file used by the aggregator. */ const char *config_filename; + + /** + * Run with KYC restrictions on. + */ + bool kyc_on; }; @@ -68,7 +73,9 @@ aggregator_run (void *cls, "taler-exchange-aggregator", "-c", as->config_filename, "-t", /* exit when done */ - "-y", /* skip KYC */ + (as->kyc_on) + ? NULL + : "-y", /* skip KYC */ NULL); 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 */ -- cgit v1.2.3