mirror of
https://github.com/inspec/inspec
synced 2025-03-01 13:57:27 +00:00
* 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>
29 lines
504 B
Markdown
29 lines
504 B
Markdown
# 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
|
|
|
|
```
|