Sha256: 214b9469c6be3e1a8dd38677b44cc20ccfb9589924dcdd76526e2701e274f183

Contents?: true

Size: 505 Bytes

Versions: 20

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe 'firewall::linux::debian', :type => :class do
  it { should contain_package('iptables-persistent').with(
    :ensure => 'present'
  )}
  it { should contain_service('iptables-persistent').with(
    :ensure   => nil,
    :enable   => 'true',
    :require  => 'Package[iptables-persistent]'
  )}

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