Added puppetlabs-firewall (required by puppetlabs-postgresql), updated the other modules.
This commit is contained in:
parent
5f4b7a3b72
commit
dee66abcdd
137 changed files with 11118 additions and 419 deletions
25
modules/firewall/spec/unit/classes/firewall_spec.rb
Normal file
25
modules/firewall/spec/unit/classes/firewall_spec.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'firewall', :type => :class do
|
||||
context 'kernel => Linux' do
|
||||
let(:facts) {{ :kernel => 'Linux' }}
|
||||
it { should contain_class('firewall::linux').with_ensure('running') }
|
||||
end
|
||||
|
||||
context 'kernel => Windows' do
|
||||
let(:facts) {{ :kernel => 'Windows' }}
|
||||
it { expect { should contain_class('firewall::linux') }.to raise_error(Puppet::Error) }
|
||||
end
|
||||
|
||||
context 'ensure => stopped' do
|
||||
let(:facts) {{ :kernel => 'Linux' }}
|
||||
let(:params) {{ :ensure => 'stopped' }}
|
||||
it { should contain_class('firewall::linux').with_ensure('stopped') }
|
||||
end
|
||||
|
||||
context 'ensure => test' do
|
||||
let(:facts) {{ :kernel => 'Linux' }}
|
||||
let(:params) {{ :ensure => 'test' }}
|
||||
it { expect { should contain_class('firewall::linux') }.to raise_error(Puppet::Error) }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue