feat(distro): add centos-7 support
[arvados-formula.git] / test / integration / dispatcher / controls / files_spec.rb
1 # frozen_string_literal: true
2
3 control 'arvados dispatcher service' do
4   impact 0.5
5   title 'files should exist'
6
7   describe file('/usr/local/bin/crunch-run.sh') do
8     it { should be_file }
9     it { should be_owned_by 'root' }
10     it { should be_grouped_into 'root' }
11     its('mode') { should cmp '0755' }
12     its('content') do
13       should include(
14         # rubocop:disable Layout/LineLength
15         'File managed by Salt at <salt://arvados/dispatcher/service/files/default/crunch-run-sh.tmpl>.'
16         # rubocop:enable Layout/LineLength
17       )
18     end
19   end
20   describe file('/etc/systemd/system/crunch-dispatch-local.service') do
21     it { should be_file }
22     it { should be_owned_by 'root' }
23     it { should be_grouped_into 'root' }
24     its('mode') { should cmp '0644' }
25     its('content') do
26       should include(
27         # rubocop:disable Layout/LineLength
28         'File managed by Salt at <salt://arvados/dispatcher/service/files/default/crunch-dispatch-local-service.tmpl>.'
29         # rubocop:enable Layout/LineLength
30       )
31     end
32   end
33 end