diff --git a/.kitchen.yml b/.kitchen.yml index 901710f..51f612e 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -8,6 +8,12 @@ platforms: - name: ubuntu-14.04 - name: ubuntu-16.04 - name: debian-8.5 + - name: freebsd-10.3 + driver: + cache_directory: false + - name: freebsd-11.0 + driver: + cache_directory: false provisioner: name: salt_solo diff --git a/test/integration/default/serverspec/openssl_server_spec.rb b/test/integration/default/serverspec/openssl_server_spec.rb index 944b10b..62bef04 100644 --- a/test/integration/default/serverspec/openssl_server_spec.rb +++ b/test/integration/default/serverspec/openssl_server_spec.rb @@ -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