1 # frozen_string_literal: true
3 users_stanza = <<-USERS_STANZA
5 AnonymousUserToken: anonymoususertokensetinthetokensdict
8 api_stanza = <<-API_STANZA
12 rails_stanza = <<-RAILS_STANZA
15 http://api.internal:8004: {}
18 database_stanza = <<-DATABASE_STANZA
19 ### DATABASE CONFIGURATION
23 # All parameters here are passed to the PG client library in a connection string;
24 # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
27 password: "changeme_arvados"
32 group = case os[:name]
35 when 'debian', 'ubuntu'
39 control 'arvados configuration' do
40 title 'should match desired api lines'
42 describe file('/etc/arvados/config.yml') do
44 it { should be_owned_by 'root' }
45 it { should be_grouped_into group }
46 its('mode') { should cmp '0640' }
49 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
52 its('content') { should include(api_stanza) }
53 its('content') { should include(rails_stanza) }
54 its('content') { should include(database_stanza) }
55 its('content') { should include(users_stanza) }