1 # frozen_string_literal: true
3 siab_stanza = <<~SIAB_STANZA
5 # SSL is disabled because it is terminated in Nginx. Adjust as needed.
6 SHELLINABOX_ARGS="--disable-ssl --no-beep --service=/shell.fixme.example.net:AUTH:HOME:SHELL"
9 libpam_stanza = <<~LIBPAM_STANZA
10 auth [success=1 default=ignore] /usr/lib/pam_arvados.so fixme.example.net shell.fixme.example.net
13 control 'shellinabox configuration' do
14 title 'should match desired lines'
16 describe file('/etc/default/shellinabox') do
18 it { should be_owned_by 'root' }
19 it { should be_grouped_into 'root' }
20 its('mode') { should cmp '0644' }
23 # rubocop:disable Metrics/LineLength
24 'File managed by Salt at <salt://arvados/shell/config/files/default/shell-shellinabox.tmpl.jinja>.'
25 # rubocop:enable Metrics/LineLength
28 its('content') { should include(siab_stanza) }
32 control 'libpam-arvados configuration' do
33 title 'should match desired lines'
35 describe file('/etc/pam.d/arvados') do
37 it { should be_owned_by 'root' }
38 it { should be_grouped_into 'root' }
39 its('mode') { should cmp '0644' }
42 # rubocop:disable Metrics/LineLength
43 'File managed by Salt at <salt://arvados/shell/config/files/default/shell-libpam-arvados.tmpl.jinja>.'
44 # rubocop:enable Metrics/LineLength
47 its('content') { should include(libpam_stanza) }