1 # frozen_string_literal: true
3 websocket_stanza = <<-WEBSOCKET_STANZA
5 ExternalURL: wss://ws.fixme.example.net/websocket
7 http://ws.internal:8005: {}
10 group = case os[:name]
13 when 'debian', 'ubuntu'
17 control 'arvados configuration' do
18 title 'should match desired websocket lines'
20 describe file('/etc/arvados/config.yml') do
22 it { should be_owned_by 'root' }
23 # We're testing it in the API instance, so group will be nginx's
24 it { should be_grouped_into group }
25 its('mode') { should cmp '0640' }
28 'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
31 its('content') { should include(websocket_stanza) }