-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.exs
49 lines (36 loc) · 1.19 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
use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :gateway, GatewayWeb.Endpoint,
env: :test,
http: [port: System.get_env("PORT") || 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
config :gateway, Gateway.RateLimit,
enabled?: true,
avg_rate_per_sec: 0,
burst_size: 10,
sweep_interval_ms: 0
config :gateway, Gateway.Kafka.MessageHandler,
message_user_field: "username"
config :gateway, Gateway.Kafka.SupWrapper,
message_user_field: "username",
enabled?: false
jwt_secret_key = "mysecret"
config :gateway, Gateway.Kafka.CallLogTest,
jwt_secret_key: jwt_secret_key
config :gateway, Gateway.Utils.Jwt,
secret_key: jwt_secret_key
config :gateway, GatewayWeb.Presence.Channel,
jwt_user_field: "username",
jwt_roles_field: "role",
privileged_roles: ["support"]
config :gateway, GatewayWeb.Presence.Controller,
session_role: "customer"
config :gateway, GatewayWeb.ConnCase,
jwt_secret_key: jwt_secret_key
config :gateway, Gateway.Proxy,
config_file: "proxy/proxy.test.json"
config :gateway, GatewayWeb.Proxy.Controller,
gateway_proxy: Gateway.ProxyMock