From 80a9e7bf039df9e3c5c07f6dc1c226b4ba0e22dc Mon Sep 17 00:00:00 2001 From: Max Ehrlich Date: Fri, 3 Aug 2018 12:04:54 -0400 Subject: [PATCH] Make sure names are consistent Signed-off-by: Max Ehrlich --- pkg/issuer/acme/dns/acmedns/acmedns.go | 2 +- pkg/issuer/acme/dns/acmedns/acmedns_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/issuer/acme/dns/acmedns/acmedns.go b/pkg/issuer/acme/dns/acmedns/acmedns.go index c83717059..52db23ada 100644 --- a/pkg/issuer/acme/dns/acmedns/acmedns.go +++ b/pkg/issuer/acme/dns/acmedns/acmedns.go @@ -24,7 +24,7 @@ type DNSProvider struct { // Credentials and acme-dns server host are given in environment variables func NewDNSProvider() (*DNSProvider, error) { host := os.Getenv("ACME_DNS_HOST") - accountJson := os.Getenv("ACME_DNS_ACCOUNT_JSON") + accountJson := os.Getenv("ACME_DNS_ACCOUNTS_JSON") return NewDNSProviderHostBytes(host, []byte(accountJson)) } diff --git a/pkg/issuer/acme/dns/acmedns/acmedns_test.go b/pkg/issuer/acme/dns/acmedns/acmedns_test.go index 1fdde6179..cf8f2efa8 100644 --- a/pkg/issuer/acme/dns/acmedns/acmedns_test.go +++ b/pkg/issuer/acme/dns/acmedns/acmedns_test.go @@ -15,13 +15,13 @@ var ( func init() { acmednsHost = os.Getenv("ACME_DNS_HOST") - acmednsAccountsJson = []byte(os.Getenv("ACME_DNS_ACCOUNT_JSON")) + acmednsAccountsJson = []byte(os.Getenv("ACME_DNS_ACCOUNTS_JSON")) if len(acmednsHost) > 0 && len(acmednsAccountsJson) > 0 { acmednsLiveTest = true } } -func TestLiveAzureDnsPresent(t *testing.T) { +func TestLiveAcmeDnsPresent(t *testing.T) { if !acmednsLiveTest { t.Skip("skipping live test") }