Skip to content

10.7 Tests

Sprint: Sprint 10 - Usage Metering
Feature ID: 10.7
Subtasks: 10.7.1

Objective

Deliver "Tests" within Sprint 10 - Usage Metering.

Dependencies

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

  • 10.4.3
  • 10.5.1
  • 10.6.1

Subtasks

10.7.1 Usage integration tests and AC-03

  • ID: 10.7.1
  • Title: Add usage integration tests including AC-03 (Testcontainers)
  • Description: Testcontainers (Postgres, Kafka) tests covering quota provisioning, CDR metering with idempotency and concurrency, 80%/100% threshold emission, overage capture, aggregation, and the AC-03 scenario driven by the simulator.
  • Business Purpose: Verify the usage domain and AC-03 (NFR-17).
  • Inputs: 10.2-10.6, AC-03.
  • Outputs: Integration test suite.
  • Acceptance Criteria:
  • FR-17..20 flows pass; AC-03 passes: simulator usage decrements quota, 80% and 100% events fire, and post-exhaustion usage is aggregated as overage for billing.
  • Dependencies: 10.4.3, 10.5.1, 10.6.1
  • Complexity: L

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 (10.7.1) completed and their acceptance criteria verified.
  • All listed dependencies satisfied.
  • Build and tests green per the global conventions in ../README.md (Section 3).