1 # frozen_string_literal: true
3 keepbalance_stanza = <<-KEEPBALANCE_STANZA
6 http://fixme.example.net:9005: {}
9 collections_stanza = <<-COLLECTIONS_STANZA
11 BlobSigningKey: "blobsigningkeymushaveatleast32characters"
15 group = case os[:name]
18 when 'debian', 'ubuntu'
22 control 'arvados configuration' do
23 title 'should match desired keepbalance lines'
25 describe file('/etc/arvados/config.yml') do
27 it { should be_owned_by 'root' }
28 # We're testing it in the API instance, so group will be nginx's
29 it { should be_grouped_into group }
30 its('mode') { should cmp '0640' }
33 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
36 its('content') { should include(keepbalance_stanza) }
37 its('content') { should include(collections_stanza) }