X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/86ea398742e99ab5942705b342b0f0ac7bdef41d..ba5e37ebc18049d4340388fc0c19dcb2a78d6a86:/test/integration/workbench/controls/services_spec.rb diff --git a/test/integration/workbench/controls/services_spec.rb b/test/integration/workbench/controls/services_spec.rb index 15ae30f..006d96f 100644 --- a/test/integration/workbench/controls/services_spec.rb +++ b/test/integration/workbench/controls/services_spec.rb @@ -4,13 +4,22 @@ control 'arvados workbench service' do impact 0.5 title 'should be running and enabled' - describe service('nginx') do + describe systemd_service('nginx') do it { should be_enabled } it { should be_running } end describe port(9000) do + proc = case os[:name] + when 'centos' + # Centos ps adds an extra colon and the end of the process + # probably a bug + 'nginx:' + when 'debian', 'ubuntu' + 'nginx' + end + it { should be_listening } - its('processes') { should include 'nginx' } + its('processes') { should cmp proc } end end