From bc67ef07c963f8a9868d6bca7fe1eb39e2a03eed Mon Sep 17 00:00:00 2001 From: markuszilch Date: Sun, 9 Jun 2024 08:31:00 +0200 Subject: [PATCH] add specialcasing for centos 9 tests --- spec/defines/openvpn_client_spec.rb | 3 ++- spec/defines/openvpn_client_specific_config_spec.rb | 3 ++- spec/defines/openvpn_server_spec.rb | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/spec/defines/openvpn_client_spec.rb b/spec/defines/openvpn_client_spec.rb index 99e6d731..99a48266 100644 --- a/spec/defines/openvpn_client_spec.rb +++ b/spec/defines/openvpn_client_spec.rb @@ -22,7 +22,8 @@ server_directory = case facts[:os]['family'] when 'CentOS', 'RedHat' - if facts[:os]['release']['major'] == '8' + case facts[:os]['release']['major'] + when '8', '9' '/etc/openvpn/server' else '/etc/openvpn' diff --git a/spec/defines/openvpn_client_specific_config_spec.rb b/spec/defines/openvpn_client_specific_config_spec.rb index 93ea09e1..d830f5d2 100644 --- a/spec/defines/openvpn_client_specific_config_spec.rb +++ b/spec/defines/openvpn_client_specific_config_spec.rb @@ -31,7 +31,8 @@ server_directory = case facts[:os]['family'] when 'CentOS', 'RedHat' - if facts[:os]['release']['major'] == '8' + case facts[:os]['release']['major'] + when '8', '9' '/etc/openvpn/server' else '/etc/openvpn' diff --git a/spec/defines/openvpn_server_spec.rb b/spec/defines/openvpn_server_spec.rb index a7fcc539..3a41cb80 100644 --- a/spec/defines/openvpn_server_spec.rb +++ b/spec/defines/openvpn_server_spec.rb @@ -12,7 +12,8 @@ server_directory = case facts[:os]['family'] when 'CentOS', 'RedHat' - if facts[:os]['release']['major'] == '8' + case facts[:os]['release']['major'] + when '8', '9' '/etc/openvpn/server' else '/etc/openvpn'