feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / api / controls / config_spec.rb
index 7ad922f03b4e93eb9dde5510e32ac70936953550..5d8afc4158db3eedea665c594a4077b34097e3c6 100644 (file)
@@ -11,13 +11,20 @@ rails_stanza = <<-RAILS_STANZA
           http://127.0.0.2:8004: {}
 RAILS_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired api 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(