jgstew / validate_bes_xml

a python module for validating BigFix XML files and content.
MIT License
0 stars 0 forks source link

Validate Relevance for Syntax Errors #2

Open jgstew opened 2 years ago

jgstew commented 2 years ago

This functionality probably belongs in a different python module that this one would then consume, like this: https://github.com/jgstew/EvaluateRelevance.py

The idea is that you should be able to evaluate every relevance statement in any content in order until you hit a "False" result without syntax errors on any supported platform. You could continue after that point to also check for syntax errors and results, but if it isn't a supported platform then errors might be expected and not meaningful.

You could run the relevance against the host that the script is running on to do the validation if it is supported, but if docker/podman/kubernetes is available, then you could also test the relevance against all supported linux platforms simultaneously. If the REST API is also available, then you could even go further and get results from test machines using Fast Query and/or a temporary Analyses.

With dockerfiles or sufficient automation, you could even do this in the context of GitHub actions on supported platforms as part of a CI/CD process, which would also work with MacOS & Windows, in addition to Linux.