Sha256: 476601d9b1d03c5f4d28f8267a947650b61b0bf32abda72cb79d48d48da88506
Contents?: true
Size: 804 Bytes
Versions: 7
Compression:
Stored size: 804 Bytes
Contents
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
Version data entries
7 entries across 7 versions & 1 rubygems