1 # frozen_string_literal: true
3 keepweb_stanza = <<-KEEPWEB_STANZA
5 ExternalURL: https://collections.fixme.example.net
7 http://collections.internal:9002: {}
9 ExternalURL: https://download.fixme.example.net
12 group = case os[:name]
15 when 'debian', 'ubuntu'
19 control 'arvados configuration' do
20 title 'should match desired keepweb lines'
22 describe file('/etc/arvados/config.yml') do
24 it { should be_owned_by 'root' }
25 # We're testing it in the API instance, so group will be nginx's
26 it { should be_grouped_into group }
27 its('mode') { should cmp '0640' }
30 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
33 its('content') { should include(keepweb_stanza) }