[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: harness: let AML fallback tes
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: harness: let AML fallback tests terminate via manual AML decision |
Date: |
Fri, 13 Dec 2024 13:31:16 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 731cbfc54 harness: let AML fallback tests terminate via manual AML
decision
731cbfc54 is described below
commit 731cbfc545f002d09a3458efc91e12a7e74e8530
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Dec 13 13:31:11 2024 +0100
harness: let AML fallback tests terminate via manual AML decision
---
.../src/integrationtests/test-kyc-amp-failure.ts | 16 +++++++++++++++-
.../src/integrationtests/test-kyc-amp-timeout.ts | 20 ++++++++++++++++----
2 files changed, 31 insertions(+), 5 deletions(-)
diff --git
a/packages/taler-harness/src/integrationtests/test-kyc-amp-failure.ts
b/packages/taler-harness/src/integrationtests/test-kyc-amp-failure.ts
index 6ccdbd1a1..16fa51262 100644
--- a/packages/taler-harness/src/integrationtests/test-kyc-amp-failure.ts
+++ b/packages/taler-harness/src/integrationtests/test-kyc-amp-failure.ts
@@ -27,6 +27,7 @@ import {
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import {
createKycTestkudosEnvironment,
+ postAmlDecisionNoRules,
withdrawViaBankV3,
} from "../harness/environments.js";
import { GlobalTestState } from "../harness/harness.js";
@@ -66,7 +67,11 @@ function adjustExchangeConfig(config: Configuration) {
config.setString("AML-PROGRAM-FREEZE", "description", "freeze account");
config.setString("AML-PROGRAM-FREEZE", "description_i18n", "{}");
config.setString("AML-PROGRAM-FREEZE", "fallback", "M1");
- config.setString("AML-PROGRAM-FREEZE", "command",
"taler-exchange-helper-measure-freeze");
+ config.setString(
+ "AML-PROGRAM-FREEZE",
+ "command",
+ "taler-exchange-helper-measure-freeze",
+ );
config.setString;
}
@@ -104,6 +109,15 @@ export async function runKycAmpFailureTest(t:
GlobalTestState) {
console.log(j2s(txDet));
+ t.assertTrue(!!txDet.kycPaytoHash);
+
+ await postAmlDecisionNoRules(t, {
+ amlPriv: amlKeypair.priv,
+ amlPub: amlKeypair.pub,
+ exchangeBaseUrl: exchange.baseUrl,
+ paytoHash: txDet.kycPaytoHash,
+ });
+
await wres.withdrawalFinishedCond;
}
diff --git
a/packages/taler-harness/src/integrationtests/test-kyc-amp-timeout.ts
b/packages/taler-harness/src/integrationtests/test-kyc-amp-timeout.ts
index 39bf7fa65..13147082a 100644
--- a/packages/taler-harness/src/integrationtests/test-kyc-amp-timeout.ts
+++ b/packages/taler-harness/src/integrationtests/test-kyc-amp-timeout.ts
@@ -27,6 +27,7 @@ import {
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import {
createKycTestkudosEnvironment,
+ postAmlDecisionNoRules,
withdrawViaBankV3,
} from "../harness/environments.js";
import { GlobalTestState } from "../harness/harness.js";
@@ -66,7 +67,11 @@ function adjustExchangeConfig(config: Configuration) {
config.setString("AML-PROGRAM-FREEZE", "description", "freeze account");
config.setString("AML-PROGRAM-FREEZE", "description_i18n", "{}");
config.setString("AML-PROGRAM-FREEZE", "fallback", "M1");
- config.setString("AML-PROGRAM-FREEZE", "command",
"taler-exchange-helper-measure-freeze");
+ config.setString(
+ "AML-PROGRAM-FREEZE",
+ "command",
+ "taler-exchange-helper-measure-freeze",
+ );
config.setString;
}
@@ -102,11 +107,18 @@ export async function runKycAmpTimeoutTest(t:
GlobalTestState) {
transactionId: wres.transactionId as TransactionIdStr,
});
- console.log(j2s(txDet));
+ t.assertTrue(!!txDet.kycPaytoHash);
- // FIXME: Test incomplete. Check that fallback rules have been applied.
+ await postAmlDecisionNoRules(t, {
+ amlPriv: amlKeypair.priv,
+ amlPub: amlKeypair.pub,
+ exchangeBaseUrl: exchange.baseUrl,
+ paytoHash: txDet.kycPaytoHash,
+ });
+
+ console.log(j2s(txDet));
- //await wres.withdrawalFinishedCond;
+ await wres.withdrawalFinishedCond;
}
runKycAmpTimeoutTest.suites = ["wallet"];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: harness: let AML fallback tests terminate via manual AML decision,
gnunet <=