feat(components,version): add extra components, new version
[arvados-formula.git] / test / integration / controller / controls / config_spec.rb
1 # frozen_string_literal: true
2
3 controller_stanza = <<-CONTROLLER_STANZA
4       Keepstore:
5         InternalURLs:
6           http://keep0.fixme.example.net:25107: {}
7 CONTROLLER_STANZA
8
9 volumes_stanza = <<-VOLUMES_STANZA
10     Volumes:
11       fixme-nyw5e-000000000000000:
12         AccessViaHosts:
13           http://keep0.fixme.example.net:25107:
14             ReadOnly: false
15         Driver: Directory
16         DriverParameters:
17           Root: /tmp
18         Replication: 2
19 VOLUMES_STANZA
20
21 control 'arvados configuration' do
22   title 'should match desired controller lines'
23
24   describe file('/etc/arvados/config.yml') do
25     it { should be_file }
26     it { should be_owned_by 'root' }
27     # We're testing it in the API instance, so group will be nginx's
28     it { should be_grouped_into 'www-data' }
29     its('mode') { should cmp '0640' }
30     its('content') do
31       should include(
32         'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
33       )
34     end
35     its('content') { should include(controller_stanza) }
36     its('content') { should include(volumes_stanza) }
37   end
38 end