aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2019-09-30 14:51:12 +0200
committerTim Meusel <tim@bastelfreak.de>2019-10-01 16:27:42 +0200
commitd4b8909eab6194da389b121e46137da7618eb45c (patch)
tree8cfc5af5a35a1557af027d68eccbd9def263dbde /spec
parent5d00a506f896fccb2485ebf3ea316f0156b80f8b (diff)
downloadpuppet-ferm-d4b8909eab6194da389b121e46137da7618eb45c.tar.gz
puppet-ferm-d4b8909eab6194da389b121e46137da7618eb45c.tar.bz2
implement ipset support
Diffstat (limited to 'spec')
-rw-r--r--spec/defines/ipset_spec.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/defines/ipset_spec.rb b/spec/defines/ipset_spec.rb
new file mode 100644
index 0000000..050e5ef
--- /dev/null
+++ b/spec/defines/ipset_spec.rb
@@ -0,0 +1,29 @@
+require 'spec_helper'
+
+describe 'ferm::ipset', type: :define do
+ on_supported_os.each do |os, facts|
+ context "on #{os} " do
+ let :facts do
+ facts
+ end
+ let(:title) { 'INPUT' }
+
+ let :pre_condition do
+ 'include ferm'
+ end
+
+ context 'default params creates INPUT2 chain' do
+ let :params do
+ {
+ sets: {
+ office: 'ACCEPT',
+ internet: 'DROP'
+ }
+ }
+ end
+
+ it { is_expected.to compile.with_all_deps }
+ end
+ end
+ end
+end