summaryrefslogtreecommitdiff
path: root/test/support/fake_config.exs
blob: e05db22b78cd22eb23cd85fd062f2d553eafd740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule PowerDNSex.FakeConfig do
  @app_config_token "S3cr37_70k3n"
  @app_config_url "https://my-powerdns.api"
  @app_config_timeout 42

  def set_url, do: Application.put_env(:powerdnsex, :url, @app_config_url)
  def set_token, do: Application.put_env(:powerdnsex, :token, @app_config_token)
  def set_timeout, do: Application.put_env(:powerdnsex, :timeout, @app_config_timeout)


  def token, do: @app_config_token
  def url, do: @app_config_url
  def timeout, do: @app_config_timeout
end