File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 18
18
# el5.x
19
19
$ipmi_package = [' OpenIPMI' , ' OpenIPMI-tools' ]
20
20
}
21
- 6: {
21
+ 6, 7 : {
22
22
# el6.x
23
23
$ipmi_package = [' OpenIPMI' , ' ipmitool' ]
24
24
}
Original file line number Diff line number Diff line change 22
22
23
23
describe 'el6.x' do
24
24
before { facts [ :operatingsystemmajrelease ] = '6' }
25
+
26
+ it { should include_class ( 'ipmi::install' ) }
27
+ it { should contain_package ( 'OpenIPMI' ) . with_ensure ( 'present' ) }
28
+ it { should contain_package ( 'ipmitool' ) . with_ensure ( 'present' ) }
29
+ end
30
+
31
+ describe 'el7.x' do
32
+ before { facts [ :operatingsystemmajrelease ] = '7' }
25
33
26
34
it { should include_class ( 'ipmi::install' ) }
27
35
it { should contain_package ( 'OpenIPMI' ) . with_ensure ( 'present' ) }
Original file line number Diff line number Diff line change 16
16
it { should include_class ( 'ipmi::params' ) }
17
17
end
18
18
19
- describe 'unsupported operatingsystemmajrelease ' do
19
+ describe 'el7.x ' do
20
20
before { facts [ :operatingsystemmajrelease ] = '7' }
21
21
22
+ it { should include_class ( 'ipmi::params' ) }
23
+ end
24
+
25
+ describe 'unsupported operatingsystemmajrelease' do
26
+ before { facts [ :operatingsystemmajrelease ] = '1' }
27
+
22
28
it 'should fail' do
23
29
expect { should include_class ( 'ipmi::params' ) } .
24
- to raise_error ( Puppet ::Error , /not supported on operatingsystemmajrelease 7 / )
30
+ to raise_error ( Puppet ::Error , /not supported on operatingsystemmajrelease 1 / )
25
31
end
26
32
end
27
33
end
You can’t perform that action at this time.
0 commit comments