Skip to content

test(compliance): end-to-end compliance lifecycle integration test - #283

Merged
tiana-code merged 1 commit into
mainfrom
feat/E-04-compliance-rest-its
Jun 19, 2026
Merged

test(compliance): end-to-end compliance lifecycle integration test#283
tiana-code merged 1 commit into
mainfrom
feat/E-04-compliance-rest-its

Conversation

@tiana-code

Copy link
Copy Markdown
Owner

Final ticketed E-04 slice (#270) - consolidation proven end-to-end.

What #270 adds

ComplianceLifecycleIT (@SpringBootTest + Testcontainers Postgres + MockMvc, mirroring the merged KycApiContextIT full-context setup): drives a case open -> claim -> resolve over HTTP against real Postgres, asserts double-resolve -> 409 (RFC7807 conflict end-to-end), 403 on open with only the read scope (paired with the 201 write path = non-vacuous deny/allow), the OpenAPI doc lists both /v1/kyc/sessions and /v1/compliance/cases, and /actuator/health is reachable without a token (permitAll + observability baseline).

Honest scope - AC mapping (most production work shipped earlier)

Gate chain

Closes #270

… test

Prove the compliance web layer end to end: a full-context Spring Boot
test drives a case from open through claim to resolved over HTTP against
real Postgres, checks that re-resolving a terminal case returns 409,
that opening with only the read scope is forbidden, that the OpenAPI
document lists both the KYC and case endpoints, and that the health
endpoint is reachable without a token. The web layer itself (security,
RFC 7807, observability, OpenAPI) shipped in earlier slices; this closes
the consolidation by exercising it as a whole.

Closes #270
@tiana-code tiana-code added this to the v0.3.0 milestone Jun 19, 2026
@tiana-code
tiana-code merged commit 1bd4a1c into main Jun 19, 2026
8 checks passed
@tiana-code
tiana-code deleted the feat/E-04-compliance-rest-its branch June 19, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F-04.10 Compliance REST security + OpenAPI + lifecycle ITs

1 participant