1 # frozen_string_literal: true
3 keepweb_stanza = <<-KEEPWEB_STANZA
5 ExternalURL: https://collections.example.net
7 "http://localhost:9002": {}
9 ExternalURL: https://download.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) }