X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/cbabd4188c1200866ef7ac01e1ab57a58b8775bc..06050e0a5377d3d6a4c54c7f50fe53a06a07c837:/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 new file mode 100644 index 0000000..8efe253 --- /dev/null +++ b/test/integration/api/controls/config_spec.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +api_stanza = <<-API_STANZA + API: + RailsSessionSecretToken: "changeme_rails_secret_token" +API_STANZA + +rails_stanza = <<-RAILS_STANZA + RailsAPI: + InternalURLs: + "http://localhost:8004": {} +RAILS_STANZA + +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' } + its('mode') { should cmp '0640' } + its('content') do + should include( + 'File managed by Salt at .' + ) + end + its('content') { should include(api_stanza) } + its('content') { should include(rails_stanza) } + end +end