feat(compliance): Add JSON output option

This adds a new --json flag to the compliance subcommand, which
will output the compliance test results as minified JSON to stdout.

Also a few other small additions:
- Exit 1 if compliance tests fail
- Use random port for test server using freeport library (added)

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>
This commit is contained in:
Josh Dolitsky
2019-12-13 14:57:51 -06:00
parent 7de21820d7
commit 271b916a26
9 changed files with 133 additions and 27 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ Examples of config files are available in [examples/](examples/) dir.
# Compliance checks
```
bin/zot compliance -H hostIP -P port [-V "all"]
bin/zot compliance -H hostIP -P port [-V "all"] [--json]
```
# Ecosystem