mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-07-31 16:15:39 +02:00
Add kitchen tests for FreeBSD
This commit is contained in:
@@ -3,8 +3,15 @@ set :backend, :exec
|
||||
|
||||
def service_name()
|
||||
return case os[:family]
|
||||
when 'redhat' then 'sshd'
|
||||
when 'debian', 'ubuntu' then 'ssh'
|
||||
else 'sshd'
|
||||
end
|
||||
end
|
||||
|
||||
def root_group()
|
||||
return case os[:family]
|
||||
when 'freebsd' then 'wheel'
|
||||
else 'root'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,13 +24,13 @@ describe 'openssl/config.sls' do
|
||||
describe file('/etc/ssh/sshd_config') do
|
||||
it { should be_mode 600 }
|
||||
it { should be_owned_by 'root' }
|
||||
it { should be_grouped_into 'root' }
|
||||
it { should be_grouped_into root_group() }
|
||||
end
|
||||
|
||||
describe file('/etc/ssh/ssh_config') do
|
||||
it { should be_mode 644 }
|
||||
it { should be_owned_by 'root' }
|
||||
it { should be_grouped_into 'root' }
|
||||
it { should be_grouped_into root_group() }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user