Skip to content

5.7 Tests

Sprint: Sprint 05 - Security and Identity
Feature ID: 5.7
Subtasks: 5.7.1

Objective

Deliver "Tests" within Sprint 05 - Security and Identity.

Dependencies

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

  • 5.3.2
  • 5.4.3
  • 5.5.1
  • 5.6.1

Subtasks

5.7.1 Identity integration tests

  • ID: 5.7.1
  • Title: Add identity-service integration tests (Testcontainers)
  • Description: RestAssured + Testcontainers (Postgres, Keycloak) tests covering Keycloak login, Keycloak refresh rotation, reuse-detection revocation, gateway JWKS validation, RBAC 403, and audit-row creation.
  • Business Purpose: Verify the authentication backbone end to end (NFR-17).
  • Inputs: 5.3-5.6.
  • Outputs: Integration test suite.
  • Acceptance Criteria:
  • All listed flows pass; coverage includes a 401 path, a 403 path, and a reuse-revocation path.
  • Dependencies: 5.3.2, 5.4.2, 5.5.1, 5.6.1
  • 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 (5.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).