test(inspec): move common controls to the share profile

This commit is contained in:
Imran Iqbal
2021-07-20 18:01:37 +01:00
parent 27473b9865
commit 2214096362
6 changed files with 73 additions and 8 deletions

View 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