forked from snowdrop/godaddy-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_test.go
38 lines (30 loc) · 978 Bytes
/
main_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"github.com/cert-manager/cert-manager/test/acme"
"os"
"testing"
"time"
)
var (
zone = os.Getenv("TEST_ZONE_NAME")
)
func TestRunsSuite(t *testing.T) {
// The manifest path should contain a file named config.json that is a
// snippet of valid configuration that should be included on the
// ChallengeRequest passed as part of the test cases.
pollTime, _ := time.ParseDuration("5s")
timeOut, _ := time.ParseDuration("3m")
fixture := dns.NewFixture(&godaddyDNSSolver{},
dns.SetResolvedZone(zone),
dns.SetAllowAmbientCredentials(false),
dns.SetManifestPath("testdata/godaddy"),
dns.SetUseAuthoritative(false),
// Disable the extended test as godaddy do not support to create several records for the same Record DNS Name !!
dns.SetStrict(false),
// Increase the poll interval to 10s
dns.SetPollInterval(pollTime),
// Increase the limit from 2 min to 5 min
dns.SetPropagationLimit(timeOut),
)
fixture.RunConformance(t)
}