From 448a57d81e2a72d8117603ee60f60e5586c7d05d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 16 Jan 2019 19:44:44 +0100 Subject: Extend tests. Give a way to force redownload (= no cherry picking) all /keys. --- src/include/taler_testing_lib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index ed09ad47..eeb0a5c0 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -1401,6 +1401,29 @@ TALER_TESTING_cmd_check_keys unsigned int num_denom_keys); +/** + * Make a "check keys" command that forcedly does NOT cherry pick; + * just redownload the whole /keys. Then checks whether the number + * of denomination keys from @a exchange matches @a num_denom_keys. + * + * @param label command label + * @param generation when this command is run, exactly @a + * generation /keys downloads took place. If the number + * of downloads is less than @a generation, the logic will + * first make sure that @a generation downloads are done, + * and _then_ execute the rest of the command. + * @param num_denom_keys expected number of denomination keys. + * @param exchange connection handle to the exchange to test. + * + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_check_keys_pull_all_keys + (const char *label, + unsigned int generation, + unsigned int num_denom_keys); + + /** * Create a "batch" command. Such command takes a * end_CMD-terminated array of CMDs and executed them. -- cgit v1.2.3