This means that we can both ensure all of the tests we're expecting are present (which'll help when implementing hot reloading for Data API v2 / the serve-watch command) - and means that we can potentially source these from other paths in the future (for example, sourcing the test configurations from files we're using for examples), far more easily - rather than relying on the files being in a given format.
Currently the Terraform Resource Definition doesn't contain any reference to the Tests we're expecting, which are instead loaded from the
Tests
directory and assumed to be correct.As such we should add a section to the Terraform Resource Definition outputting which tests are available e.g.:
This means that we can both ensure all of the tests we're expecting are present (which'll help when implementing hot reloading for Data API v2 / the
serve-watch
command) - and means that we can potentially source these from other paths in the future (for example, sourcing the test configurations from files we're using for examples), far more easily - rather than relying on the files being in a given format.