Make sure names are consistent

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
Max Ehrlich 2018-08-03 12:04:54 -04:00
parent 9d1f233729
commit 80a9e7bf03
No known key found for this signature in database
GPG Key ID: 439AC62D3C8A495A
2 changed files with 3 additions and 3 deletions

View File

@ -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))
}

View File

@ -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")
}