fix(dispatcher): add missing files for local dispatcher
[arvados-formula.git] / test / integration / dispatcher / controls / config_spec.rb
1 # frozen_string_literal: true
2
3 dispatcher_stanza = <<-DISPATCHER_STANZA
4       DispatchCloud:
5         InternalURLs:
6           http://fixme.example.net:9006: {}
7 DISPATCHER_STANZA
8
9 control 'arvados configuration' do
10   title 'should match desired dispatcher lines'
11
12   describe file('/etc/arvados/config.yml') do
13     it { should be_file }
14     it { should be_owned_by 'root' }
15     # We're testing it in the API instance, so group will be nginx's
16     it { should be_grouped_into 'www-data' }
17     its('mode') { should cmp '0640' }
18     its('content') do
19       should include(
20         'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
21       )
22     end
23     its('content') { should include(dispatcher_stanza) }
24   end
25 end