File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 378
378
' 9' => ' 7.0' , # Debian Stretch
379
379
' 10' => ' 7.3' , # Debian Buster
380
380
' 11' => ' 7.4' , # Debian Bullseye
381
+ ' 12' => ' 8.2' , # Debian Bookworm
381
382
' 20.04' => ' 7.4' , # Ubuntu Foccal Fossal
382
383
' 22.04' => ' 8.1' , # Ubuntu Jammy
383
384
default => ' 7.2' , # Ubuntu Bionic, Cosmic and Disco
Original file line number Diff line number Diff line change 49
49
"operatingsystem" : " Debian" ,
50
50
"operatingsystemrelease" : [
51
51
" 10" ,
52
- " 11"
52
+ " 11" ,
53
+ " 12"
53
54
]
54
55
},
55
56
{
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ class { 'apache::mod::php': }
36
36
describe file ( "#{ apache_hash [ 'mod_dir' ] } /php7.4.conf" ) do
37
37
it { is_expected . to contain 'DirectoryIndex index.php' }
38
38
end
39
+ elsif os [ :family ] == 'debian' && os [ :release ] =~ %r{^12\. }
40
+ describe file ( "#{ apache_hash [ 'mod_dir' ] } /php8.2.conf" ) do
41
+ it { is_expected . to contain 'DirectoryIndex index.php' }
42
+ end
39
43
elsif os [ :family ] == 'ubuntu' && os [ :release ] == '18.04'
40
44
describe file ( "#{ apache_hash [ 'mod_dir' ] } /php7.2.conf" ) do
41
45
it { is_expected . to contain 'DirectoryIndex index.php' }
Original file line number Diff line number Diff line change 84
84
}
85
85
end
86
86
end
87
+ when '12'
88
+ context 'on bookworm' do
89
+ it { is_expected . to contain_apache__mod ( 'php8.2' ) }
90
+ it { is_expected . to contain_package ( 'libapache2-mod-php8.2' ) }
91
+
92
+ it {
93
+ expect ( subject ) . to contain_file ( 'php8.2.load' ) . with (
94
+ content : "LoadModule php8_module /usr/lib/apache2/modules/libphp8.2.so\n " ,
95
+ )
96
+ }
97
+ end
87
98
when '18.04'
88
99
context 'on bionic' do
89
100
let :params do
You can’t perform that action at this time.
0 commit comments