Typos
[akkoma] / config / test.exs
1 use Mix.Config
2
3 # We don't run a server during test. If one is required,
4 # you can enable the server option below.
5 config :pleroma, Pleroma.Web.Endpoint,
6 http: [port: 4001],
7 server: false
8
9 # Print only warnings and errors during test
10 config :logger, level: :warn
11
12 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
13
14 config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Test
15
16 # Configure your database
17 config :pleroma, Pleroma.Repo,
18 adapter: Ecto.Adapters.Postgres,
19 username: "postgres",
20 password: "postgres",
21 database: "pleroma_test",
22 hostname: System.get_env("DB_HOST") || "localhost",
23 pool: Ecto.Adapters.SQL.Sandbox
24
25 # Reduce hash rounds for testing
26 config :pbkdf2_elixir, rounds: 1
27
28 config :pleroma, :websub, Pleroma.Web.WebsubMock
29 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
30 config :tesla, adapter: Tesla.Mock
31
32 config :web_push_encryption, :vapid_details,
33 subject: "mailto:administrator@example.com",
34 public_key:
35 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
36 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
37
38 try do
39 import_config "test.secret.exs"
40 rescue
41 _ ->
42 IO.puts(
43 "You may want to create test.secret.exs to declare custom database connection parameters."
44 )
45 end