metacatui
metacatui copied to clipboard
test: Expose critical AccessPolicy permission validation failures
Comprehensive test suite reveals multiple permission system bugs:
- Type validation failures in AppModel configuration
- Broken permission hierarchy (changePermission without write)
- Silent failures in policy creation and broadcasting
- Integration inconsistencies across views and models
Tests document expected failures and provide roadmap for fixes.
I suspect that these issues are related to the bugs contained in the skipped tests marked EXPECTED FAILURE:
https://github.com/NCEAS/metacatui/issues/1918 https://github.com/NCEAS/metacatui/issues/1916
There do not appear to be that many issues regarding access policy bugs, but it could be that this is because most data deployed with Metacat is public.