hetzner: set min TTL to 60s (#1666)

This commit is contained in:
john dev 2022-06-30 10:55:08 +02:00 committed by GitHub
parent 0e614c1d0b
commit 806ef243d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ import (
"github.com/go-acme/lego/v4/providers/dns/hetzner/internal" "github.com/go-acme/lego/v4/providers/dns/hetzner/internal"
) )
const minTTL = 600 const minTTL = 60
// Environment variables names. // Environment variables names.
const ( const (

View file

@ -74,8 +74,8 @@ func TestNewDNSProviderConfig(t *testing.T) {
{ {
desc: "invalid TTL", desc: "invalid TTL",
apiKey: "123", apiKey: "123",
ttl: 60, ttl: 10,
expected: "hetzner: invalid TTL, TTL (60) must be greater than 600", expected: "hetzner: invalid TTL, TTL (10) must be greater than 60",
}, },
} }