diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-04 13:32:08 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-04 13:32:08 +0000 |
| commit | 21c69c1051715e6964fe9d4c8e06a326344fe6eb (patch) | |
| tree | 5e8fbf9892de09c9d095ae32c39de2e149195292 /test/python/test_dev_token.py | |
| parent | dfbf105652140d52e50a96853f0a7ab91fec0776 (diff) | |
| download | genenetwork4-21c69c1051715e6964fe9d4c8e06a326344fe6eb.tar.gz | |
Gate GET /datasets/{dataset}/probesets/{probeset}/values on gn-auth
Same treatment as dataset_probeset_info: require a valid AuthToken unconditionally, and for a dataset that isn't publicly readable, check group:resource:view-resource via authorise_trait -- denied is a 403, gn-auth unreachable is a 502. Unify DatasetProbesetLookup/DatasetProbesetInfoLookup back into one generic enum (with the new Forbidden variant) now that both dataset_probeset_info and dataset_probeset_values need it, rather than keeping two near-identical enums. tests/dataset_probeset_values.rs and its Python mirror gain the same 401/403 cases as dataset_probeset_info's, run against a real gn-auth instance; the 403 case reuses UTHSC_BXD_Cochlea_0225, confirmed to have both ProbeSet metadata and ProbeSetData values rows so the test exercises the authorization check rather than ProbesetNotFound. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDDpXvZBQat9uSgDeEMJ8d
Diffstat (limited to 'test/python/test_dev_token.py')
0 files changed, 0 insertions, 0 deletions
