diff --git a/integrationTest/helpers_integration_test.go b/integrationTest/helpers_integration_test.go index 0b29bcf43..052d31047 100644 --- a/integrationTest/helpers_integration_test.go +++ b/integrationTest/helpers_integration_test.go @@ -433,7 +433,7 @@ func loc(name string, d1 uint8, m1 uint8, s1 float32, ns string, func makeRec(name, target, typ string) *models.RecordConfig { r := &models.RecordConfig{ Type: typ, - TTL: 600, + TTL: models.DefaultTTL, } SetLabel(r, name, "**current-domain**.") r.MustSetTarget(target) diff --git a/integrationTest/helpers_test.go b/integrationTest/helpers_test.go index 3c174b716..d18640684 100644 --- a/integrationTest/helpers_test.go +++ b/integrationTest/helpers_test.go @@ -9,6 +9,7 @@ import ( "strings" "testing" + "github.com/StackExchange/dnscontrol/v4/models" "github.com/StackExchange/dnscontrol/v4/pkg/credsfile" "github.com/StackExchange/dnscontrol/v4/providers" "github.com/StackExchange/dnscontrol/v4/providers/cloudflare" @@ -117,6 +118,10 @@ func getProvider(t *testing.T) (providers.DNSServiceProvider, string, map[string metadata = []byte(`{ ` + strings.Join(items, `, `) + ` }`) } + if profileType == "ALIDNS" { + models.DefaultTTL = 600 + } + provider, err := providers.CreateDNSProvider(profileType, cfg, metadata) if err != nil { t.Fatal(err) diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 501b2f401..ec01e0a49 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -6,14 +6,11 @@ import ( "strings" "testing" - "github.com/StackExchange/dnscontrol/v4/models" "github.com/StackExchange/dnscontrol/v4/providers" _ "github.com/StackExchange/dnscontrol/v4/providers/_all" ) func TestDNSProviders(t *testing.T) { - models.DefaultTTL = 600 // Avoid problems due to minimum TTLs - provider, domain, cfg := getProvider(t) if provider == nil { return