feat(components): add submodules and tests
[arvados-formula.git] / test / integration / workbench2 / controls / config_spec.rb
1 # frozen_string_literal: true
2
3 workbench2_service = <<-WORKBENCH2_STANZA
4       Workbench2:
5         ExternalURL: "https://workbench2.example.net"
6 WORKBENCH2_STANZA
7
8 control 'arvados configuration' do
9   title 'should match desired workbench2 lines'
10
11   describe file('/etc/arvados/config.yml') do
12     it { should be_file }
13     it { should be_owned_by 'root' }
14     it { should be_grouped_into 'www-data' }
15     its('mode') { should cmp '0640' }
16     its('content') do
17       should include(
18         'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
19       )
20     end
21     its('content') { should include(workbench2_service) }
22   end
23 end