about summary refs log tree commit diff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorClaude2026-08-31 00:00:00 +0000
committerFrederick Muriuki Muriithi2026-08-31 13:23:46 -0500
commit0eb06200d7c4e24e63bf730be29609bd4c7269c8 (patch)
treecd22bcf784ca22a27c5304ff82ab4bbd9bfca53a /tests/__init__.py
parent8979be2b4576a33cb70db84340345e3408c0005d (diff)
downloadgn-integration-tests-0eb06200d7c4e24e63bf730be29609bd4c7269c8.tar.gz
test(gn3/case-attr): level 5 — data-curator approve/reject
Add fixtures and tests for approve/reject access control using a
systemwide-data-curator token.

conftest.py:
- data_curator_oauth2_credentials: reads role "systemwide-data-curator"
  from GN_TEST_USERS_FILE; skips if absent.
- data_curator_token: requests scope "profile group resource role user".

tests/test_gn3_case_attr_access.py:
- test_data_curator_can_approve_returns_200_or_201: parametrized over
  flat (/case-attribute/…) and v1 endpoints; asserts 200 or 201 (either
  proves the auth check passed).
- test_data_curator_can_reject_returns_200_or_201: same for reject
  paths.

Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions