test(inspec): move common controls to the share profile
This commit is contained in:
13
test/integration/repo/controls/share.rb
Normal file
13
test/integration/repo/controls/share.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# https://docs.chef.io/inspec/profiles/#including-all-controls-from-a-profile
|
||||
# Could use `include_controls` in this scenario
|
||||
# include_controls 'share'
|
||||
|
||||
# https://docs.chef.io/inspec/profiles/#selectively-including-controls-from-a-profile
|
||||
# However, using `require_controls` for more clarity
|
||||
require_controls 'share' do
|
||||
control 'Postgres command'
|
||||
control 'Postgres configuration'
|
||||
# control 'Postgres service'
|
||||
end
|
||||
Reference in New Issue
Block a user