X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/73a0b42b03c3a8c247712ce5e64b7215686e9cef..257615eab47f9d4bf64694dc0aac9dfff4e8edc4:/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 f4e6dd2..e7910c9 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('ssh') do + describe systemd_service('nginx') do it { should be_enabled } it { should be_running } end - describe port(9000) do + describe port(443) 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