File tree 4 files changed +36
-9
lines changed 4 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 31
31
- debian-12
32
32
- fedora-latest
33
33
- opensuse-leap-15
34
+ - oraclelinux-8
35
+ - oraclelinux-9
34
36
- rockylinux-8
35
37
- rockylinux-9
36
38
- ubuntu-2004
@@ -39,16 +41,16 @@ jobs:
39
41
- basic-site
40
42
- default
41
43
- mod-auth-cas
42
- - mod- php
44
+ - php
43
45
- module-template
44
46
- mod-wsgi
45
47
- ports
46
48
- ssl
47
49
- install-override
48
50
exclude :
51
+ # TODO: disabled due to https://github.com/chef/chef/pull/13691
49
52
- os : amazonlinux-2023
50
53
suite : mod-wsgi
51
- # TODO: disabled due to https://github.com/chef/chef/pull/13691
52
54
- os : opensuse-leap-15
53
55
suite : mod-wsgi
54
56
steps :
Original file line number Diff line number Diff line change @@ -16,17 +16,18 @@ platforms:
16
16
- name : almalinux-8
17
17
- name : almalinux-9
18
18
- name : amazonlinux-2023
19
- - name : centos-stream-8
20
19
- name : centos-stream-9
21
- - name : debian-10
22
20
- name : debian-11
23
21
- name : debian-12
22
+ - name : fedora-latest
24
23
- name : opensuse-leap-15
24
+ - name : oraclelinux-8
25
+ - name : oraclelinux-9
25
26
- name : rockylinux-8
26
27
- name : rockylinux-9
27
- - name : ubuntu-18.04
28
28
- name : ubuntu-20.04
29
29
- name : ubuntu-22.04
30
+ - name : ubuntu-24.04
30
31
31
32
suites :
32
33
- name : default
@@ -47,7 +48,7 @@ suites:
47
48
- name : module_template
48
49
run_list :
49
50
- recipe[test::module_template]
50
- - name : mod_php
51
+ - name : php
51
52
run_list :
52
53
- recipe[test::php]
53
54
- name : mod_wsgi
Original file line number Diff line number Diff line change 6
6
impact 1
7
7
desc 'php module should be enabled with config'
8
8
9
- describe command ( 'apachectl -M' ) do
10
- its ( 'stdout' ) { should match ( /php/ ) }
9
+ if os [ 'family' ] == 'redhat' && os [ 'release' ] . to_i >= 9
10
+ describe command ( 'httpd -M' ) do
11
+ its ( 'stdout' ) { should match ( /proxy_fcgi/ ) }
12
+ end
13
+ else
14
+ describe command ( 'apachectl -M' ) do
15
+ its ( 'stdout' ) { should match ( /php/ ) }
16
+ end
11
17
end
12
18
13
19
case os [ 'family' ]
21
27
it { should exist }
22
28
its ( 'content' ) { should match %r{SetHandler application/x-httpd-php} }
23
29
end
30
+ when 'redhat'
31
+ if os [ 'release' ] . to_i >= 9
32
+ describe service ( 'php-fpm' ) do
33
+ it { should be_installed }
34
+ it { should be_enabled }
35
+ it { should be_running }
36
+ end
37
+
38
+ describe file ( '/etc/httpd/conf-available/custom_php_pool.conf' ) do
39
+ it { should exist }
40
+ its ( 'content' ) { should match %r{proxy:unix:/var/run/php.*-fpm.sock|fcgi://localhost} }
41
+ end
42
+ else
43
+ describe file ( '/etc/httpd/mods-available/php.conf' ) do
44
+ it { should exist }
45
+ its ( 'content' ) { should match %r{SetHandler application/x-httpd-php} }
46
+ end
47
+ end
24
48
else
25
49
describe file ( '/etc/httpd/mods-available/php.conf' ) do
26
50
it { should exist }
Original file line number Diff line number Diff line change 1
1
---
2
- name : apache2-mod- php
2
+ name : apache2-php
3
3
title : Integration tests for apache2 cookbook
4
4
summary : This InSpec profile contains integration tests for apache2 cookbook
5
5
supports :
You can’t perform that action at this time.
0 commit comments