From d189fccd790a36046e1191d7170f45feb3dfb122 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sun, 23 Jul 2023 12:48:07 +0200 Subject: Added reserve_pub to kyc legitimization_processes Where applicable, the reserve_pub will be passed on to the kcy-legitimization process and persisted along with h_payto. This allows us to set a birthday on the reserve itself, once a related kyc-process has provided one. --- src/testing/test_exchange_api_age_restriction.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'src/testing/test_exchange_api_age_restriction.c') diff --git a/src/testing/test_exchange_api_age_restriction.c b/src/testing/test_exchange_api_age_restriction.c index 2e62b7c7..0aaa7bbf 100644 --- a/src/testing/test_exchange_api_age_restriction.c +++ b/src/testing/test_exchange_api_age_restriction.c @@ -257,18 +257,18 @@ run (void *cls, * Test with age-withdraw, after kyc process has set a birthdate */ struct TALER_TESTING_Command age_withdraw[] = { - CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1", + CMD_TRANSFER_TO_EXCHANGE ("create-reserve-kyc-1", "EUR:20.02"), TALER_TESTING_cmd_check_bank_admin_transfer ( "check-create-reserve-1", "EUR:20.02", cred.user42_payto, cred.exchange_payto, - "create-reserve-1"), + "create-reserve-kyc-1"), CMD_EXEC_WIREWATCH ("wirewatch-age-withdraw-1"), TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-1-lacking-kyc", - "create-reserve-1", - "EUR:5", + "create-reserve-kyc-1", + "EUR:10", 0, /* age restriction off */ MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS), TALER_TESTING_cmd_check_kyc_get ("check-kyc-withdraw", @@ -280,16 +280,10 @@ run (void *cls, "pass", MHD_HTTP_SEE_OTHER), TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-1-with-kyc", - "create-reserve-1", - "EUR:5", + "create-reserve-kyc-1", + "EUR:10", 0, /* age restriction off */ - MHD_HTTP_OK), - /* Attestations above are bound to the originating *bank* account, - not to the reserve (!). Hence, they are NOT found here! */ - TALER_TESTING_cmd_reserve_get_attestable ("reserve-get-attestable", - "create-reserve-1", - MHD_HTTP_NOT_FOUND, - NULL), + MHD_HTTP_CONFLICT), TALER_TESTING_cmd_end (), }; -- cgit v1.2.3