From 2ad24f81b4256791f770eeee1345496040159fda 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..e0841cda 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..d75858b0 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..f8cb1e5c 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' + when facts[:os]['release']['major'] + case '8'|'9' '/etc/openvpn/server' else '/etc/openvpn'