Sha256: e71ad785f88a49e87925e0c1f5a1fc77e89379cd681d158a77df635349a746df

Contents?: true

Size: 1.03 KB

Versions: 13

Compression:

Stored size: 1.03 KB

Contents

require 'spec_helper_system'

describe "firewall class:" do
  context 'should run successfully' do
    pp = "class { 'firewall': }"

    context puppet_apply(pp) do
      its(:stderr) { should be_empty }
      its(:exit_code) { should_not == 1 }
      its(:refresh) { should be_nil }
      its(:stderr) { should be_empty }
      its(:exit_code) { should be_zero }
    end
  end

  context 'ensure => stopped:' do
    pp = "class { 'firewall': ensure => stopped }"

    context puppet_apply(pp) do
      its(:stderr) { should be_empty }
      its(:exit_code) { should_not == 1 }
      its(:refresh) { should be_nil }
      its(:stderr) { should be_empty }
      its(:exit_code) { should be_zero }
    end
  end

  context 'ensure => running:' do
    pp = "class { 'firewall': ensure => running }"

    context puppet_apply(pp) do |r|
      its(:stderr) { should be_empty }
      its(:exit_code) { should_not == 1 }
      its(:refresh) { should be_nil }
      its(:stderr) { should be_empty }
      its(:exit_code) { should be_zero }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
freighthop-0.3.3 modules/firewall/spec/system/class_spec.rb
freighthop-0.3.2 modules/firewall/spec/system/class_spec.rb
freighthop-0.3.1 modules/firewall/spec/system/class_spec.rb
freighthop-0.3.0 modules/firewall/spec/system/class_spec.rb
freighthop-0.2.1 modules/firewall/spec/system/class_spec.rb
freighthop-0.2.0 modules/firewall/spec/system/class_spec.rb
freighthop-0.1.0 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.6 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.5 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.4 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.3 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.2 modules/firewall/spec/system/class_spec.rb
freighthop-0.0.1 modules/firewall/spec/system/class_spec.rb