Skip to content

KYC/AML integration test harness with recorded provider fixtures #755

Description

@thlpkee20-wq

Description

Provider adapters are hard to test end-to-end without live vendor keys. Add a fixture-recording harness that captures redacted vendor traces once and replays them in CI without any secrets.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: src/aml/amlService.test.ts, KYC adapter tests
  • Redaction unit-tested to prove no PII leaks

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b tests/kyc-aml-fixture-harness
  • Implement changes
    • Add recorder helper
    • Add redaction rules
    • Land initial fixtures per provider
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • npm test
  • Cover edge cases
    • Redaction covers unexpected fields
  • Include test output and notes

Example commit message

tests: KYC/AML fixture-recording test harness

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions