Skip to content

Commit

Permalink
(IAC-1758) Update tests for Rocky
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Sep 29, 2021
1 parent 1811414 commit 07c6892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/mod/fastcgi_spec.rb
Expand Up @@ -17,7 +17,7 @@
it { is_expected.to contain_apache__mod('fastcgi') }
it { is_expected.to contain_package('libapache2-mod-fastcgi') }
it { is_expected.to contain_file('fastcgi.conf') }
when 'RedHat', 'CentOS', 'OracleLinux', 'Scientific'
when 'RedHat', 'CentOS', 'OracleLinux', 'Scientific', 'Rocky'
if facts[:os]['release']['major'].to_i < 7
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('apache::params') }
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/mod/php_spec.rb
Expand Up @@ -234,7 +234,8 @@
next if (facts[:os]['release']['major'].to_i > 15 && facts[:os]['name'] == 'Ubuntu') ||
(facts[:os]['release']['major'].to_i >= 15 && facts[:os]['name'] == 'SLES') ||
(facts[:os]['release']['major'].to_i >= 9 && facts[:os]['name'] == 'Debian') ||
(facts[:os]['release']['major'].to_i >= 8 && (facts[:os]['name'] == 'RedHat' || facts[:os]['name'] == 'CentOS'))
(facts[:os]['release']['major'].to_i >= 8 && (facts[:os]['name'] == 'RedHat' || facts[:os]['name'] == 'CentOS' ||
facts[:os]['name'] == 'Rocky'))

describe 'OS independent tests' do
context 'with content param' do
Expand Down

0 comments on commit 07c6892

Please sign in to comment.