From f75b83f1713a7c7aacfcdd8a4134a9113981d136 Mon Sep 17 00:00:00 2001 From: Rodrigo Coutinho Date: Fri, 29 Dec 2017 18:32:36 -0200 Subject: Fix test suite (#11) * Fix broken specs and update exvcr * Provide default configuration to run tests * Show nameservers in zone --- config/config.exs | 28 +--------------------------- config/dev.exs | 1 + config/prod.exs | 1 + config/test.exs | 4 ++++ 4 files changed, 7 insertions(+), 27 deletions(-) create mode 100644 config/dev.exs create mode 100644 config/prod.exs create mode 100644 config/test.exs (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 4f2b23f..8eff0b9 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,30 +1,4 @@ -# This file is responsible for configuring your application -# and its dependencies with the aid of the Mix.Config module. use Mix.Config -# This configuration is loaded before any dependency and is restricted -# to this project. If another project depends on this project, this -# file won't be loaded nor affect the parent project. For this reason, -# if you want to provide default values for your application for -# 3rd-party users, it should be done in your "mix.exs" file. +import_config "#{Mix.env}.exs" -# You can configure for your application as: -# -# config :powerdnsex, key: :value -# -# And access this configuration in your application as: -# -# Application.get_env(:powerdnsex, :key) -# -# Or configure a 3rd-party app: -# -# config :logger, level: :info -# - -# It is also possible to import configuration files, relative to this -# directory. For example, you can emulate configuration per environment -# by uncommenting the line below and defining dev.exs, test.exs and such. -# Configuration from the imported file will override the ones defined -# here (which is why it is important to import them last). -# -# import_config "#{Mix.env}.exs" diff --git a/config/dev.exs b/config/dev.exs new file mode 100644 index 0000000..d2d855e --- /dev/null +++ b/config/dev.exs @@ -0,0 +1 @@ +use Mix.Config diff --git a/config/prod.exs b/config/prod.exs new file mode 100644 index 0000000..d2d855e --- /dev/null +++ b/config/prod.exs @@ -0,0 +1 @@ +use Mix.Config diff --git a/config/test.exs b/config/test.exs new file mode 100644 index 0000000..eedc0c7 --- /dev/null +++ b/config/test.exs @@ -0,0 +1,4 @@ +use Mix.Config + +config :powerdnsex, url: "https://powerdns.example.com" +config :powerdnsex, token: "example" -- cgit v1.2.3