diff options
author | Tim Meusel <tim@bastelfreak.de> | 2021-06-28 14:45:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 14:45:25 +0200 |
commit | 01643c2e5cf2c538009f397e680e9e2d266b311b (patch) | |
tree | 00e325b014d5003d86ff3d59471f9204fd994b30 /spec/classes/ferm_spec.rb | |
parent | c8fb22e2b9aae860917bf81e908ce6aa8183ee2c (diff) | |
parent | d9d89ccd128137afaab85f751547b84e559b4744 (diff) | |
download | puppet-ferm-01643c2e5cf2c538009f397e680e9e2d266b311b.tar.gz puppet-ferm-01643c2e5cf2c538009f397e680e9e2d266b311b.tar.bz2 |
Merge pull request #127 from rehanone/support-for-opensuse
Add support for opensuse
Diffstat (limited to 'spec/classes/ferm_spec.rb')
-rw-r--r-- | spec/classes/ferm_spec.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/classes/ferm_spec.rb b/spec/classes/ferm_spec.rb index 4ae75eb..e8afa73 100644 --- a/spec/classes/ferm_spec.rb +++ b/spec/classes/ferm_spec.rb @@ -16,7 +16,6 @@ describe 'ferm' do it { is_expected.to contain_class('ferm::config') } it { is_expected.to contain_class('ferm::service') } it { is_expected.to contain_class('ferm::install') } - it { is_expected.to contain_package('ferm').with_ensure('latest') } if facts[:os]['name'] == 'Debian' it { is_expected.to contain_file('/etc/ferm/ferm.d') } it { is_expected.to contain_file('/etc/ferm/ferm.d/definitions') } @@ -26,6 +25,13 @@ describe 'ferm' do it { is_expected.to contain_file('/etc/ferm.d/definitions') } it { is_expected.to contain_file('/etc/ferm.d/chains') } end + if facts[:os]['name'] == 'SLES' + it { is_expected.to contain_package('ferm').with_ensure('absent') } + it { is_expected.to contain_vcsrepo('/opt/ferm') } + else + it { is_expected.to contain_package('ferm').with_ensure('latest') } + it { is_expected.not_to contain_vcsrepo('/opt/ferm') } + end it { is_expected.not_to contain_service('ferm') } it { is_expected.not_to contain_file('/etc/ferm.conf') } @@ -193,6 +199,9 @@ describe 'ferm' do it { is_expected.to contain_package('perl').with_ensure('present') } it { is_expected.to contain_package('make').with_ensure('present') } it { is_expected.to contain_package('ferm').with_ensure('absent') } + it { is_expected.to contain_exec('make install') } + it { is_expected.to contain_file('/etc/ferm') } + it { is_expected.to contain_vcsrepo('/opt/ferm') } end end end |