Merge pull request #174 from myii/test/prevent-package-control-for-bsd

test(packages_spec): prevent control for `bsd` family
This commit is contained in:
Imran Iqbal 2020-02-07 13:56:57 +00:00 committed by GitHub
commit 554633d7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,19 @@
# Overide by Platform # Overide by Platform
package_name = 'openssh-server' package_name =
if platform[:family] == 'suse' case platform[:family]
package_name = 'openssh' when 'suse'
end 'openssh'
else
'openssh-server'
end
control 'openssh package' do control 'openssh package' do
title 'should be installed' title 'should be installed'
only_if do
platform.family != 'bsd'
end
describe package(package_name) do describe package(package_name) do
it { should be_installed } it { should be_installed }
end end