1 # frozen_string_literal: true
3 workbench_config = <<-WORKBENCH_STANZA
5 SecretKeyBase: "workbenchsecretkeymushaveatleast32characters"
9 workbench_service = <<-WORKBENCH_SERVICE_STANZA
11 ExternalURL: https://workbench.fixme.example.net
12 WORKBENCH_SERVICE_STANZA
14 group = case os[:name]
17 when 'debian', 'ubuntu'
21 control 'arvados configuration' do
22 title 'should match desired workbench lines'
24 describe file('/etc/arvados/config.yml') do
26 it { should be_owned_by 'root' }
27 it { should be_grouped_into group }
28 its('mode') { should cmp '0640' }
31 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
34 its('content') { should include(workbench_config) }
35 its('content') { should include(workbench_service) }