X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/250bd933ee9caf3a29f0e6dc3bab130a670d99e5..df42b08093c924e65da094864a0451b8b70a8258:/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 5d8afc4..0f64cb2 100644 --- a/test/integration/api/controls/config_spec.rb +++ b/test/integration/api/controls/config_spec.rb @@ -2,15 +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 +database_stanza = <<-DATABASE_STANZA + ### DATABASE CONFIGURATION + PostgreSQL: + ConnectionPool: 32 + Connection: + # All parameters here are passed to the PG client library in a connection string; + # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS + dbname: arvados + host: 127.0.0.1 + password: "changeme_arvados" + user: arvados + client_encoding: UTF8 +DATABASE_STANZA + group = case os[:name] when 'centos' 'nginx' @@ -33,5 +46,6 @@ control 'arvados configuration' do end its('content') { should include(api_stanza) } its('content') { should include(rails_stanza) } + its('content') { should include(database_stanza) } end end