nginx-formula/test/integration/passenger/controls/install.rb
Javier Bértoli 7271c9d16c fix(passenger): various fixes
* correctly set dependencies in configuration
* update RPM repo key
* add tests for passenger installation as nginx module
* update test matrix
2021-03-11 13:35:24 -03:00

29 lines
684 B
Ruby

# frozen_string_literal: true
control 'Nginx package' do
title 'should be installed'
describe package('nginx') do
it { should be_installed }
end
end
control 'Passenger packages' do
title 'should be installed'
# Override by OS Family
passenger_mod_pkg = case platform[:family]
when 'redhat', 'centos', 'fedora'
'nginx-mod-http-passenger'
when 'debian', 'ubuntu'
'libnginx-mod-http-passenger'
end
describe package('passenger') do
it { should be_installed }
end
describe package(passenger_mod_pkg) do
it { should be_installed }
end
end