Skip to content

Commit

Permalink
(CAT-2100) Add Debian 12 support
Browse files Browse the repository at this point in the history
(CAT-2100) Updated specs

(CAT-2100) Fix failing test
  • Loading branch information
skyamgarp committed Nov 18, 2024
1 parent a1545b3 commit 7122fc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11"
"11",
"12"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/mod_php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class { 'apache::mod::php': }
content => "<?php phpinfo(); ?>\\n",
}
MANIFEST

it 'succeeds in puppeting php' do
apply_manifest(pp, catch_failures: true)
end
Expand All @@ -36,7 +37,7 @@ class { 'apache::mod::php': }
describe file("#{apache_hash['mod_dir']}/php7.4.conf") do
it { is_expected.to contain 'DirectoryIndex index.php' }
end
elsif os[:family] == 'debian' && os[:release] =~ %r{^12\.}
elsif os[:family] == 'debian' && os[:release] =~ %r{^12}

Check failure on line 40 in spec/acceptance/mod_php_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Layout/SpaceAroundOperators: Operator `=~` should be surrounded by a single space. (https://rubystyle.guide#spaces-operators)

Check failure on line 40 in spec/acceptance/mod_php_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Layout/ExtraSpacing: Unnecessary spacing detected.

Check failure on line 40 in spec/acceptance/mod_php_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Layout/SpaceAroundOperators: Operator `=~` should be surrounded by a single space. (https://rubystyle.guide#spaces-operators)

Check failure on line 40 in spec/acceptance/mod_php_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Layout/ExtraSpacing: Unnecessary spacing detected.
describe file("#{apache_hash['mod_dir']}/php8.2.conf") do
it { is_expected.to contain 'DirectoryIndex index.php' }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mod/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

it {
expect(subject).to contain_file('php8.2.load').with(
content: "LoadModule php8_module /usr/lib/apache2/modules/libphp8.2.so\n",
content: "LoadModule php_module /usr/lib/apache2/modules/libphp8.2.so\n",
)
}
end
Expand Down

0 comments on commit 7122fc5

Please sign in to comment.