nsd-formula/test/integration/default/controls/subcomponent_config.rb
Alexander Weidinger 91f759f953 feat: convert template-formula to nsd-formula
BREAKING CHANGE: changed all state names and ids
2021-04-01 23:00:17 +02:00

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