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.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/fake_config.exs b/test/support/fake_config.exs
new file mode 100644
index 0000000..e624d8e
--- /dev/null
+++ b/test/support/fake_config.exs
@@ -0,0 +1,8 @@
+defmodule PowerDNSx.FakeConfig do
+ @app_config_token "4pp_S3cr37_T0k3n"
+ @app_config_url "https://app-config-powerdns.test"
+
+
+ def set_url, do: Application.put_env(:powerdns, :url, @app_config_url)
+ def set_token, do: Application.put_env(:powerdns, :token, @app_config_token)
+end