Skip to content

Commit

Permalink
test(managed): get tests working for Fedora as well
Browse files Browse the repository at this point in the history
* Completes #23
  • Loading branch information
myii committed Jun 26, 2019
1 parent ecda7e6 commit 7332d4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/integration/controls/managed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

cert_dir = '/etc/ssl/certs/'
key_dir = '/etc/ssl/private/'
if os.family == 'debian'
case os[:name]
when 'debian', 'ubuntu'
cert_dir = '/usr/local/share/ca-certificates/'
elsif os.family == 'redhat'
when 'redhat', 'centos', 'fedora'
cert_dir = '/etc/pki/tls/certs/'
key_dir = '/etc/pki/tls/private/'
end
Expand Down Expand Up @@ -56,4 +57,4 @@
its('content') { should_not match /^3MOCKED CERT AND KEY/ }
end
end
end
end

0 comments on commit 7332d4b

Please sign in to comment.