mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-16 09:40:24 +00:00
25 lines
694 B
Ruby
25 lines
694 B
Ruby
# frozen_string_literal: true
|
|
|
|
control 'template subcomponent configuration' do
|
|
title 'should match desired lines'
|
|
|
|
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
|