inspec/test/unit/mock/profiles/profile-with-required-attributes/controls/include.rb

12 lines
159 B
Ruby
Raw Normal View History

cis_level = attribute('cis_level')
control 'control1' do
title 'title'
only_if { cis_level == 2 }
describe true do
it { should eq true}
end
end