From 89fdb4e4599e34b09d9da410fe078b48b3e56f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= <raphael.pinson@camptocamp.com> Date: Wed, 22 May 2013 12:30:34 +0200 Subject: [PATCH] Test myorigin, alias_maps, inet_interfaces --- spec/classes/postfix_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/classes/postfix_spec.rb b/spec/classes/postfix_spec.rb index fecd383..3285a81 100644 --- a/spec/classes/postfix_spec.rb +++ b/spec/classes/postfix_spec.rb @@ -18,9 +18,9 @@ describe 'postfix' do it { should contain_file('/etc/postfix/master.cf').without('seltype') } it { should contain_file('/etc/postfix/main.cf').without('seltype') } - 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('myorigin').with_value('fqdn.example.com') } + it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } + it { should contain_postfix__config('inet_interfaces').with_value('localhost') } it { should contain_mailalias('root').with_recipient('nobody') } @@ -49,9 +49,9 @@ describe 'postfix' do it { should contain_file('/etc/postfix/master.cf').without('seltype') } it { should contain_file('/etc/postfix/main.cf').without('seltype') } - 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('myorigin').with_value('fqdn.example.com') } + it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } + it { should contain_postfix__config('inet_interfaces').with_value('localhost') } it { should contain_postfix__config('sendmail_path') } it { should contain_postfix__config('newaliases_path') } it { should contain_postfix__config('mailq_path') } @@ -122,9 +122,9 @@ describe 'postfix' do } it { should contain_file('/etc/postfix/main.cf').without('seltype') } - 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('myorigin').with_value('localhost') } + it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } + it { should contain_postfix__config('inet_interfaces').with_value('localhost2') } it { should contain_mailalias('root').with_recipient('foo') } -- GitLab