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:51:26 +0000
committerFrederick Muriuki Muriithi2026-09-02 13:52:52 -0500
commitd54b7d7e0059f091fe8ddca92c55b01efb1b1d8b (patch)
treec3cdffa6bd4e08db2e390a8d8cde1751e9103280 /tests/test_gn2_auth_flow.py
parente2a7c568ae488534fd2e38fbb7847d9a985557d5 (diff)
downloadgn-integration-tests-d54b7d7e0059f091fe8ddca92c55b01efb1b1d8b.tar.gz
test(gn-auth): authenticated data/authorisation structure and unknown-trait 404
Add two contract tests:

- data/authorisation with token: verify the response body contains an
  'authorisation' key with at least one item, confirming the response
  structure is the same as the no-token path.
- data/authorisation with token + unknown trait: verify NotFoundError
  (404) is raised regardless of whether a token is present — the
  resource lookup precedes the token check.

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