docs(single_host): fix hostnames and tests
[arvados-formula.git] / test / integration / workbench / controls / config_spec.rb
index 7a2de621c3cd370775933cc8c151d13805cc6bcf..9a14383d7ed27d0210a804993e7ecb316cdf8b97 100644 (file)
@@ -2,22 +2,29 @@
 
 workbench_config = <<-WORKBENCH_STANZA
     Workbench:
-      SecretKeyBase: changeme_workbench_secret_key
-      SiteName:  FIXME
+      SecretKeyBase: "changemeworkbenchsecretkey"
+      SiteName: FIXME
 WORKBENCH_STANZA
 
 workbench_service = <<-WORKBENCH_SERVICE_STANZA
       Workbench1:
-        ExternalURL: "https://workbench.example.net"
+        ExternalURL: https://workbench.fixme.example.net
 WORKBENCH_SERVICE_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired workbench lines'
 
   describe file('/etc/arvados/config.yml') do
     it { should be_file }
     it { should be_owned_by 'root' }
-    it { should be_grouped_into 'www-data' }
+    it { should be_grouped_into group }
     its('mode') { should cmp '0640' }
     its('content') do
       should include(