summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-17 16:37:16 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-17 16:37:16 +0100
commit148b546435a8fdd83372d4f546d809f5322ae05b (patch)
tree5fe02ad38cbb2f5e7ffe1e3f7671e99ba593a620 /src/include/taler_testing_lib.h
parentaeec67acaa786f9bf42e61df2d8c6d93198e8609 (diff)
downloadexchange-148b546435a8fdd83372d4f546d809f5322ae05b.tar.gz
exchange-148b546435a8fdd83372d4f546d809f5322ae05b.tar.bz2
exchange-148b546435a8fdd83372d4f546d809f5322ae05b.zip
/keys API.
Adding method to override the last_denom value for a key set.
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index eeb0a5c00..edca769df 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1425,6 +1425,34 @@ TALER_TESTING_cmd_check_keys_pull_all_keys
/**
+ * Make a "check keys" command. This type of command
+ * checks whether the number of denomination keys from
+ * @a exchange matches @a num_denom_keys. Additionally,
+ * it lets the user set a last denom issue date to be
+ * used in the request for /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.
+ * @param last_denom_date date to be set in the "last_denom_issue"
+ * URL parameter of /keys.
+ *
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_check_keys_with_last_denom
+ (const char *label,
+ unsigned int generation,
+ unsigned int num_denom_keys,
+ struct GNUNET_TIME_Absolute last_denom_date);
+
+
+/**
* Create a "batch" command. Such command takes a
* end_CMD-terminated array of CMDs and executed them.
* Once it hits the end CMD, it passes the control