diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-04 12:14:25 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-04 12:14:25 +0200 |
commit | 3e757cdeda7938d9d5f88bcc7b91deebaaf154ba (patch) | |
tree | c820658fa30ed2010900e7d5dc41cd1b23131b79 /src/include | |
parent | ce71d83ad6b651b3cac43d131bf62afa1583bf67 (diff) | |
download | exchange-3e757cdeda7938d9d5f88bcc7b91deebaaf154ba.tar.xz |
Inserting "now" argument into "/keys".
Also using this new logic from the cherry-pick test case.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 7c2f6f29a..d0b5f2754 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -936,6 +936,30 @@ TALER_TESTING_cmd_exec_keyup_with_now /** + * Make a "check keys" command. This type of command + * 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_with_now + (const char *label, + unsigned int generation, + unsigned int num_denom_keys, + struct GNUNET_TIME_Absolute now); + + +/** * Make a "auditor sign" CMD. * * @param label command label |