inspec/test/fixtures/profiles/old-examples/profile
Miah Johnson 4f642e0942 Clean up schema PR.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2020-02-05 17:06:55 -08:00
..
controls Clean up schema PR. 2020-02-05 17:06:55 -08:00
libraries Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
inspec.yml Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08:00
README.md Moved test/unit/mock/* to test/fixtures 2019-11-08 16:29:03 -08: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