1 # frozen_string_literal: true
3 controller_stanza = <<-CONTROLLER_STANZA
6 http://keep0.fixme.example.net:25107: {}
9 volumes_stanza = <<-VOLUMES_STANZA
11 fixme-nyw5e-000000000000000:
13 http://keep0.fixme.example.net:25107:
21 group = case os[:name]
24 when 'debian', 'ubuntu'
28 control 'arvados configuration' do
29 title 'should match desired controller lines'
31 describe file('/etc/arvados/config.yml') do
33 it { should be_owned_by 'root' }
34 # We're testing it in the API instance, so group will be nginx's
35 it { should be_grouped_into group }
36 its('mode') { should cmp '0640' }
39 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
42 its('content') { should include(controller_stanza) }
43 its('content') { should include(volumes_stanza) }