aboutsummaryrefslogtreecommitdiff
path: root/spec/defines/ipset_spec.rb
blob: 88ef5c3fbb474672f8cfba93da80746ee50fa094 (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
30
31
# frozen_string_literal: true

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