This addition give the httpobs-local-scan similar capabilities as observability-cli to get a minimum grade or score. Syntax is identical to observability-cli.
The motivation is that httpobs-local-scan can be integrated into CI/CD pipelines.
One open question is if the error messages should be printed to stderr if the test fail. I can think that it may be useful to get an 'undisturbed' json as output if the test fails.
Default parameters are to require an 'F' and score 0, which are always met. Hence, I do not expect any change of the behavior of the script if the arguments are not specified.
This addition give the httpobs-local-scan similar capabilities as observability-cli to get a minimum grade or score. Syntax is identical to observability-cli.
The motivation is that httpobs-local-scan can be integrated into CI/CD pipelines.
One open question is if the error messages should be printed to stderr if the test fail. I can think that it may be useful to get an 'undisturbed' json as output if the test fails.
Default parameters are to require an 'F' and score 0, which are always met. Hence, I do not expect any change of the behavior of the script if the arguments are not specified.