summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorLucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch>2022-01-06 15:55:50 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:34:19 +0100
commit82405b0ce5593b30a1b0ee1a1995f2214a71751c (patch)
treea71d2c78a344cc9e9b68e88cfdb8615f698d3383 /src/include/taler_testing_lib.h
parent36f551ff33ac0974788aff28d4b19390ca484f4b (diff)
downloadexchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.tar.gz
exchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.tar.bz2
exchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.zip
implement CS key handling and csr endpoint
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 20e3145f0..d5746c5c8 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -66,11 +66,13 @@ TALER_TESTING_make_wire_details (const char *payto);
*
* @param keys array of keys to search
* @param amount coin value to look for
+ * @param cipher denomination cipher
* @return NULL if no matching key was found
*/
const struct TALER_EXCHANGE_DenomPublicKey *
TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys,
- const struct TALER_Amount *amount);
+ const struct TALER_Amount *amount,
+ const enum TALER_DenominationCipher cipher);
/**
@@ -1289,6 +1291,24 @@ TALER_TESTING_cmd_withdraw_amount (const char *label,
/**
+ * Create a withdraw command using a CS denomination, letting the caller specify
+ * the desired amount as string.
+ *
+ * @param label command label.
+ * @param reserve_reference command providing us with a reserve to withdraw from
+ * @param amount how much we withdraw.
+ * @param expected_response_code which HTTP response code
+ * we expect from the exchange.
+ * @return the withdraw command to be executed by the interpreter.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_withdraw_cs_amount (const char *label,
+ const char *reserve_reference,
+ const char *amount,
+ unsigned int expected_response_code);
+
+
+/**
* Create a withdraw command, letting the caller specify
* the desired amount as string and also re-using an existing
* coin private key in the process (violating the specification,