Current section

Files

Jump to
combo_new templates combo_saas config test.exs
Raw

templates/combo_saas/config/test.exs

import Config
# ! general
# Print only warnings and errors during test.
config :logger, level: :warning
# Initialize plugs at runtime for faster test compilation.
config :phoenix, :plug_init_mode, :runtime
# ! core
# Configure the database
#
# 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.
config :combo_saas, ComboSaaS.Core.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "combo_saas_core_test#{CozyEnv.get_env("COMBO_SAAS_CORE_MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
# Configure the mailer
#
# In test we don't send emails.
config :combo_saas, ComboSaaS.Core.Mailer, adapter: Swoosh.Adapters.Test
# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false
# ! user_web
# Configure the endpoint
#
# We don't run a server during test. If one is required, you can enable the
# server option below.
config :combo_saas, ComboSaaS.UserWeb.Endpoint,
url: [path: "/"],
http: [ip: {127, 0, 0, 1}, port: 4101],
secret_key_base: "=========================secret_key_base=========================",
server: false
# ! user_api
# Configure the endpoint
#
# We don't run a server during test. If one is required, you can enable the
# server option below.
config :combo_saas, ComboSaaS.UserAPI.Endpoint,
url: [path: "/"],
http: [ip: {127, 0, 0, 1}, port: 4102],
secret_key_base: "=========================secret_key_base=========================",
server: false
# ! admin_web
# Configure the endpoint
#
# We don't run a server during test. If one is required, you can enable the
# server option below.
config :combo_saas, ComboSaaS.AdminWeb.Endpoint,
url: [path: "/"],
http: [ip: {127, 0, 0, 1}, port: 4103],
secret_key_base: "=========================secret_key_base=========================",
server: false