diff options
| author | Claude Sonnet 4.6 | 2026-09-02 18:21:06 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-09-02 13:23:46 -0500 |
| commit | 9ea8d02ef486761026afce466cc39bd6597d9481 (patch) | |
| tree | 6233566631b53c59ecf44ae48c0cb1677a5cbfab /tests/test_gn2_auth_flow.py | |
| parent | 08f3c10add440b4b71dd625c94775820e3076eb5 (diff) | |
| download | gn-integration-tests-9ea8d02ef486761026afce466cc39bd6597d9481.tar.gz | |
test(gn_auth): add data/authorisation contract tests — no-token public fallback
GN2 calls POST /auth/data/authorisation per-request to check a user's
privileges on a trait's resource. Without a Bearer token the endpoint
does not 401; instead it returns public-access privileges for publicly
visible resources.
Two tests verify this contract:
test_data_authorisation_no_token_public_trait_returns_200
Confirms the endpoint returns 200 for a known public trait without
a token.
test_data_authorisation_no_token_public_trait_grants_view_privilege
Confirms the response includes 'group:resource:view-resource' —
the privilege GN2 checks to determine read access.
Co-Authored-By: Frederick Muriuki Muriithi <fmuriit1@uthsc.edu>
Diffstat (limited to 'tests/test_gn2_auth_flow.py')
0 files changed, 0 insertions, 0 deletions
