feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / controller / controls / services_spec.rb
1 # frozen_string_literal: true
2
3 control 'arvados controller service' do
4   impact 0.5
5   title 'should be running and enabled'
6
7   describe service('arvados-controller') do
8     it { should be_enabled }
9     it { should be_running }
10   end
11   describe port(8003) do
12     proc = case os[:name]
13            when 'centos'
14              'arvados-contr'
15            when 'debian', 'ubuntu'
16              'arvados-control'
17            end
18
19     it { should be_listening }
20     # The undelying tools inspec uses to get the process truncates their names
21     its('processes') { should cmp proc }
22   end
23 end