Allow client-side validation of YAML files posted via `openqa-cli`
Since https://github.com/os-autoinst/openQA/pull/4999 has been merged there are now already two routes that expect YAML data. So far the YAML documents are validated against a schema on the server-side. This should of course stay but it would be nice to validate the YAML documents also on the client-side to catch errors early.
- AC1: YAML documents specified via
openqa-clifor job templates or scenario definitions are validated by the
openqa-clibefore the actual request is done. Errors are reported to the user and no request is done in the error case.
- AC2: The validation can be disabled.
#1 Updated by mkittler 3 months ago
- Related to action #92311: Complete test definition from a single yaml schedule file in local test distribution folder added
#2 Updated by tinita 3 months ago
My original point was that users should be encouraged to use the existing
openqa-validate-yaml script as an extra test, for example when triggering tests in CI, but also locally. This way an invalid YAML can be detected faster.
So it would just be an addition to the documentation.