Sha256: d3df1b816d2de672c636b2107af98f8cb6b8415674e5dee01d60741fa5101134

Contents?: true

Size: 802 Bytes

Versions: 20

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe 'firewall::linux::archlinux', :type => :class do
  it { should contain_service('iptables').with(
    :ensure   => 'running',
    :enable   => 'true'
  )}
  it { should contain_service('ip6tables').with(
    :ensure   => 'running',
    :enable   => 'true'
  )}

  context 'ensure => stopped' do
    let(:params) {{ :ensure => 'stopped' }}
    it { should contain_service('iptables').with(
      :ensure   => 'stopped'
    )}
    it { should contain_service('ip6tables').with(
      :ensure   => 'stopped'
    )}
  end

  context 'enable => false' do
    let(:params) {{ :enable => 'false' }}
    it { should contain_service('iptables').with(
      :enable   => 'false'
    )}
    it { should contain_service('ip6tables').with(
      :enable   => 'false'
    )}
  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_archlinux_spec.rb
freighthop-0.6.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.5.2 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.5.1 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.5.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.4.1 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.4.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.3.3 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.3.2 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.3.1 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.3.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.2.1 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.2.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.1.0 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.6 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.5 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.4 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.3 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.2 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb
freighthop-0.0.1 modules/firewall/spec/unit/classes/firewall_linux_archlinux_spec.rb