summaryrefslogtreecommitdiff
path: root/test/support/fake_config.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/fake_config.exs')
-rw-r--r--test/support/fake_config.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/fake_config.exs b/test/support/fake_config.exs
index c8f4f60..e05db22 100644
--- a/test/support/fake_config.exs
+++ b/test/support/fake_config.exs
@@ -1,10 +1,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