test(examples): remove workbench upstream in nginx
[arvados-formula.git] / test / integration / workbench / controls / services_spec.rb
index f4e6dd28035824778d07336a7e1b499e1c01be1b..e7910c98dd4bc3c2c37f1e494b0f8e2268ca99e8 100644 (file)
@@ -4,13 +4,22 @@ control 'arvados workbench service' do
   impact 0.5
   title 'should be running and enabled'
 
   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
 
     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 }
     it { should be_listening }
-    its('processes') { should include 'nginx' }
+    its('processes') { should cmp proc }
   end
 end
   end
 end