mirror of
https://github.com/inspec/inspec
synced 2024-11-30 08:30:39 +00:00
20776b363d
* Add support for multiple descriptions for controls This adds the ability to specify multiple descriptions in controls. Example: ```ruby control 'my-control' do impact 1.0 title 'My control' desc 'A default description' desc 'rational', 'I need an example' describe file('/tmp') do it { should be_directory } end end ``` Many thanks to @jquick for helping me with the unit tests. * Remove unused `descriptions` method * Remove unused profile from test mocks * Respond to feedback Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> |
||
---|---|---|
.. | ||
controls | ||
libraries | ||
inspec.yml | ||
README.md |
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