inspec/test/unit/mock/profiles/old-examples/profile
devoptimist 2d49f39adc moved example tests into their own sub dir, and reused examples_path variable
Signed-off-by: devoptimist <sbrown@chef.io>
2019-03-18 15:15:32 +00:00
..
controls moved example tests into their own sub dir, and reused examples_path variable 2019-03-18 15:15:32 +00:00
libraries moved example tests into their own sub dir, and reused examples_path variable 2019-03-18 15:15:32 +00:00
inspec.yml moved example tests into their own sub dir, and reused examples_path variable 2019-03-18 15:15:32 +00:00
README.md moved example tests into their own sub dir, and reused examples_path variable 2019-03-18 15:15:32 +00: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