diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-07-26 04:04:02 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-07-26 04:04:02 +0200 |
commit | 1ce9312d0293444e55512bba69265f4671d387e9 (patch) | |
tree | 15b58dff705c54fa938cfc34e0a7a6173aee951f /src/testing | |
parent | ac462b275300d28f939a9be83c5bd220fbb0d7cd (diff) |
[age-withdraw] WIP - database transaction during reveal works now
The test for age-restriction still fail, but the database transactions,
including passing arrays in/out the PQ-helpers works.
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_exchange_api_age_restriction.c | 6 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_age_withdraw.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/testing/test_exchange_api_age_restriction.c b/src/testing/test_exchange_api_age_restriction.c index 56e46b22..cdfb58e2 100644 --- a/src/testing/test_exchange_api_age_restriction.c +++ b/src/testing/test_exchange_api_age_restriction.c @@ -290,7 +290,7 @@ run (void *cls, MHD_HTTP_CONFLICT, "EUR:10", NULL), - TALER_TESTING_cmd_age_withdraw ("age-withdraw-coin-1", + TALER_TESTING_cmd_age_withdraw ("age-withdraw-coins-1", "create-reserve-kyc-1", 8, MHD_HTTP_OK, @@ -298,6 +298,10 @@ run (void *cls, "EUR:5", "EUR:5", NULL), + /* FIXME[oec]: failing */ + TALER_TESTING_cmd_age_withdraw_reveal ("age-withdraw-coins-reveal-1", + "age-withdraw-coins-1", + MHD_HTTP_OK), TALER_TESTING_cmd_end (), }; diff --git a/src/testing/testing_api_cmd_age_withdraw.c b/src/testing/testing_api_cmd_age_withdraw.c index 98a5e1d8..8849cd31 100644 --- a/src/testing/testing_api_cmd_age_withdraw.c +++ b/src/testing/testing_api_cmd_age_withdraw.c @@ -629,8 +629,8 @@ age_withdraw_reveal_run ( * Get the command and state for the previous call to "age witdraw" */ age_withdraw_cmd = - TALER_TESTING_interpreter_get_command (is, - awrs->age_withdraw_reference); + TALER_TESTING_interpreter_lookup_command (is, + awrs->age_withdraw_reference); if (NULL == age_withdraw_cmd) { GNUNET_break (0); @@ -649,6 +649,7 @@ age_withdraw_reveal_run ( aws->coin_inputs, aws->noreveal_index, &aws->h_commitment, + &aws->reserve_pub, age_withdraw_reveal_cb, awrs); } |