Make sure names are consistent
Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
parent
9d1f233729
commit
80a9e7bf03
@ -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))
|
||||
}
|
||||
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user