1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CLEANUP: Skip DualProvider tests if Cannot(DocDualHost) (#1345)

* Skip DualProvider tests if Cannot(DocDualHost)
* go generate
* Fix HEXONET domain
This commit is contained in:
Tom Limoncelli
2021-12-21 12:23:11 -05:00
committed by GitHub
parent 9d9d299bb7
commit 9f720d1084
4 changed files with 40 additions and 4 deletions

View File

@ -308,6 +308,10 @@ func TestDualProviders(t *testing.T) {
t.Fatal("NO DOMAIN SET! Exiting!")
}
dc := getDomainConfigWithNameservers(t, p, domain)
if !providers.ProviderHasCapability(*providerToRun, providers.DocDualHost) {
t.Skip("Skipping. DocDualHost == Cannot")
return
}
// clear everything
run := func() {
dom, _ := dc.Copy()