feat(components): add submodules and tests
[arvados-formula.git] / test / integration / keepweb / controls / config_spec.rb
1 # frozen_string_literal: true
2
3 keepweb_stanza = <<-KEEPWEB_STANZA
4       WebDAV:
5         ExternalURL: https://collections.example.net
6         InternalURLs:
7           "http://localhost:9002": {}
8       WebDAVDownload:
9         ExternalURL: https://download.example.net
10 KEEPWEB_STANZA
11
12 control 'arvados configuration' do
13   title 'should match desired keepweb lines'
14
15   describe file('/etc/arvados/config.yml') do
16     it { should be_file }
17     it { should be_owned_by 'root' }
18     # We're testing it in the API instance, so group will be nginx's
19     it { should be_grouped_into 'www-data' }
20     its('mode') { should cmp '0640' }
21     its('content') do
22       should include(
23         'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
24       )
25     end
26     its('content') { should include(keepweb_stanza) }
27   end
28 end