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,
10 # Disable captha for tests
11 config :pleroma, Pleroma.Captcha,
12 # It should not be enabled for automatic tests
14 # A fake captcha service for tests
15 method: Pleroma.Captcha.Mock
17 # Print only warnings and errors during test
18 config :logger, level: :warn
20 config :pleroma, :auth, oauth_consumer_strategies: []
22 config :pleroma, Pleroma.Upload, filters: [], link_name: false
24 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
26 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test
28 config :pleroma, :instance,
29 email: "admin@example.com",
30 notify_email: "noreply@example.com",
31 skip_thread_containment: false
33 # Configure your database
34 config :pleroma, Pleroma.Repo,
35 adapter: Ecto.Adapters.Postgres,
38 database: "pleroma_test",
39 hostname: System.get_env("DB_HOST") || "localhost",
40 pool: Ecto.Adapters.SQL.Sandbox
42 # Reduce hash rounds for testing
43 config :pbkdf2_elixir, rounds: 1
45 config :tesla, adapter: Tesla.Mock
46 config :pleroma, :rich_media, enabled: false
48 config :web_push_encryption, :vapid_details,
49 subject: "mailto:administrator@example.com",
51 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
52 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
54 config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
56 config :pleroma_job_queue, disabled: true
58 config :pleroma, Pleroma.ScheduledActivity,
63 config :pleroma, :rate_limit, app_account_creation: {10_000, 5}
65 config :pleroma, :http_security, report_uri: "https://endpoint.com"
67 config :pleroma, :http, send_user_agent: false
69 rum_enabled = System.get_env("RUM_ENABLED") == "true"
70 config :pleroma, :database, rum_enabled: rum_enabled
71 IO.puts("RUM enabled: #{rum_enabled}")
74 import_config "test.secret.exs"
78 "You may want to create test.secret.exs to declare custom database connection parameters."