mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUG: diff2 doesn't process IGNORE_TARGET() correctly (#2338)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@@ -243,7 +243,7 @@ func matchAny(uconfigs []*models.UnmanagedConfig, rec *models.RecordConfig) bool
|
||||
for _, uc := range uconfigs {
|
||||
if matchLabel(uc.LabelGlob, rec.GetLabel()) &&
|
||||
matchType(uc.RTypeMap, rec.Type) &&
|
||||
matchTarget(uc.TargetGlob, rec.GetLabel()) {
|
||||
matchTarget(uc.TargetGlob, rec.GetTargetField()) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,8 +88,8 @@ func handsoffHelper(t *testing.T, existingZone, desiredJs string, noPurge bool,
|
||||
|
||||
if resultWanted != resultActual {
|
||||
testifyrequire.Equal(t,
|
||||
resultActual,
|
||||
resultWanted,
|
||||
resultActual,
|
||||
"GOT =\n```\n%s```\nWANT=\n```%s```\nINPUTS=\n```\n%s\n```\n",
|
||||
resultActual,
|
||||
resultWanted,
|
||||
@@ -230,7 +230,7 @@ D("f.com", "none",
|
||||
`
|
||||
handsoffHelper(t, existingZone, desiredJs, true, `
|
||||
IGNORED:
|
||||
FOREIGN:
|
||||
_2222222222222222.cr CNAME _333333.nnn.acm-validations.aws.
|
||||
FOREIGN:
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user