From 51188fa697d5f797a3f4119010ac6f703d3d975b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= <raphael.pinson@camptocamp.com> Date: Mon, 20 May 2013 14:26:22 +0200 Subject: [PATCH] Add tests --- spec/classes/postfix_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/classes/postfix_spec.rb b/spec/classes/postfix_spec.rb index 1b15af2..9e79bec 100644 --- a/spec/classes/postfix_spec.rb +++ b/spec/classes/postfix_spec.rb @@ -15,6 +15,11 @@ describe 'postfix' do 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') } + it { should contain_file('/etc/postfix/main.cf' ) } + + it { should contain_postfix__config('myorigin') } + it { should contain_postfix__config('alias_maps') } + it { should contain_postfix__config('inet_interfaces') } end context 'when on RedHat' do @@ -31,5 +36,13 @@ describe 'postfix' do 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') } + it { should contain_file('/etc/postfix/main.cf' ) } + + it { should contain_postfix__config('myorigin') } + it { should contain_postfix__config('alias_maps') } + it { should contain_postfix__config('inet_interfaces') } + it { should contain_postfix__config('sendmail_path') } + it { should contain_postfix__config('newaliases_path') } + it { should contain_postfix__config('mailq_path') } end end -- GitLab