006d96f706297bf92821a2b55db3eb6b0d50147a
[arvados-formula.git] / test / integration / workbench / controls / services_spec.rb
1 # frozen_string_literal: true
2
3 control 'arvados workbench service' do
4   impact 0.5
5   title 'should be running and enabled'
6
7   describe systemd_service('nginx') do
8     it { should be_enabled }
9     it { should be_running }
10   end
11
12   describe port(9000) do
13     proc = case os[:name]
14            when 'centos'
15              # Centos ps adds an extra colon and the end of the process
16              # probably a bug
17              'nginx:'
18            when 'debian', 'ubuntu'
19              'nginx'
20            end
21
22     it { should be_listening }
23     its('processes') { should cmp proc }
24   end
25 end