Merge branch 'fix/check-follower-collection-in-is_private' 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 url: [port: 4001],
8 server: true
9
10 # Disable captha for tests
11 config :pleroma, Pleroma.Captcha,
12 # It should not be enabled for automatic tests
13 enabled: false,
14 # A fake captcha service for tests
15 method: Pleroma.Captcha.Mock
16
17 # Print only warnings and errors during test
18 config :logger, level: :warn
19
20 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
21
22 config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Test
23
24 # Configure your database
25 config :pleroma, Pleroma.Repo,
26 adapter: Ecto.Adapters.Postgres,
27 username: "postgres",
28 password: "postgres",
29 database: "pleroma_test",
30 hostname: System.get_env("DB_HOST") || "localhost",
31 pool: Ecto.Adapters.SQL.Sandbox
32
33 # Reduce hash rounds for testing
34 config :pbkdf2_elixir, rounds: 1
35
36 config :pleroma, :websub, Pleroma.Web.WebsubMock
37 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
38 config :tesla, adapter: Tesla.Mock
39 config :pleroma, :rich_media, enabled: false
40
41 config :web_push_encryption, :vapid_details,
42 subject: "mailto:administrator@example.com",
43 public_key:
44 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
45 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
46
47 config :pleroma, Pleroma.Jobs, testing: [max_jobs: 2]
48
49 try do
50 import_config "test.secret.exs"
51 rescue
52 _ ->
53 IO.puts(
54 "You may want to create test.secret.exs to declare custom database connection parameters."
55 )
56 end