X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/86ea398742e99ab5942705b342b0f0ac7bdef41d..ba5e37ebc18049d4340388fc0c19dcb2a78d6a86:/test/integration/websocket/controls/config_spec.rb diff --git a/test/integration/websocket/controls/config_spec.rb b/test/integration/websocket/controls/config_spec.rb index e4a4779..0152476 100644 --- a/test/integration/websocket/controls/config_spec.rb +++ b/test/integration/websocket/controls/config_spec.rb @@ -7,6 +7,13 @@ websocket_stanza = <<-WEBSOCKET_STANZA http://127.0.0.2:8005: {} WEBSOCKET_STANZA +group = case os[:name] + when 'centos' + 'nginx' + when 'debian', 'ubuntu' + 'www-data' + end + control 'arvados configuration' do title 'should match desired websocket lines' @@ -14,7 +21,7 @@ control 'arvados configuration' do it { should be_file } it { should be_owned_by 'root' } # We're testing it in the API instance, so group will be nginx's - it { should be_grouped_into 'www-data' } + it { should be_grouped_into group } its('mode') { should cmp '0640' } its('content') do should include(