Loading spec/classes/postfix_spec.rb +4 −4 Original line number Diff line number Diff line Loading @@ -47,11 +47,11 @@ describe 'postfix' do it { should contain_package('postfix') } it { should contain_package('mailx') } it { should contain_file('/etc/mailname').without('seltype').with_content("fqdn.example.com\n") } it { should contain_file('/etc/aliases').without('seltype').with_content("# file managed by puppet\n") } it { should contain_file('/etc/mailname').with_seltype('postfix_etc_t').with_content("fqdn.example.com\n") } it { should contain_file('/etc/aliases').with_seltype('postfix_etc_t').with_content("# file managed by puppet\n") } it { should contain_exec('newaliases').with_refreshonly('true') } it { should contain_file('/etc/postfix/master.cf').without('seltype') } it { should contain_file('/etc/postfix/main.cf').without('seltype') } it { should contain_file('/etc/postfix/master.cf').with_seltype('postfix_etc_t') } it { should contain_file('/etc/postfix/main.cf').with_seltype('postfix_etc_t') } it { should contain_postfix__config('myorigin').with_value('fqdn.example.com') } it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } Loading Loading
spec/classes/postfix_spec.rb +4 −4 Original line number Diff line number Diff line Loading @@ -47,11 +47,11 @@ describe 'postfix' do it { should contain_package('postfix') } it { should contain_package('mailx') } it { should contain_file('/etc/mailname').without('seltype').with_content("fqdn.example.com\n") } it { should contain_file('/etc/aliases').without('seltype').with_content("# file managed by puppet\n") } it { should contain_file('/etc/mailname').with_seltype('postfix_etc_t').with_content("fqdn.example.com\n") } it { should contain_file('/etc/aliases').with_seltype('postfix_etc_t').with_content("# file managed by puppet\n") } it { should contain_exec('newaliases').with_refreshonly('true') } it { should contain_file('/etc/postfix/master.cf').without('seltype') } it { should contain_file('/etc/postfix/main.cf').without('seltype') } it { should contain_file('/etc/postfix/master.cf').with_seltype('postfix_etc_t') } it { should contain_file('/etc/postfix/main.cf').with_seltype('postfix_etc_t') } it { should contain_postfix__config('myorigin').with_value('fqdn.example.com') } it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } Loading