mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
94c2e8181c
* Filter check output based on sensitive flag -Updated check in formatters to filter check output during failures based on sensitive metadata flag -Added functional test of output filtering -Updated documentation with blerb on usage * Update output format for sensitive resources Signed-off-by: Kevin Formsma <kevin.formsma@gmail.com> * Update color output on new test Update the color output to match the newly-expected non-color format if there are no tests that match. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
controls | ||
inspec.yml | ||
README.md |
Example InSpec Profile with Sensitive failures
This profile demostrates resources flagged as sensitive
Usage
$ inspec exec examples/profile-sensitive
....
bob should
∅ eq "billy"
expected: "billy"
got: "bob"
(compared using ==)
sensitivepassword should
∅ eq "secret"
*** sensitive output suppressed ***
bob should
✔ eq "bob"
sensitivepassword should
✔ eq "sensitivepassword"
Test Summary: 2 successful, 2 failures, 0 skipped