0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2024-12-11 19:14:49 +01:00
openssh-formula/test/integration/default/controls/packages_spec.rb
Imran Iqbal fe1af098b3
test(packages_spec): prevent control for bsd family
* Refactor `package_name` using `case` like other formulas
2020-02-07 12:49:47 +00:00

21 lines
311 B
Ruby

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