1 # frozen_string_literal: true
3 keepweb_stanza = <<-KEEPWEB_STANZA
5 ExternalURL: https://collections.fixme.example.net
7 http://127.0.0.2:9002: {}
9 ExternalURL: https://download.fixme.example.net
12 control 'arvados configuration' do
13 title 'should match desired keepweb lines'
15 describe file('/etc/arvados/config.yml') do
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' }
23 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
26 its('content') { should include(keepweb_stanza) }