17750: fix style (linters suggestions) [ci skip]
[arvados-formula.git] / test / integration / api / controls / services_spec.rb
1 # frozen_string_literal: true
2
3 control 'arvados api service' do
4   impact 0.5
5   title 'should be running and enabled'
6
7   describe service('nginx') do
8     it { should be_enabled }
9     it { should be_running }
10   end
11
12   describe port(8004) 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