From 63e7f51717adf3a2af5415ef85ce1300e626c110 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:31:22 +0200 Subject: [PATCH] Test default seltypes --- spec/classes/postfix_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/classes/postfix_spec.rb b/spec/classes/postfix_spec.rb index 00c8a81..7645aa7 100644 --- a/spec/classes/postfix_spec.rb +++ b/spec/classes/postfix_spec.rb @@ -12,11 +12,11 @@ describe 'postfix' do it { should contain_package('postfix') } it { should contain_package('mailx') } - 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/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_exec('newaliases').with_refreshonly('true') } - it { should contain_file('/etc/postfix/master.cf') } - it { should contain_file('/etc/postfix/main.cf' ) } + 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') } @@ -43,11 +43,11 @@ describe 'postfix' do it { should contain_package('postfix') } it { should contain_package('mailx') } - 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/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_exec('newaliases').with_refreshonly('true') } - it { should contain_file('/etc/postfix/master.cf') } - it { should contain_file('/etc/postfix/main.cf' ) } + 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') } -- GitLab