3 describe 'archive::staging' do
4 context 'RHEL Puppet opensource' do
5 let(:facts) { { os: { family: 'RedHat' }, puppetversion: '4.4.0' } }
7 it { is_expected.to contain_class 'archive' }
9 is_expected.to contain_file('/opt/staging').with(
17 context 'RHEL Puppet opensource with params' do
18 let(:facts) { { os: { family: 'RedHat' }, puppetversion: '4.4.0' } }
29 it { is_expected.to contain_class 'archive' }
31 is_expected.to contain_file('/tmp/staging').with(
39 context 'Windows Puppet Enterprise' do
42 os: { family: 'Windows' },
43 puppetversion: '3.4.3 (Puppet Enterprise 3.2.3)',
44 archive_windir: 'C:/Windows/Temp/staging'
48 it { is_expected.to contain_class 'archive' }
50 is_expected.to contain_file('C:/Windows/Temp/staging').with(
51 owner: 'S-1-5-32-544',