From 1ce9312d0293444e55512bba69265f4671d387e9 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 26 Jul 2023 04:04:02 +0200 Subject: [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. --- src/testing/test_exchange_api_age_restriction.c | 6 +++++- src/testing/testing_api_cmd_age_withdraw.c | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/testing') 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); } -- cgit v1.2.3