docs(single_host): fix hostnames and tests
[arvados-formula.git] / test / integration / workbench / controls / config_spec.rb
index ddcb550a006ff7db3dfb0cdc51a477ca69e26282..9a14383d7ed27d0210a804993e7ecb316cdf8b97 100644 (file)
@@ -2,7 +2,7 @@
 
 workbench_config = <<-WORKBENCH_STANZA
     Workbench:
-      SecretKeyBase: "changeme_workbench_secret_key"
+      SecretKeyBase: "changemeworkbenchsecretkey"
       SiteName: FIXME
 WORKBENCH_STANZA
 
@@ -11,13 +11,20 @@ workbench_service = <<-WORKBENCH_SERVICE_STANZA
         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(