mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
25 lines
711 B
Ruby
25 lines
711 B
Ruby
# frozen_string_literal: true
|
|
|
|
control 'TEMPLATE.subcomponent.config.file' do
|
|
title 'Verify the subcomponent configuration file'
|
|
|
|
describe file('/etc/TEMPLATE-subcomponent-formula.conf') do
|
|
it { should be_file }
|
|
it { should be_owned_by 'root' }
|
|
it { should be_grouped_into 'root' }
|
|
its('mode') { should cmp '0644' }
|
|
its('content') do
|
|
should include(
|
|
'# File managed by Salt at ' \
|
|
'<salt://TEMPLATE/subcomponent/config/files/default/' \
|
|
'subcomponent-example.tmpl.jinja>.'
|
|
)
|
|
end
|
|
its('content') do
|
|
should include(
|
|
'This is another subcomponent example file from SaltStack ' \
|
|
'template-formula.'
|
|
)
|
|
end
|
|
end
|
|
end
|