2018-02-18 14:16:15 +00:00
|
|
|
# copyright: 2018, The Authors
|
2016-02-14 20:27:40 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
title "sample section"
|
2016-02-14 20:27:40 +00:00
|
|
|
|
|
|
|
# you can also use plain tests
|
2019-06-11 22:24:35 +00:00
|
|
|
describe file("/tmp") do
|
2016-02-14 20:27:40 +00:00
|
|
|
it { should be_directory }
|
|
|
|
end
|
|
|
|
|
|
|
|
# you add controls here
|
2019-06-11 22:24:35 +00:00
|
|
|
control "tmp-1.0" do # A unique ID for this control
|
2016-02-14 20:27:40 +00:00
|
|
|
impact 0.7 # The criticality, if this control fails.
|
2019-06-11 22:24:35 +00:00
|
|
|
title "Create /tmp directory" # A human-readable title
|
|
|
|
desc "An optional description..."
|
|
|
|
describe file("/tmp") do # The actual test
|
2016-02-14 20:27:40 +00:00
|
|
|
it { should be_directory }
|
|
|
|
end
|
|
|
|
end
|