1 # frozen_string_literal: true
3 api_stanza = <<-API_STANZA
5 RailsSessionSecretToken: "changeme_rails_secret_token"
8 rails_stanza = <<-RAILS_STANZA
11 http://127.0.0.2:8004: {}
14 control 'arvados configuration' do
15 title 'should match desired api lines'
17 describe file('/etc/arvados/config.yml') do
19 it { should be_owned_by 'root' }
20 it { should be_grouped_into 'www-data' }
21 its('mode') { should cmp '0640' }
24 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
27 its('content') { should include(api_stanza) }
28 its('content') { should include(rails_stanza) }