# 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 '\ '.' ) end its('content') do should include( 'This is another subcomponent example file from SaltStack '\ 'template-formula.' ) end end end