Loading manifests/map.pp +5 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,11 @@ define postfix::map ( if $type =~ /^(cidr|pcre)$/ { $manage_notify = Service['postfix'] } else { if $ensure == 'present' { $manage_notify = Exec["generate ${name}.db"] } else { $manage_notify = undef } } file { "postfix map ${name}": Loading spec/defines/postfix_map_spec.rb +1 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,7 @@ describe 'postfix::map' do } } it { is_expected.to contain_file('postfix map foo').with_ensure('absent') } it { is_expected.to contain_file('postfix map foo').without_notify } it { is_expected.to contain_file('postfix map foo.db').with_ensure('absent') } it { is_expected.to contain_exec('generate foo.db') } end Loading Loading
manifests/map.pp +5 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,11 @@ define postfix::map ( if $type =~ /^(cidr|pcre)$/ { $manage_notify = Service['postfix'] } else { if $ensure == 'present' { $manage_notify = Exec["generate ${name}.db"] } else { $manage_notify = undef } } file { "postfix map ${name}": Loading
spec/defines/postfix_map_spec.rb +1 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,7 @@ describe 'postfix::map' do } } it { is_expected.to contain_file('postfix map foo').with_ensure('absent') } it { is_expected.to contain_file('postfix map foo').without_notify } it { is_expected.to contain_file('postfix map foo.db').with_ensure('absent') } it { is_expected.to contain_exec('generate foo.db') } end Loading