91f759f953
BREAKING CHANGE: changed all state names and ids
26 lines
693 B
Ruby
26 lines
693 B
Ruby
# frozen_string_literal: true
|
|
|
|
control 'nsd.subcomponent.config.file' do
|
|
title 'Verify the subcomponent configuration file'
|
|
|
|
describe file('/etc/nsd-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://nsd/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
|