about summary refs log tree commit diff
path: root/tests/test_gn2_auth_flow.py
diff options
context:
space:
mode:
authorClaude Sonnet 4.62026-09-02 18:30:27 +0000
committerFrederick Muriuki Muriithi2026-09-02 13:35:18 -0500
commitd9f02c41127d71795c533121f66b2eecab63612a (patch)
treee09bead5f4206b899f43d7ef77ce239b23e184bf /tests/test_gn2_auth_flow.py
parent9ea8d02ef486761026afce466cc39bd6597d9481 (diff)
downloadgn-integration-tests-d9f02c41127d71795c533121f66b2eecab63612a.tar.gz
test(gn-auth): unknown-trait 404 and system/roles no-token 200
Add two contract tests for gn-auth's authorisation endpoints:

- POST /auth/data/authorisation with a non-existent trait must return 404
  (gn-auth raises NotFoundError which maps to error_code=404).
- GET /auth/resource/system/roles without an Authorization header must
  return 200 with the public-view role rather than 401.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'tests/test_gn2_auth_flow.py')
0 files changed, 0 insertions, 0 deletions