forked from beyond-all-reason/teiserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.exs
64 lines (56 loc) · 1.58 KB
/
test.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import Config
# This makes anything in our tests involving user passwords (creating or logging in) much faster
config :argon2_elixir, t_cost: 1, m_cost: 8
# Configure your database
config :central, Teiserver.Repo,
username: "teiserver_test",
password: "123456789",
database: "teiserver_test",
hostname: "localhost",
queue_target: 5000,
queue_interval: 100_000,
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 50,
timeout: 300_000
config :central, Teiserver,
certs: [
keyfile: "priv/certs/localhost.key",
certfile: "priv/certs/localhost.crt",
cacertfile: "priv/certs/localhost.crt"
],
ports: [
tcp: 9200,
tls: 9201,
tachyon: 9202
],
test_mode: true,
enable_hooks: false,
enable_coordinator_mode: false,
enable_accolade_mode: false,
enable_discord_bridge: false,
enable_match_monitor: false,
post_login_delay: 0,
spring_post_state_change_delay: 0,
automod_delay: 1_000,
user_agreement: "User agreement goes here."
config :central, DiscordBridgeBot,
token: nil,
bot_name: "Teiserver Bridge TEST",
bridges: [
{"bridge_test_room", nil}
]
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :central, TeiserverWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warning
config :central, Oban, testing: :manual
# queues: false,
# plugins: false,
# crontab: false
config :central, Central.Mailer,
adapter: Bamboo.TestAdapter,
noreply_address: "[email protected]",
contact_address: "[email protected]"