diff --git a/metadata.json b/metadata.json index 4cb0330d0..ad42bef87 100644 --- a/metadata.json +++ b/metadata.json @@ -26,7 +26,8 @@ "operatingsystem": "CentOS", "operatingsystemrelease": [ "7", - "8" + "8", + "9" ] }, { diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb index f0000b782..31d599f4b 100644 --- a/spec/spec_helper_acceptance_local.rb +++ b/spec/spec_helper_acceptance_local.rb @@ -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 @@ -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