Repository navigation
In progress
Labels
priority: highHigh prioritystatus: in progressCurrently being worked ontype: testingRelated to code testingworkload: hoursLikely takes hours to resolve
Description
Slice T1 of the access control redesign (design: TESK auth redesign, section 2 matrix, section 8 test plan, section 9.1 slice plan; D-388, D-407, D-408, D-409, D-420). Sibling of #222 (T3a, token validator).
What
An access-matrix test suite that pins the target behaviour of the redesign and becomes its acceptance suite:
- the caller x operation matrix of the design as data in
src/integration-test/resources/access-matrix/matrix.txt, and an integration test parametrised over it: one test per row, caller variant and operation (service info, create, get in three views, list, cancel); - the variants the design names next to the table: stamped owner
<iss>|<sub>and actor on create, missing and foreign tasks alike (404, same requests), page tokens of other owners (400), service info withserviceInfoPublic: false, and the per-operation variants of D-407 (all operations at the decision service, list scopesall/none, a widening policy, failing closed and open); - a mock OpenID Connect provider (tokens with issuer, audience, expiry, algorithm, key and
actas each row needs), a mock decision service (stand-in for the tes-authz reference policy, with failure modes, recording requests) and a mock Kubernetes API; - runs against the current code: cells the code doesn't meet yet are listed in
pending.csvwith the slice that makes them pass (T2, T3b, T4a, T4b, T6) and today's status; their tests are strict expected failures (they fail once the code meets the target, until the line is removed).
Done when
./mvnw clean verifypasses with the suite ondev(100 % coverage gate unchanged, as only tests are added);- docs/development.md describes the suite and how later slices update
pending.csv.
Metadata
Metadata
Assignees
Labels
priority: highHigh prioritystatus: in progressCurrently being worked ontype: testingRelated to code testingworkload: hoursLikely takes hours to resolve
Activity