compliance-trestle
compliance-trestle copied to clipboard
Reduce the number of JSON test data in favour of generating it on the fly
Issue description / feature objectives
Currently Trestle tests use a lot of hardcoded test data which is hard to maintain and update. Instead, we should either generate it on the fly from the schema or have a few common test files and modify their content in-memory to test specific cases.
This will allow to reduce the load on the developers when updating to the new OSCAL schemes or writing new tests.
Completion Criteria
- Review current JSON test data and access its need.
- Explore the ways to reduce the number of test data, whether by generating it on the fly or modifying a "base" files as desired.
- Provide a new functionality for the tests to fetch or generate the required data.
- Test's logic should remain the same.