Skip to content

Commit

Permalink
add specialcasing for centos 9 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Jun 9, 2024
1 parent c8929c0 commit bc67ef0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/defines/openvpn_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion spec/defines/openvpn_client_specific_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion spec/defines/openvpn_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit bc67ef0

Please sign in to comment.