Merge branch 'fix/theora-detection-read-bytes' into 'develop'
[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 # Configure your database
15 config :pleroma, Pleroma.Repo,
16 adapter: Ecto.Adapters.Postgres,
17 username: "postgres",
18 password: "postgres",
19 database: "pleroma_test",
20 hostname: System.get_env("DB_HOST") || "localhost",
21 pool: Ecto.Adapters.SQL.Sandbox
22
23 # Reduce hash rounds for testing
24 config :pbkdf2_elixir, rounds: 1
25
26 config :pleroma, :websub, Pleroma.Web.WebsubMock
27 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
28 config :tesla, adapter: Tesla.Mock
29
30 config :web_push_encryption, :vapid_details,
31 subject: "mailto:administrator@example.com",
32 public_key:
33 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
34 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
35
36 try do
37 import_config "test.secret.exs"
38 rescue
39 _ ->
40 IO.puts(
41 "You may want to create test.secret.exs to declare custom database connection parameters."
42 )
43 end