mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
TESTING: Fail cleaner if no domain set (#998)
This commit is contained in:
@@ -65,6 +65,10 @@ func TestDNSProviders(t *testing.T) {
|
|||||||
if provider == nil {
|
if provider == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if domain == "" {
|
||||||
|
t.Fatal("NO DOMAIN SET! Exiting!")
|
||||||
|
}
|
||||||
|
|
||||||
t.Run(domain, func(t *testing.T) {
|
t.Run(domain, func(t *testing.T) {
|
||||||
runTests(t, provider, domain, fails, cfg)
|
runTests(t, provider, domain, fails, cfg)
|
||||||
})
|
})
|
||||||
@@ -255,6 +259,9 @@ func TestDualProviders(t *testing.T) {
|
|||||||
if p == nil {
|
if p == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if domain == "" {
|
||||||
|
t.Fatal("NO DOMAIN SET! Exiting!")
|
||||||
|
}
|
||||||
dc := getDomainConfigWithNameservers(t, p, domain)
|
dc := getDomainConfigWithNameservers(t, p, domain)
|
||||||
// clear everything
|
// clear everything
|
||||||
run := func() {
|
run := func() {
|
||||||
|
Reference in New Issue
Block a user