feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / api / controls / services_spec.rb
index 26d004ccf000a6c1ecb8fc4c011a8e1baef093f5..83b23eb6d70e81ac8c37f8d566bdcf5fd9433cec 100644 (file)
@@ -10,7 +10,16 @@ control 'arvados api service' do
   end
 
   describe port(8004) 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