X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/4bf9501a14f86845865244ee3ffb03a34707d36c..deae23d2bf8f41dbd624494613cab1df71a8c231:/test/integration/api/controls/config_spec.rb diff --git a/test/integration/api/controls/config_spec.rb b/test/integration/api/controls/config_spec.rb index 7ad922f..57fffc1 100644 --- a/test/integration/api/controls/config_spec.rb +++ b/test/integration/api/controls/config_spec.rb @@ -2,22 +2,28 @@ api_stanza = <<-API_STANZA API: - RailsSessionSecretToken: "changeme_rails_secret_token" API_STANZA rails_stanza = <<-RAILS_STANZA RailsAPI: InternalURLs: - http://127.0.0.2:8004: {} + http://api.internal:8004: {} RAILS_STANZA +group = case os[:name] + when 'centos' + 'nginx' + when 'debian', 'ubuntu' + 'www-data' + end + control 'arvados configuration' do title 'should match desired api lines' describe file('/etc/arvados/config.yml') do it { should be_file } it { should be_owned_by 'root' } - it { should be_grouped_into 'www-data' } + it { should be_grouped_into group } its('mode') { should cmp '0640' } its('content') do should include(