feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / dispatcher / controls / config_spec.rb
index bbc54f86506e002604912556390fe250153fdf1a..46282f7f8b57b184da6276fc89cc4ce3b3e145c6 100644 (file)
@@ -6,6 +6,13 @@ dispatcher_stanza = <<-DISPATCHER_STANZA
           http://fixme.example.net:9006: {}
 DISPATCHER_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired dispatcher lines'
 
@@ -13,7 +20,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(