test(auth): add TC-13/28/29/42 and wrong-audience JWT subsystem tests - #58
test(auth): add TC-13/28/29/42 and wrong-audience JWT subsystem tests#58vkolodny wants to merge 2 commits into
Conversation
Adds subsystem coverage for the remaining runnable authentication test plan gaps: no-JWTValidator fallback (TC-13), admin seeding idempotency across restart (TC-28) and with an empty DCM_ADMIN_SUBJECT (TC-29), Keycloak restart resilience (TC-42), and a wrong-audience JWT rejection test. TC-13/TC-29 run against dedicated compose services (control-plane-configc/-configa) sharing the main control-plane image. Signed-off-by: Vladislav Kolodny <vkolodny@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
PR Summary by QodoExpand auth subsystem tests for fallback, restarts, and JWT audience
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo
1.
|
…figa control-plane-configc shares the auth_test DB with control-plane and both run non-concurrency-safe (check-then-insert) admin seeding on startup. Waiting only for service_started let both race to insert the admin actor, crashing the loser on a unique constraint. Wait for service_healthy instead, which only passes after Seed() completes. Found by Qodo review on PR dcm-project#58. Signed-off-by: Vladislav Kolodny <vkolodny@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Adds subsystem coverage for the remaining runnable authentication test plan gaps: no-JWTValidator fallback (TC-13), admin seeding idempotency across restart (TC-28) and with an empty DCM_ADMIN_SUBJECT (TC-29), Keycloak restart resilience (TC-42), and a wrong-audience JWT rejection test. TC-13/TC-29 run against dedicated compose services (control-plane-configc/-configa) sharing the main control-plane image.