commit 8bca68ef723f4cc02f017c23f8cea0bb99a71935
parent 6de451b45f9ce63cb078c2dbd4c6affd9c9fe3a6
Author: Florian Dold <florian@dold.me>
Date: Thu, 12 Jun 2025 11:33:03 +0200
harness: repro test for https://bugs.taler.net/n/10093
Diffstat:
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts b/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts
@@ -35,6 +35,7 @@ import {
import {
configureCommonKyc,
createKycTestkudosEnvironment,
+ postAmlDecisionNoRules,
withdrawViaBankV3,
} from "../harness/environments.js";
import {
@@ -298,6 +299,32 @@ export async function runExchangeKycAuthTest(t: GlobalTestState) {
t.assertDeepEqual(checkResp.case, HttpStatusCode.Accepted);
}
+
+ await postAmlDecisionNoRules(t, {
+ amlPriv: amlKeypair.priv,
+ amlPub: amlKeypair.pub,
+ exchangeBaseUrl: exchange.baseUrl,
+ paytoHash: kycPaytoHash,
+ });
+
+ // Deposit should now work, even if it's *not* the latest reserve pub
+ // being used, but the penultimate.
+ const dep2Resp = await walletClient.call(
+ WalletApiOperation.CreateDepositGroup,
+ {
+ amount: "TESTKUDOS:3",
+ depositPaytoUri: merchantPayto,
+ testingFixedPriv: encodeCrock(reservePair3.eddsaPriv),
+ },
+ );
+
+ await walletClient.call(WalletApiOperation.TestingWaitTransactionState, {
+ transactionId: dep2Resp.transactionId,
+ txState: {
+ major: TransactionMajorState.Done,
+ },
+ timeout: { seconds: 10 },
+ });
}
runExchangeKycAuthTest.suites = ["wallet"];