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

TTL warnings should be more verbose (#2069)

This commit is contained in:
Tom Limoncelli
2023-02-15 10:00:02 -05:00
committed by GitHub
parent 1fda0de4d9
commit 17a43cb0a9
2 changed files with 101 additions and 29 deletions

View File

@ -2,7 +2,6 @@ package normalize
import (
"fmt"
"reflect"
"testing"
"github.com/StackExchange/dnscontrol/v3/models"
@ -355,16 +354,6 @@ func TestCheckDuplicates_dup_ns(t *testing.T) {
}
}
func TestUniq(t *testing.T) {
a := []uint32{1, 2, 2, 3, 4, 5, 5, 6}
expected := []uint32{1, 2, 3, 4, 5, 6}
r := uniq(a)
if !reflect.DeepEqual(r, expected) {
t.Error("Deduplicated slice is different than expected")
}
}
func TestCheckLabelHasMultipleTTLs(t *testing.T) {
records := []*models.RecordConfig{
// different ttl per record