diff options
author | Tim Meusel <tim@bastelfreak.de> | 2019-05-30 18:24:06 +0200 |
---|---|---|
committer | Tim Meusel <tim@bastelfreak.de> | 2019-07-11 10:38:41 +0200 |
commit | e3da2ce3255f1833dcd194370cb99b4d5c9448c9 (patch) | |
tree | c6e96bbf1367fd23b3ee05dcb3974e16896601c3 /spec/defines | |
parent | 92bfbfed2e47ef3ff857623c5c5accda42dbf195 (diff) | |
download | puppet-ferm-e3da2ce3255f1833dcd194370cb99b4d5c9448c9.tar.gz puppet-ferm-e3da2ce3255f1833dcd194370cb99b4d5c9448c9.tar.bz2 |
enhance unit tests
Diffstat (limited to 'spec/defines')
-rw-r--r-- | spec/defines/rule_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/defines/rule_spec.rb b/spec/defines/rule_spec.rb index 0926432..0473970 100644 --- a/spec/defines/rule_spec.rb +++ b/spec/defines/rule_spec.rb @@ -19,7 +19,7 @@ describe 'ferm::rule', type: :define do context 'default params create simple rule' do it { is_expected.to compile.with_all_deps } - # it { is_expected.to contain_concat__fragment('INPUT-filter-ssh').with_content("proto tcp dport ssh saddr @ipfilter(127.0.0.1) ACCEPT;") } + it { is_expected.to contain_concat__fragment('INPUT-filter-ssh').with_content("mod comment comment 'filter-ssh' proto tcp dport 22 saddr @ipfilter(127.0.0.1) ACCEPT;\n") } it { is_expected.to contain_concat__fragment('INPUT-filter-ssh') } end end |