feat(components,version): add extra components, new version
[arvados-formula.git] / test / integration / websocket / controls / config_spec.rb
1 # frozen_string_literal: true
2
3 websocket_stanza = <<-WEBSOCKET_STANZA
4       Websocket:
5         ExternalURL: wss://ws.fixme.example.net/websocket
6         InternalURLs:
7           http://127.0.0.2:8005: {}
8 WEBSOCKET_STANZA
9
10 control 'arvados configuration' do
11   title 'should match desired websocket lines'
12
13   describe file('/etc/arvados/config.yml') do
14     it { should be_file }
15     it { should be_owned_by 'root' }
16     # We're testing it in the API instance, so group will be nginx's
17     it { should be_grouped_into 'www-data' }
18     its('mode') { should cmp '0640' }
19     its('content') do
20       should include(
21         'File managed by Salt at <salt://arvados/files/default/config.tmpl.jinja>.'
22       )
23     end
24     its('content') { should include(websocket_stanza) }
25   end
26 end