feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / workbench / controls / config_spec.rb
index ddcb550a006ff7db3dfb0cdc51a477ca69e26282..f8be4d469870425ba9cbf97bbbccf0b8f96c3bea 100644 (file)
@@ -11,13 +11,20 @@ workbench_service = <<-WORKBENCH_SERVICE_STANZA
         ExternalURL: https://workbench.fixme.example.net
 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' }
 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(
     its('mode') { should cmp '0640' }
     its('content') do
       should include(