aboutsummaryrefslogtreecommitdiff
path: root/spec/defines
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2019-09-12 15:01:58 +0200
committerTim Meusel <tim@bastelfreak.de>2019-09-12 22:54:38 +0200
commit221c45769e56ffda0ac82bd035e0ef5f37706836 (patch)
treea28cc8e9d862abac0491b4d2cfd412461567a05c /spec/defines
parent439e71b110e769d8164c4491a6662ac6f2b089db (diff)
downloadpuppet-ferm-221c45769e56ffda0ac82bd035e0ef5f37706836.tar.gz
puppet-ferm-221c45769e56ffda0ac82bd035e0ef5f37706836.tar.bz2
readd Debian 9/10 support
Diffstat (limited to 'spec/defines')
-rw-r--r--spec/defines/chain_spec.rb2
-rw-r--r--spec/defines/rule_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/defines/chain_spec.rb b/spec/defines/chain_spec.rb
index 4a598b3..1a6bb44 100644
--- a/spec/defines/chain_spec.rb
+++ b/spec/defines/chain_spec.rb
@@ -30,7 +30,7 @@ describe 'ferm::chain', type: :define do
is_expected.to contain_concat__fragment('filter-INPUT2-footer'). \
with_content(%r{LOG log-prefix 'INPUT2: ';})
end
- if facts[:os]['release']['major'].to_i == 10
+ if facts[:os]['name'] == 'Debian'
it { is_expected.to contain_concat('/etc/ferm/ferm.d/chains/filter-INPUT2.conf') }
else
it { is_expected.to contain_concat('/etc/ferm.d/chains/filter-INPUT2.conf') }
diff --git a/spec/defines/rule_spec.rb b/spec/defines/rule_spec.rb
index 33ce169..5e4ad69 100644
--- a/spec/defines/rule_spec.rb
+++ b/spec/defines/rule_spec.rb
@@ -161,7 +161,7 @@ describe 'ferm::rule', type: :define do
that_requires('Ferm::Chain[check-ssh]')
end
it { is_expected.to contain_concat__fragment('filter-INPUT-config-include') }
- if facts[:os]['release']['major'].to_i == 10
+ if facts[:os]['name'] == 'Debian'
it { is_expected.to contain_concat('/etc/ferm/ferm.d/chains/filter-SSH.conf') }
else
it { is_expected.to contain_concat('/etc/ferm.d/chains/filter-SSH.conf') }