17750: fix style (linters suggestions) [ci skip]
[arvados-formula.git] / test / integration / api / controls / config_spec.rb
index 5d8afc4158db3eedea665c594a4077b34097e3c6..7131096fae3d065250ff982bedb3935105c0888f 100644 (file)
@@ -1,16 +1,34 @@
 # frozen_string_literal: true
 
+users_stanza = <<-USERS_STANZA
+    Users:
+      AnonymousUserToken: anonymoususertokensetinthetokensdict
+USERS_STANZA
+
 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 +51,7 @@ control 'arvados configuration' do
     end
     its('content') { should include(api_stanza) }
     its('content') { should include(rails_stanza) }
+    its('content') { should include(database_stanza) }
+    its('content') { should include(users_stanza) }
   end
 end