File tree 1 file changed +1
-17
lines changed 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 21
21
end
22
22
23
23
case facts [ :os ] [ 'release' ] [ 'major' ]
24
- when '9'
25
- context 'on stretch' do
26
- it { is_expected . to contain_apache__mod ( 'php7.0' ) }
27
- it { is_expected . to contain_package ( 'libapache2-mod-php7.0' ) }
28
-
29
- it {
30
- expect ( subject ) . to contain_file ( 'php7.0.load' ) . with (
31
- content : "LoadModule php7_module /usr/lib/apache2/modules/libphp7.0.so\n " ,
32
- )
33
- }
34
- end
35
24
when '10'
36
25
context 'on buster' do
37
26
it { is_expected . to contain_apache__mod ( 'php7.3' ) }
290
279
end
291
280
292
281
# all the following tests are for legacy php/apache versions. They don't work on modern ubuntu and redhat 8
293
- next if ( facts [ :os ] [ 'release' ] [ 'major' ] . to_i >= 15 && facts [ :os ] [ 'name' ] == 'SLES' ) ||
294
- ( facts [ :os ] [ 'family' ] == 'Debian' ) ||
295
- ( facts [ :os ] [ 'release' ] [ 'major' ] . to_i >= 8 && ( facts [ :os ] [ 'name' ] == 'RedHat' || facts [ :os ] [ 'name' ] == 'CentOS' ||
296
- facts [ :os ] [ 'name' ] == 'Rocky' || facts [ :os ] [ 'name' ] == 'AlmaLinux' ) )
297
-
298
- describe 'OS independent tests' do
282
+ describe 'OS independent tests' , unless : ( facts [ :os ] [ 'family' ] in [ 'Debian' , 'RedHat' ] ) || ( facts [ :os ] [ 'release' ] [ 'major' ] . to_i >= 15 && facts [ :os ] [ 'name' ] == 'SLES' ) do
299
283
context 'with content param' do
300
284
let :params do
301
285
{ content : 'somecontent' }
You can’t perform that action at this time.
0 commit comments