Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a silent output #216

Merged
merged 3 commits into from Apr 23, 2017
Merged

Add a silent output #216

merged 3 commits into from Apr 23, 2017

Conversation

strongoose
Copy link
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
Member

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

@strongoose
Copy link
Contributor Author

Oh of course! My bad.

@strongoose
Copy link
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
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.

None yet

2 participants