bonfire-app/flavours/classic/config/test.exs

84 lines
2.1 KiB
Elixir
Raw Normal View History

2020-11-28 11:12:32 +00:00
import Config
2020-08-05 07:39:59 +00:00
2020-12-31 13:17:10 +00:00
## Import or set test configs for extensions
2020-09-14 11:25:29 +00:00
2020-12-26 17:01:34 +00:00
import_config "activity_pub_test.exs"
2022-01-13 02:14:06 +00:00
config :bonfire,
2022-09-12 04:34:14 +00:00
# should match limit hardcoded in tests
default_pagination_limit: 10,
# should match limit hardcoded in tests
thread_default_pagination_limit: 10,
2022-01-23 05:24:15 +00:00
skip_all_boundary_checks: false
2022-01-13 02:14:06 +00:00
2020-12-26 17:01:34 +00:00
config :bonfire, Bonfire.Mailer, adapter: Bamboo.TestAdapter
2021-06-10 14:46:57 +00:00
config :bonfire_search,
disabled: true,
disable_indexing: true
2020-12-26 17:01:34 +00:00
## Other general test config
2020-09-14 11:25:29 +00:00
2022-04-03 07:40:16 +00:00
config :logger, level: :info
# config :logger, level: :debug
2022-01-25 17:53:05 +00:00
# config :logger, level: :notice
2022-04-17 23:55:40 +00:00
config :logger, truncate: :infinity
config :logger, :console, truncate: :infinity
2021-06-24 16:33:50 +00:00
2020-08-05 07:39:59 +00:00
# Configure your database
2021-07-04 09:03:17 +00:00
db = "bonfire_test#{System.get_env("MIX_TEST_PARTITION")}"
2020-08-05 07:39:59 +00:00
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
2022-05-04 02:13:47 +00:00
config :bonfire, Bonfire.Common.Repo,
2020-12-26 17:01:34 +00:00
pool: Ecto.Adapters.SQL.Sandbox,
2022-05-04 04:44:50 +00:00
pool_size: 20,
2021-04-08 18:19:52 +00:00
# show_sensitive_data_on_connection_error: true,
2021-07-04 09:03:17 +00:00
database: db,
2022-05-04 04:44:50 +00:00
slow_query_ms: 500,
queue_target: 5_000,
queue_interval: 2_000,
timeout: 10_000,
connect_timeout: 10_000
2020-08-05 07:39:59 +00:00
2022-09-12 04:34:14 +00:00
config :bonfire, Bonfire.Web.Endpoint, http: [port: 4001]
2020-08-05 07:39:59 +00:00
2020-12-21 13:50:25 +00:00
config :bonfire, Oban,
crontab: false,
plugins: false,
queues: false
2020-12-27 12:07:43 +00:00
config :pbkdf2_elixir, :rounds, 1
2021-06-10 14:46:57 +00:00
config :mix_test_interactive,
clear: true
2021-07-04 09:03:17 +00:00
2022-05-04 02:13:47 +00:00
config :paginator, ecto_repos: [Bonfire.Common.Repo]
2022-09-12 04:34:14 +00:00
2021-07-04 09:03:17 +00:00
config :paginator, Paginator.Repo,
pool: Ecto.Adapters.SQL.Sandbox,
username: System.get_env("POSTGRES_USER", "postgres"),
password: System.get_env("POSTGRES_PASSWORD", "postgres"),
hostname: System.get_env("POSTGRES_HOST", "localhost"),
database: db
2022-03-16 04:30:58 +00:00
config :exsync,
src_monitor: false,
extra_extensions: [".leex", ".js", ".css", ".sface"]
2022-05-23 06:30:27 +00:00
# for headless browser testing:
config :bonfire, sql_sandbox: true
2022-09-12 04:34:14 +00:00
2022-05-23 06:30:27 +00:00
config :wallaby,
otp_app: :bonfire,
2022-05-23 09:23:41 +00:00
# base_url: Bonfire.Web.Endpoint.url(),
max_wait_time: 6_000,
2022-05-23 06:30:27 +00:00
screenshot_on_failure: true,
chromedriver: [
2022-09-12 04:34:14 +00:00
# point to your chromedriver path
path: "assets/node_modules/chromedriver/bin/chromedriver",
# change to false if you want to see the browser in action
headless: true
2022-05-23 06:30:27 +00:00
]