apache-formula/test/integration/default/controls/packages_spec.rb

21 lines
380 B
Ruby
Raw Normal View History

# 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