nginx-formula/test/integration/passenger/controls/service.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
755 B
Ruby

# frozen_string_literal: true
control 'Nginx service' do
title 'should be running and enabled'
describe service('nginx') do
it { should be_enabled }
it { should be_running }
end
end
control 'Passenger module' do
title 'should be running and enabled'
describe 'Passenger engine' do
it 'passenger-config should say configuration "looks good"' do
expect(command(
'/usr/bin/passenger-config validate-install --auto'
).stdout).to match(/looks good/)
end
it 'passenger-memory-stats should return Passenger stats' do
expect(command('/usr/sbin/passenger-memory-stats').stdout).to match(
%r{nginx: master process /usr/sbin/nginx.*Passenger watchdog.*Passenger core.*}m
)
end
end
end