feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / workbench / controls / services_spec.rb
index 15ae30f550a15631636d5019e01c02c7a3f35fa8..006d96f706297bf92821a2b55db3eb6b0d50147a 100644 (file)
@@ -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