Sha256: 3597f5801f84c151f32afcfd67f9e00329c88658dc772132effb44df481d5beb

Contents?: true

Size: 795 Bytes

Versions: 20

Compression:

Stored size: 795 Bytes

Contents

require 'spec_helper'

describe 'firewall::linux', :type => :class do
  let(:facts_default) {{ :kernel => 'Linux' }}
  it { should contain_package('iptables').with_ensure('present') }

  context 'RedHat like' do
    %w{RedHat CentOS Fedora}.each do |os|
      context "operatingsystem => #{os}" do
        let(:facts) { facts_default.merge({ :operatingsystem => os }) }
        it { should contain_class('firewall::linux::redhat').with_require('Package[iptables]') }
      end
    end
  end

  context 'Debian like' do
    %w{Debian Ubuntu}.each do |os|
      context "operatingsystem => #{os}" do
        let(:facts) { facts_default.merge({ :operatingsystem => os }) }
        it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.6.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.5.2 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.5.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.5.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.4.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.4.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.3.3 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.3.2 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.3.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.3.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.2.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.2.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.1.0 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.6 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.5 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.4 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.3 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.2 modules/firewall/spec/unit/classes/firewall_linux_spec.rb
freighthop-0.0.1 modules/firewall/spec/unit/classes/firewall_linux_spec.rb