Merge branch '8784-dir-listings'
[arvados.git] / services / api / config / environments / test.rb.example
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 Server::Application.configure do
6   # Settings specified here will take precedence over those in config/application.rb
7
8   # The test environment is used exclusively to run your application's
9   # test suite.  You never need to work with it otherwise.  Remember that
10   # your test database is "scratch space" for the test suite and is wiped
11   # and recreated between test runs.  Don't rely on the data there!
12   config.cache_classes = true
13
14   # Configure static asset server for tests with Cache-Control for performance
15   config.serve_static_files = true
16   config.static_cache_control = "public, max-age=3600"
17
18   # Log error messages when you accidentally call methods on nil
19   config.whiny_nils = true
20
21   # Show full error reports and disable caching
22   config.consider_all_requests_local       = true
23   config.action_controller.perform_caching = false
24
25   # Raise exceptions instead of rendering exception templates
26   config.action_dispatch.show_exceptions = false
27
28   # Disable request forgery protection in test environment
29   config.action_controller.allow_forgery_protection    = false
30
31   # Tell Action Mailer not to deliver emails to the real world.
32   # The :test delivery method accumulates sent emails in the
33   # ActionMailer::Base.deliveries array.
34   config.action_mailer.delivery_method = :test
35
36   # Use SQL instead of Active Record's schema dumper when creating the test database.
37   # This is necessary if your schema can't be completely dumped by the schema dumper,
38   # like if you have constraints or database-specific column types
39   # config.active_record.schema_format = :sql
40
41   # Print deprecation notices to the stderr
42   config.active_support.deprecation = :stderr
43
44   # No need for SSL while testing
45   config.force_ssl = false
46
47   # I18n likes to warn when this variable is not set
48   I18n.enforce_available_locales = true
49
50 end