Skip to content

6.4 Tests

Sprint: Sprint 06 - Customer Domain
Feature ID: 6.4
Subtasks: 6.4.1

Objective

Deliver "Tests" within Sprint 06 - Customer Domain.

Dependencies

Aggregated from the subtasks below (prerequisite task IDs and enablers):

  • 6.3.1
  • 6.3.5
  • 6.3.6

Subtasks

6.4.1 Customer integration tests

  • ID: 6.4.1
  • Title: Add customer-service integration tests (Testcontainers)
  • Description: RestAssured + Testcontainers (Postgres, Kafka) covering registration, KYC approve/reject with event emission, address default handling, document upload, soft-delete, PII encryption (DB ciphertext), and TCKN validation failure.
  • Business Purpose: Verify the customer domain end to end (NFR-17).
  • Inputs: 6.3.x.
  • Outputs: Integration test suite.
  • Acceptance Criteria:
  • All FR-01..04 flows pass; a test asserts the identity number is ciphertext in the DB and masked in API/log output; KYC approval emits the outbox event.
  • Dependencies: 6.3.1, 6.3.5, 6.3.6
  • Complexity: M

Acceptance Criteria

Each subtask above carries its own objective, testable acceptance criteria. This feature is complete when every subtask's acceptance criteria are met.

Deliverables

  • Integration test suite.

Definition of Done

  • All subtasks (6.4.1) completed and their acceptance criteria verified.
  • All listed dependencies satisfied.
  • Build and tests green per the global conventions in ../README.md (Section 3).