feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / keepweb / controls / config_spec.rb
index c2bd8e94090df92f8e28452b817557bfcbd9e3d0..6ac0db84ed5abe48af4d01dd493563b7d370205a 100644 (file)
@@ -9,6 +9,13 @@ keepweb_stanza = <<-KEEPWEB_STANZA
         ExternalURL: https://download.fixme.example.net
 KEEPWEB_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired keepweb lines'
 
@@ -16,7 +23,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(