fix(database): don't enforce client encoding
[arvados-formula.git] / test / integration / api / controls / config_spec.rb
index 4585b95b8c829144f8ac1a1cfb117ff5503434b6..0f64cb2db41911054254551a694875bea9d053e0 100644 (file)
@@ -2,7 +2,6 @@
 
 api_stanza = <<-API_STANZA
     API:
-      RailsSessionSecretToken: "changemerailssecrettoken"
 API_STANZA
 
 rails_stanza = <<-RAILS_STANZA
@@ -11,6 +10,20 @@ rails_stanza = <<-RAILS_STANZA
           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