apache-formula/test/integration/default/controls/packages_spec.rb
2020-07-19 09:26:39 -03:00

21 lines
380 B
Ruby

# frozen_string_literal: true
control 'apache package' do
title 'should be installed'
package_name =
case platform[:family]
when 'debian', 'suse'
'apache2'
when 'redhat', 'fedora'
'httpd'
# `linux` here is sufficient for `arch`
when 'linux'
'apache'
end
describe package(package_name) do
it { should be_installed }
end
end