52 lines
1.3 KiB
Elixir
52 lines
1.3 KiB
Elixir
use Mix.Config
|
|
|
|
unless File.exists?("config/host/auth_secret_test.exs") do
|
|
Mix.raise("You need to configure your test environment.\r\n")
|
|
end
|
|
|
|
import_config("auth_secret_test.exs")
|
|
|
|
config :farmbot, data_path: "test_tmp/"
|
|
|
|
config :farmbot, :init, [
|
|
Farmbot.Host.Bootstrap.Configurator,
|
|
]
|
|
|
|
# Transports.
|
|
config :farmbot, :transport, []
|
|
|
|
# Configure Farmbot Behaviours.
|
|
# config :farmbot, :behaviour,
|
|
# authorization: Farmbot.Test.Authorization,
|
|
|
|
config :farmbot, :behaviour,
|
|
authorization: Farmbot.Bootstrap.Authorization,
|
|
system_tasks: Farmbot.Test.SystemTasks,
|
|
update_handler: FarmbotTestSupport.TestUpdateHandler
|
|
|
|
|
|
config :farmbot, Farmbot.Repo.A,
|
|
adapter: Sqlite.Ecto2,
|
|
database: "test_tmp/farmbot_repo_a_test",
|
|
priv: "priv/repo",
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
|
pool_size: 10,
|
|
loggers: []
|
|
|
|
config :farmbot, Farmbot.Repo.B,
|
|
adapter: Sqlite.Ecto2,
|
|
database: "test_tmp/farmbot_repo_b_test",
|
|
priv: "priv/repo",
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
|
pool_size: 10,
|
|
loggers: []
|
|
|
|
config :farmbot, Farmbot.System.ConfigStorage,
|
|
adapter: Sqlite.Ecto2,
|
|
database: "test_tmp/farmbot_config_storage_test",
|
|
pool_size: 10,
|
|
loggers: []
|
|
# pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
config :farmbot, ecto_repos: [Farmbot.Repo.A, Farmbot.Repo.B, Farmbot.System.ConfigStorage]
|