mirror of
https://github.com/inspec/inspec
synced 2024-12-23 03:23:27 +00:00
30 lines
505 B
Markdown
30 lines
505 B
Markdown
|
# Example InSpec Profile with Sensitive failures
|
||
|
|
||
|
This profile demonstrates 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
|
||
|
|
||
|
```
|