diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-10 23:09:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-10 23:09:46 +0200 |
commit | 7085cfef70889a11508cdac4cd887b9959f59218 (patch) | |
tree | 610af337a248c92981ab6bf62697ee3e7d5a91e8 /src/include | |
parent | ddf95c491af05732220ac35c6fb1bea48e6f4050 (diff) | |
download | exchange-7085cfef70889a11508cdac4cd887b9959f59218.tar.xz |
test coin_priv re-use with deposit and refresh, update handling of the error code client-side
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 c3278b55f..332b429f9 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -1296,6 +1296,30 @@ TALER_TESTING_cmd_withdraw_amount (const char *label, /** + * 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, + * which will result in an error when spending the coin!). + * + * @param label command label. + * @param reserve_reference command providing us with a reserve to withdraw from + * @param amount how much we withdraw. + * @param coin_ref reference to (withdraw/reveal) command of a coin + * from which we should re-use the private key + * @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_amount_reuse_key ( + const char *label, + const char *reserve_reference, + const char *amount, + const char *coin_ref, + unsigned int expected_response_code); + + +/** * Create withdraw command, letting the caller specify the * amount by a denomination key. * |