aboutsummaryrefslogtreecommitdiff
path: root/spec/defines/ipset_spec.rb
blob: 050e5efa2581648c99474563d79f5269ed057b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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