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

Letting you run only some tests. Way to document failures in individual providers and skip.

This commit is contained in:
Craig Peterson
2017-03-20 21:28:43 -06:00
parent 2e997d6a51
commit 2ac43a424b
4 changed files with 56 additions and 16 deletions

View File

@@ -323,10 +323,12 @@ func init() {
func removeOtherNS(dc *models.DomainConfig) {
newList := make([]*models.RecordConfig, 0, len(dc.Records))
for _, rec := range dc.Records {
if rec.Type == "NS" && rec.NameFQDN == dc.Name {
if !strings.HasSuffix(rec.Target, ".dnsimple.com.") {
fmt.Printf("Warning: dnsimple.com does not allow NS records on base domain to be modified. %s will not be added.", rec.Target)
if rec.Type == "NS" {
// apex NS inside dnsimple are expected.
if rec.NameFQDN == dc.Name && strings.HasSuffix(rec.Target, ".dnsimple.com.") {
continue
}
fmt.Printf("Warning: dnsimple.com does not allow NS records to be modified. %s will not be added.\n", rec.Target)
continue
}
newList = append(newList, rec)