Outstanding issues:
- Tests are limited to using a single user (
sub == 42) with auth set to none. Need a "fake" auth provider for testing purposes.
- Tests are inadequate/low coverage over API.
- Providing a fake CASBIN policy for the test.
Thoughts/Suggestions:
- Table driven tests are nice for making certain test types repeatable for different cases. Also see: https://lorenzopeppoloni.com/tabledriventestspy/
- Starting with testing the API itself with a mock/testing database under the hood would be a good start.
- Consider adding a generic way to run common "permissions" tests for API
Group API Tests:
Protocol API Tests:
Run API Tests:
Sample API Tests:
User API Tests:
This will test most of the core functionality with some of the special behavior of the Runs API not being tested yet, but we can add that afterwards.
Outstanding issues:
sub==42) with auth set tonone. Need a "fake" auth provider for testing purposes.Thoughts/Suggestions:
Group API Tests:
Protocol API Tests:
version_idparameter is providedRun API Tests:
version_idparameter is providedSample API Tests:
version_idparameter is providedUser API Tests:
version_idparameter is providedThis will test most of the core functionality with some of the special behavior of the Runs API not being tested yet, but we can add that afterwards.