diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-13 15:58:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-13 15:58:49 +0200 |
commit | 4fc77b9dbfee88dff2d366d7dbb2d91797f8b9a0 (patch) | |
tree | bc05c65ffc162d4f2a6ff24b898dc3db5d5b14cd /src/testing/testing_api_cmd_reserve_purse.c | |
parent | d7ca9d3ecfaee72d4ce9907841db811716acecc7 (diff) | |
download | exchange-4fc77b9dbfee88dff2d366d7dbb2d91797f8b9a0.tar.xz |
-work on reserve control test
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_purse.c')
-rw-r--r-- | src/testing/testing_api_cmd_reserve_purse.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_reserve_purse.c b/src/testing/testing_api_cmd_reserve_purse.c index cdffa97fe..f01741b07 100644 --- a/src/testing/testing_api_cmd_reserve_purse.c +++ b/src/testing/testing_api_cmd_reserve_purse.c @@ -129,6 +129,10 @@ struct ReservePurseState */ unsigned int expected_response_code; + /** + * True to pay the purse fee. + */ + bool pay_purse_fee; }; @@ -239,7 +243,7 @@ purse_run (void *cls, &ds->contract_priv, ds->contract_terms, true /* upload contract */, - true /* do pay purse fee -- FIXME #7274: make this a choice to test this case; then update testing_api_cmd_purse_deposit flags logic to match! */, + ds->pay_purse_fee, ds->merge_timestamp, &purse_cb, ds); @@ -327,6 +331,7 @@ TALER_TESTING_cmd_purse_create_with_reserve ( unsigned int expected_http_status, const char *contract_terms, bool upload_contract, + bool pay_purse_fee, struct GNUNET_TIME_Relative expiration, const char *reserve_ref) { @@ -339,6 +344,7 @@ TALER_TESTING_cmd_purse_create_with_reserve ( 0 /* flags */, &err); GNUNET_assert (NULL != ds->contract_terms); + ds->pay_purse_fee = pay_purse_fee; ds->reserve_ref = reserve_ref; ds->expected_response_code = expected_http_status; |