25 lines
754 B
Elixir
25 lines
754 B
Elixir
import Config
|
|
|
|
config :workload_service, WorkloadService.Repo,
|
|
username: "postgres",
|
|
password: "postgres",
|
|
hostname: "localhost",
|
|
database: "workload_service_test#{System.get_env("MIX_TEST_PARTITION")}",
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
|
pool_size: System.schedulers_online() * 2
|
|
|
|
config :workload_service, WorkloadServiceWeb.Endpoint,
|
|
http: [ip: {127, 0, 0, 1}, port: 4002],
|
|
secret_key_base: "workload_test_secret_key_base_at_least_64_bytes_long_for_testing",
|
|
server: false
|
|
|
|
config :logger, level: :warning
|
|
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :workload_service, WorkloadService.Application,
|
|
event_store: [
|
|
adapter: Commanded.EventStore.Adapters.InMemory,
|
|
serializer: Commanded.Serialization.JsonSerializer
|
|
]
|