summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go')
-rw-r--r--vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go b/vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go
deleted file mode 100644
index e860ecb69..000000000
--- a/vendor/github.com/xenolf/lego/providers/dns/dnsmadeeasy/dnsmadeeasy_test.go
+++ /dev/null
@@ -1,37 +0,0 @@
-package dnsmadeeasy
-
-import (
- "os"
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-var (
- testLive bool
- testAPIKey string
- testAPISecret string
- testDomain string
-)
-
-func init() {
- testAPIKey = os.Getenv("DNSMADEEASY_API_KEY")
- testAPISecret = os.Getenv("DNSMADEEASY_API_SECRET")
- testDomain = os.Getenv("DNSMADEEASY_DOMAIN")
- os.Setenv("DNSMADEEASY_SANDBOX", "true")
- testLive = len(testAPIKey) > 0 && len(testAPISecret) > 0
-}
-
-func TestPresentAndCleanup(t *testing.T) {
- if !testLive {
- t.Skip("skipping live test")
- }
-
- provider, err := NewDNSProvider()
-
- err = provider.Present(testDomain, "", "123d==")
- assert.NoError(t, err)
-
- err = provider.CleanUp(testDomain, "", "123d==")
- assert.NoError(t, err)
-}