Skip to content

Commit 7332d4b

Browse files
committed
test(managed): get tests working for Fedora as well
* Completes #23
1 parent ecda7e6 commit 7332d4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/controls/managed.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
cert_dir = '/etc/ssl/certs/'
77
key_dir = '/etc/ssl/private/'
8-
if os.family == 'debian'
8+
case os[:name]
9+
when 'debian', 'ubuntu'
910
cert_dir = '/usr/local/share/ca-certificates/'
10-
elsif os.family == 'redhat'
11+
when 'redhat', 'centos', 'fedora'
1112
cert_dir = '/etc/pki/tls/certs/'
1213
key_dir = '/etc/pki/tls/private/'
1314
end
@@ -56,4 +57,4 @@
5657
its('content') { should_not match /^3MOCKED CERT AND KEY/ }
5758
end
5859
end
59-
end
60+
end

0 commit comments

Comments
 (0)