mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-08-01 11:45:42 +02:00
Add test-kitchen configuration
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user