commit 1e556e68289d7303ffd844cad896fa05ed89078f
parent 816d5ca665fb6c1e2e89a9a8dccf70e3186473f0
Author: Florian Dold <florian@dold.me>
Date: Sat, 22 Feb 2025 17:54:15 +0100
harness: repro exchange AML/KYC bug
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-kyc-form-withdrawal.ts b/packages/taler-harness/src/integrationtests/test-kyc-form-withdrawal.ts
@@ -147,6 +147,19 @@ export async function runKycFormWithdrawalTest(t: GlobalTestState) {
t.assertDeepEqual(uploadResp.status, 204);
+ {
+ // Do a GET on kyc-info here as this reproduces a bug in the
+ // exchange.
+ const infoResp = await harnessHttpLib.fetch(
+ new URL(`kyc-info/${txDetails.kycAccessToken}`, exchange.baseUrl).href,
+ );
+
+ await readResponseJsonOrThrow(
+ infoResp,
+ codecForKycProcessClientInformation(),
+ );
+ }
+
const sig = signAmlQuery(decodeCrock(amlKeypair.priv));
const decisionsResp = await harnessHttpLib.fetch(