mirror of
https://github.com/inspec/inspec
synced 2024-12-25 20:43:13 +00:00
db8e6e7415
Signed-off-by: Ryan Davis <zenspider@chef.io>
20 lines
585 B
Ruby
20 lines
585 B
Ruby
# copyright: 2015, The Authors
|
|
|
|
title 'sample section'
|
|
include_controls 'profile_d'
|
|
|
|
# you add controls here
|
|
control 'profileb-1' do # A unique ID for this control
|
|
impact 0.7 # The criticality, if this control fails.
|
|
title 'Create /tmp directory' # A human-readable title
|
|
desc 'An optional description...'
|
|
describe file('/tmp') do # The actual test
|
|
it { should be_directory }
|
|
end
|
|
end
|
|
|
|
control 'profileb-2' do
|
|
describe example_config do
|
|
its('version') { should eq('2.0') }
|
|
end
|
|
end
|