inspec/examples/profile
Jared Quick 1c12a544c7
Add string impact options for controls (#3359)
* Add impact class which contains all cvss scores.
* Add testing for impact changes.
* Change symbols to strings for impact.
* Update error messages to be more clear.
* Fix test with new sha

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 14:14:05 -04:00
..
controls Add string impact options for controls (#3359) 2018-09-13 14:14:05 -04:00
libraries docs: Update example resource (#2904) 2018-04-05 08:50:49 -04:00
inspec.yml Add windows functional tests (#3385) 2018-09-12 18:04:16 -04:00
README.md Fix broken link in README.md 2016-10-20 12:42:15 -04:00

Example InSpec Profile

This example shows the implementation of an InSpec profile.

Verify a profile

InSpec ships with built-in features to verify a profile structure.

$ inspec check examples/profile
Summary
-------
Location: examples/profile
Profile: profile
Controls: 4
Timestamp: 2016-03-24T16:20:21+00:00
Valid: true

Errors
------

Warnings
--------

Execute a profile

To run all supported controls on a local machine use inspec exec /path/to/profile.

$ inspec exec examples/profile
..

Finished in 0.0025 seconds (files took 0.12449 seconds to load)
8 examples, 0 failures

Execute a specific control from a profile

To run one control from the profile use inspec exec /path/to/profile --controls name.

$ inspec exec examples/profile --controls tmp-1.0
.

Finished in 0.0025 seconds (files took 0.12449 seconds to load)
1 examples, 0 failures