Skip to content

(CAT-7110) Add Centos 9 support #1247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def iptables_version
def pre_setup
LitmusHelper.instance.run_shell('mkdir -p /lib/modules/`uname -r`')
LitmusHelper.instance.run_shell('yum install module-init-tools -y') if fetch_os_name == 'rocky'
LitmusHelper.instance.run_shell('dnf install -y kmod') if fetch_os_name == 'centos' && fetch_os_version == '9'
LitmusHelper.instance.run_shell('depmod -a')
end

Expand All @@ -54,6 +55,10 @@ def fetch_os_name
@fetch_os_name ||= LitmusHelper.instance.run_shell('facter os.name').stdout.delete("\n").downcase
end

def fetch_os_version
@fetch_os_name ||= LitmusHelper.instance.run_shell('facter os.release.full').stdout.delete("\n")
end

RSpec.configure do |c|
# This flag is disabling test 'condition' from firewall_attributes_exceptions
# because this test is failing on docker containers, but it's compatible with vmpooler machines
Expand Down
Loading