1 # frozen_string_literal: true
3 controller_stanza = <<-CONTROLLER_STANZA
6 "http://keep0.example.net:25107/": {}
9 volumes_stanza = <<-VOLUMES_STANZA
12 fixme-nyw5e-000000000000000:
14 DriverParameters: {Root: /tmp}
15 AccessViaHosts: {'http://keep0.example.net:25107/': {}}
19 control 'arvados configuration' do
20 title 'should match desired controller lines'
22 describe file('/etc/arvados/config.yml') do
24 it { should be_owned_by 'root' }
25 # We're testing it in the API instance, so group will be nginx's
26 it { should be_grouped_into 'www-data' }
27 its('mode') { should cmp '0640' }
30 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
33 its('content') { should include(controller_stanza) }
34 its('content') { should include(volumes_stanza) }