Skip to content
Snippets Groups Projects
Commit 3e1f95ab authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Add tests

parent 96d165db
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,11 @@ describe 'postfix' do ...@@ -10,8 +10,11 @@ describe 'postfix' do
it { should contain_package('postfix') } it { should contain_package('postfix') }
it { should contain_package('mailx') } it { should contain_package('mailx') }
it { should contain_file('/etc/mailname').with_content("fqdn.example.com\n") } it { should contain_file('/etc/mailname').with_content("fqdn.example.com\n") }
it { should contain_file('/etc/aliases').with_content("# file managed by puppet\n") } it { should contain_file('/etc/aliases').with_content("# file managed by puppet\n") }
it { should contain_exec('newaliases').with_refreshonly('true') }
it { should contain_file('/etc/postfix/master.cf') }
end end
context 'when on RedHat' do context 'when on RedHat' do
...@@ -23,7 +26,10 @@ describe 'postfix' do ...@@ -23,7 +26,10 @@ describe 'postfix' do
it { should contain_package('postfix') } it { should contain_package('postfix') }
it { should contain_package('mailx') } it { should contain_package('mailx') }
it { should contain_file('/etc/mailname').with_content("fqdn.example.com\n") } it { should contain_file('/etc/mailname').with_content("fqdn.example.com\n") }
it { should contain_file('/etc/aliases').with_content("# file managed by puppet\n") } it { should contain_file('/etc/aliases').with_content("# file managed by puppet\n") }
it { should contain_exec('newaliases').with_refreshonly('true') }
it { should contain_file('/etc/postfix/master.cf') }
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment