aboutsummaryrefslogtreecommitdiff
path: root/spec/classes
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2018-07-11 11:19:13 +0200
committerGitHub <noreply@github.com>2018-07-11 11:19:13 +0200
commitaca9f33812d353aed4d8a35b2e59e2b1c3cf1375 (patch)
tree7107037f8423e1d33b9b4eccc5623e1e08f8d6d6 /spec/classes
parentd405c11417af82e4f6d146b405c26a9a2019422c (diff)
parent55963490dcfea644defad8afe87411fb22f6d798 (diff)
downloadpuppet-ferm-aca9f33812d353aed4d8a35b2e59e2b1c3cf1375.tar.gz
puppet-ferm-aca9f33812d353aed4d8a35b2e59e2b1c3cf1375.tar.bz2
Merge pull request #17 from bastelfreak/cache
Add official ubuntu support
Diffstat (limited to 'spec/classes')
-rw-r--r--spec/classes/ferm_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/classes/ferm_spec.rb b/spec/classes/ferm_spec.rb
index e039c14..0f9f854 100644
--- a/spec/classes/ferm_spec.rb
+++ b/spec/classes/ferm_spec.rb
@@ -31,14 +31,22 @@ describe 'ferm' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_service('ferm') }
+ if facts[:os]['name'] == 'Ubuntu'
+ it { is_expected.to contain_file_line('enable_ferm') }
+ it { is_expected.to contain_file_line('disable_ferm_cache') }
+ end
end
context 'with managed configfile' do
let :params do
{ manage_configfile: true }
end
+ if facts[:os]['name'] == 'Ubuntu'
+ it { is_expected.to contain_concat('/etc/ferm/ferm.conf') }
+ else
+ it { is_expected.to contain_concat('/etc/ferm.conf') }
+ end
it { is_expected.to compile.with_all_deps }
- it { is_expected.to contain_concat('/etc/ferm.conf') }
it { is_expected.to contain_concat__fragment('ferm_header.conf') }
it { is_expected.to contain_concat__fragment('ferm.conf') }
end