1 # frozen_string_literal: true
3 control 'arvados dispatcher service' do
5 title 'files should exist'
7 describe file('/usr/local/bin/crunch-run.sh') do
9 it { should be_owned_by 'root' }
10 it { should be_grouped_into 'root' }
11 its('mode') { should cmp '0755' }
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
20 describe file('/etc/systemd/system/crunch-dispatch-local.service') do
22 it { should be_owned_by 'root' }
23 it { should be_grouped_into 'root' }
24 its('mode') { should cmp '0644' }
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