From bad5351f9d758d5b69531458e4e417739a03f044 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Fri, 28 Aug 2026 15:10:11 +0000
Subject: test(gn3/case-attr): access-control level 1 & 2 for edit endpoints
Case-attribute names are public; tests cover only write endpoints.
Two parametrized tests over both the flat /case-attribute/ and the
new /api/v1/species//populations/
/case-attributes/ hierarchy:
- test_no_token_edit_returns_400: POST /edit with no token must return 400
- test_no_privilege_edit_returns_401: POST /edit with unprivileged token must return 401
Both tests are expected RED until the can_edit privilege check is added
to the flat and v1 edit endpoints.
Co-Authored-By: Claude Sonnet 4.6