summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-26 17:36:13 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-26 17:36:13 +0200
commitd20804124025c259af1bc3e00ceed653c734b468 (patch)
tree5641b89f8367b15fa112d897dc26f55bdc448a21 /src/testing
parent0f17931b108deacb75eafa36234de088d38be22e (diff)
downloadexchange-d20804124025c259af1bc3e00ceed653c734b468.tar.gz
exchange-d20804124025c259af1bc3e00ceed653c734b468.tar.bz2
exchange-d20804124025c259af1bc3e00ceed653c734b468.zip
[age-withdraw] reveal works, tested.
Tests for age-withdraw and the reveal now work for both, RSA and CS.
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_exchange_api_age_restriction.c5
-rw-r--r--src/testing/testing_api_cmd_age_withdraw.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/testing/test_exchange_api_age_restriction.c b/src/testing/test_exchange_api_age_restriction.c
index cdfb58e2f..940845e1c 100644
--- a/src/testing/test_exchange_api_age_restriction.c
+++ b/src/testing/test_exchange_api_age_restriction.c
@@ -260,7 +260,7 @@ run (void *cls,
CMD_TRANSFER_TO_EXCHANGE ("create-reserve-kyc-1",
"EUR:30.02"),
TALER_TESTING_cmd_check_bank_admin_transfer (
- "check-create-reserve-1",
+ "check-create-reserve-kyc-1",
"EUR:30.02",
cred.user42_payto,
cred.exchange_payto,
@@ -295,10 +295,9 @@ run (void *cls,
8,
MHD_HTTP_OK,
"EUR:10",
- "EUR:5",
+ "EUR:10",
"EUR:5",
NULL),
- /* FIXME[oec]: failing */
TALER_TESTING_cmd_age_withdraw_reveal ("age-withdraw-coins-reveal-1",
"age-withdraw-coins-1",
MHD_HTTP_OK),
diff --git a/src/testing/testing_api_cmd_age_withdraw.c b/src/testing/testing_api_cmd_age_withdraw.c
index 8849cd313..b295712d1 100644
--- a/src/testing/testing_api_cmd_age_withdraw.c
+++ b/src/testing/testing_api_cmd_age_withdraw.c
@@ -578,9 +578,9 @@ age_withdraw_reveal_cb (
case MHD_HTTP_OK:
{
const struct AgeWithdrawState *aws = awrs->aws;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Got age-withdraw reveal success!\n");
GNUNET_assert (awrs->num_coins == response->details.ok.num_sigs);
+ awrs->denom_sigs = GNUNET_new_array (awrs->num_coins,
+ struct TALER_DenominationSignature);
for (size_t n = 0; n < awrs->num_coins; n++)
TALER_denom_sig_unblind (&awrs->denom_sigs[n],
&response->details.ok.blinded_denom_sigs[n],
@@ -588,6 +588,8 @@ age_withdraw_reveal_cb (
&aws->coin_outputs[n].details.h_coin_pub,
&aws->coin_outputs[n].details.alg_values,
&aws->coin_inputs[n].denom_pub->key);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "age-withdraw reveal success!\n");
}
break;
case MHD_HTTP_NOT_FOUND: