commit 030dd8967fdaabc13dfb9b70bde938500d5b28c9
parent 3f26f72d2e5d08264969c91855812671e107356b
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 16 Dec 2025 19:52:23 +0100
work on tops-aml-pdf test
Diffstat:
1 file changed, 28 insertions(+), 65 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-tops-aml-pdf.ts b/packages/taler-harness/src/integrationtests/test-tops-aml-pdf.ts
@@ -236,8 +236,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
{
- // FIXME: Dold
- await decideMeasure("kyx");
await submitOfficerForm("vqf_902_1_officer", {
FORM_ID: "vqf_902_1_officer",
FORM_VERSION: 1,
@@ -274,10 +272,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_1_officer form with LISTED terrorism check
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_1_officer", {
+ {
+ await submitOfficerForm("vqf_902_1_officer", {
FORM_ID: "vqf_902_1_officer",
FORM_VERSION: 1,
ACCEPTANCE_DATE: "2025-12-02",
@@ -286,7 +282,7 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
EMBARGO_TERRORISM_CHECK_RESULT: "LISTED",
EMBARGO_TERRORISM_CHECK_DATE: "2025-12-02",
EMBARGO_TERRORISM_INFO:
- "Name match found on sanctions list - requires further investigation",
+ "Entry 4252 might match",
SUPPLEMENTAL_FILES_LIST: [
{
FILE: createPdfAttachment("sanctions-report"),
@@ -315,15 +311,14 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_4 form - without PEP or high risk
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx"); // FIXME: which measure?
- await submitForm("vqf_902_4", {
+ {
+ await submitOfficerForm("vqf_902_4", {
FORM_ID: "vqf_902_4",
FORM_VERSION: 1,
PEP_FOREIGN: false,
PEP_DOMESTIC: false,
PEP_INTERNATIONAL_ORGANIZATION: false,
+ PEP_HIGH_RISK: false,
HIGH_RISK_COUNTRY: false,
COUNTRY_RISK_NATIONALITY_TYPE: [
"NATIONALITY_CUSTOMER",
@@ -353,10 +348,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_4 form - with PEP and high risk
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_4", {
+ {
+ await submitOfficerForm("vqf_902_4", {
FORM_ID: "vqf_902_4",
FORM_VERSION: 1,
PEP_FOREIGN: true,
@@ -396,11 +389,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_5 form - with SAVINGS origin
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await expectNoInvestigate();
- await submitForm("vqf_902_5", {
+ {
+ await submitOfficerForm("vqf_902_5", {
FORM_ID: "vqf_902_5",
FORM_VERSION: 1,
BIZREL_PROFESSION:
@@ -427,7 +417,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
BIZREL_FURTHER_INFO:
"Customer has been transparent about income sources. All documentation verified.",
});
- await expectInvestigate();
const res = succeedOrThrow(
await exchangeClient.getAmlAttributesForAccountAsPdf(
@@ -441,11 +430,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_5 form - with INHERITANCE and OTHER origin
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await expectNoInvestigate();
- await submitForm("vqf_902_5", {
+ {
+ await submitOfficerForm("vqf_902_5", {
FORM_ID: "vqf_902_5",
FORM_VERSION: 1,
BIZREL_PROFESSION:
@@ -473,7 +459,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
BIZREL_FURTHER_INFO:
"Estate documentation and business sale agreement on file. All sources verified through notarized documents.",
});
- await expectInvestigate();
const res = succeedOrThrow(
await exchangeClient.getAmlAttributesForAccountAsPdf(
@@ -487,11 +472,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_9_customer form
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await expectNoInvestigate();
- await submitForm("vqf_902_9_customer", {
+ {
+ await submitOfficerForm("vqf_902_9_customer", {
FORM_ID: "vqf_902_9_customer",
FORM_VERSION: 1,
IDENTITY_CONTRACTING_PARTNER:
@@ -519,7 +501,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
SIGNATURE: "Michael Anderson",
SIGN_DATE: "2025-12-05",
});
- await expectInvestigate();
const res = succeedOrThrow(
await exchangeClient.getAmlAttributesForAccountAsPdf(
@@ -533,10 +514,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_9_officer form
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_9_officer", {
+ {
+ await submitOfficerForm("vqf_902_9_officer", {
FORM_ID: "vqf_902_9_officer",
FORM_VERSION: 1,
IDENTITY_CONTRACTING_PARTNER:
@@ -578,7 +557,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
// Test vqf_902_11_customer form - HAS_25_MORE_RIGHTS variant, without third party
if (false) {
// FIXME: dold
- await decideMeasure("kyx");
await submitForm("vqf_902_11_customer", {
FORM_ID: "vqf_902_11_customer",
FORM_VERSION: 1,
@@ -618,7 +596,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
// Test vqf_902_11_customer form - OTHER_WAY variant, with third party
if (false) {
// FIXME: dold
- await decideMeasure("kyx");
await submitForm("vqf_902_11_customer", {
FORM_ID: "vqf_902_11_customer",
FORM_VERSION: 1,
@@ -658,7 +635,6 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
// Test vqf_902_11_customer form - DIRECTOR variant
if (false) {
// FIXME: dold
- await decideMeasure("kyx");
await submitForm("vqf_902_11_customer", {
FORM_ID: "vqf_902_11_customer",
FORM_VERSION: 1,
@@ -696,10 +672,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_11_officer form - HAS_25_MORE_RIGHTS variant
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_11_officer", {
+ {
+ await submitOfficerForm("vqf_902_11_officer", {
FORM_ID: "vqf_902_11_officer",
FORM_VERSION: 1,
IDENTITY_CONTRACTING_PARTNER:
@@ -735,10 +709,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_14 form - NO_SUSPICION result
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_14", {
+ {
+ await submitOfficerForm("vqf_902_14", {
FORM_ID: "vqf_902_14",
FORM_VERSION: 1,
INCRISK_REASON:
@@ -763,11 +735,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_14 form - SUBSTANTIATED_SUSPICION result
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await expectNoInvestigate();
- await submitForm("vqf_902_14", {
+ {
+ await submitOfficerForm("vqf_902_14", {
FORM_ID: "vqf_902_14",
FORM_VERSION: 1,
INCRISK_REASON:
@@ -792,10 +761,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test vqf_902_14 form - OTHER result with explanation
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("vqf_902_14", {
+ {
+ await submitOfficerForm("vqf_902_14", {
FORM_ID: "vqf_902_14",
FORM_VERSION: 1,
INCRISK_REASON:
@@ -824,10 +791,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test generic_note form
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("generic_note", {
+ {
+ await submitOfficerForm("generic_note", {
FORM_ID: "generic_note",
FORM_VERSION: 1,
NOTE_TEXT:
@@ -860,10 +825,8 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
}
// Test generic_upload form
- if (false) {
- // FIXME: dold
- await decideMeasure("kyx");
- await submitForm("generic_upload", {
+ {
+ await submitOfficerForm("generic_upload", {
FORM_ID: "generic_upload",
FORM_VERSION: 1,
NOTE_TEXT: