mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 05:38:20 +01:00
18 lines
279 B
Ruby
18 lines
279 B
Ruby
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
|