openssh-formula/test/integration/default/serverspec/openssl_server_spec.rb

18 lines
279 B
Ruby
Raw Normal View History

2017-02-23 22:04:27 +01:00
require 'serverspec'
set :backend, :exec
def service_name()
return case os[:family]
when 'redhat' then 'sshd'
when 'debian', 'ubuntu' then 'ssh'
end
end
describe 'openssl/config.sls' do
describe service(service_name()) do
it { should be_running }
end
end