Skip to content

Add a silent output#216

Merged
aelsabbahy merged 3 commits into
goss-org:masterfrom
strongoose:silent-output
Apr 23, 2017
Merged

Add a silent output#216
aelsabbahy merged 3 commits into
goss-org:masterfrom
strongoose:silent-output

Conversation

@strongoose
Copy link
Copy Markdown
Contributor

When using goss as a helathchecking endpoint, it may be desirable to
suppress verbose test output so that potential malicious entities can't
scrape healthcheck endpoints for system information.

Add the silent output, which simply checks whether any tests have
failed and returns 1 or 0 accordingly, without printing any output.

When using goss as a helathchecking endpoint, it may be desirable to
suppress verbose test output so that potential malicious entities can't
scrape healthcheck endpoints for system information.

Add the `silent` output, which simply checks whether any tests have
failed and returns 1 or 0 accordingly, without printing any output.
@aelsabbahy
Copy link
Copy Markdown
Member

Awesome! Code looks good, can you also update the documentation as part of this pull request.

@strongoose
Copy link
Copy Markdown
Contributor Author

Oh of course! My bad.

@strongoose
Copy link
Copy Markdown
Contributor Author

I've added some one-line output descriptions. They're maybe a bit long, but I thought it was worth expanding on the use-case, since it's perhaps non-obvious.

@aelsabbahy
Copy link
Copy Markdown
Member

I'll merge/release with next release. Thanks 👍

@aelsabbahy aelsabbahy merged commit f75c184 into goss-org:master Apr 23, 2017
BenjaminHerbert pushed a commit to BenjaminHerbert/goss that referenced this pull request May 28, 2020
* Add a silent output

When using goss as a helathchecking endpoint, it may be desirable to
suppress verbose test output so that potential malicious entities can't
scrape healthcheck endpoints for system information.

Add the `silent` output, which simply checks whether any tests have
failed and returns 1 or 0 accordingly, without printing any output.

* Document silent output format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants