docs(single_host): fix hostnames and tests
[arvados-formula.git] / test / integration / websocket / controls / config_spec.rb
index e4a4779b7c643ef33ee5db00363d348b69013b0c..d5289c9c1788c5a87c8b8f3dd2f0f25a00728d25 100644 (file)
@@ -4,9 +4,16 @@ websocket_stanza = <<-WEBSOCKET_STANZA
       Websocket:
         ExternalURL: wss://ws.fixme.example.net/websocket
         InternalURLs:
-          http://127.0.0.2:8005: {}
+          http://ws.internal:8005: {}
 WEBSOCKET_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired websocket lines'
 
@@ -14,7 +21,7 @@ control 'arvados configuration' do
     it { should be_file }
     it { should be_owned_by 'root' }
     # We're testing it in the API instance, so group will be nginx's
-    it { should be_grouped_into 'www-data' }
+    it { should be_grouped_into group }
     its('mode') { should cmp '0640' }
     its('content') do
       should include(