diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-12-23 13:02:45 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-12-23 13:02:45 +0100 |
commit | 8fd6a4e148a93aab45082cbe159a56be05acd1c4 (patch) | |
tree | a3d97967cb8d68ab05315a808bef2dc16a40b52e /src/include/taler_testing_lib.h | |
parent | a162761ceb2e1678703b984dfb1608d5144e8b10 (diff) |
[wip, #7267] added test to detect age commitment conflict on deposit
A new testcase is added to detect same coin_pub with different age
commitments during deposit.
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r-- | src/include/taler_testing_lib.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index e89779614..1e8ae9d8f 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -1079,18 +1079,6 @@ TALER_TESTING_cmd_withdraw_amount (const char *label, uint8_t age, unsigned int expected_response_code); -/** - * Force a conflict - * 0: no conflict - * 1: multiple coins with same private key, different denominations - * 2: multiple coins with same private key and different age restriction - */ -enum TALER_TESTING_CoinConflictType -{ - Conflict_None = 0, - Conflict_Denom = 1, - Conflict_Age = 2 -}; /** * Create a batch withdraw command, letting the caller specify the type of @@ -1102,7 +1090,7 @@ enum TALER_TESTING_CoinConflictType * * @param label command label. * @param reserve_reference command providing us with a reserve to withdraw from - * @param conflict type of conflict for the coins + * @param conflict if true, enforce a conflict (same priv key, different denom and age commiment) * @param age if > 0, age restriction applies (same for all coins) * @param expected_response_code which HTTP response code * we expect from the exchange. @@ -1114,7 +1102,7 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_batch_withdraw_with_conflict ( const char *label, const char *reserve_reference, - enum TALER_TESTING_CoinConflictType conflict, + bool conflict, uint8_t age, unsigned int expected_response_code, const char *amount, @@ -1145,7 +1133,7 @@ TALER_TESTING_cmd_batch_withdraw_with_conflict ( TALER_TESTING_cmd_batch_withdraw_with_conflict ( \ (label), \ (reserve_reference), \ - Conflict_None, \ + false, \ (age), \ (expected_response_code), \ (amount), \ |