diff --git a/docs/_includes/matrix.html b/docs/_includes/matrix.html index b115f59c2..4300186da 100644 --- a/docs/_includes/matrix.html +++ b/docs/_includes/matrix.html @@ -476,7 +476,9 @@ - + + + @@ -518,8 +520,8 @@ - - + + @@ -533,8 +535,8 @@ - - + + @@ -991,8 +993,8 @@ - - + + diff --git a/pkg/normalize/validate_test.go b/pkg/normalize/validate_test.go index a00e524ad..a18e66294 100644 --- a/pkg/normalize/validate_test.go +++ b/pkg/normalize/validate_test.go @@ -23,7 +23,7 @@ func TestCheckLabel(t *testing.T) { {"_foo", "TLSA", "zap", false, false}, {"_foo", "TXT", "zap", false, false}, {"_y2", "CNAME", "foo", true, false}, - {"_y3", "CNAME", "asfljds.acm-validations.aws", false, false}, + {"_y3", "CNAME", "asfljds.acm-validations.aws.", false, false}, {"test.foo.tld", "A", "zap", true, false}, {"test.foo.tld", "A", "zap", false, true}, } diff --git a/pkg/prettyzone/prettyzone_test.go b/pkg/prettyzone/prettyzone_test.go index 0464b6c24..ca0e55dcc 100644 --- a/pkg/prettyzone/prettyzone_test.go +++ b/pkg/prettyzone/prettyzone_test.go @@ -49,7 +49,7 @@ func TestMostCommonTtl(t *testing.T) { records = nil records, e = append(records, r1, r1, r1), 100 x := models.RRstoRCs(records, "bosun.org") - g = mostCommonTTL(x) + g = MostCommonTTL(x) if e != g { t.Fatalf("expected %d; got %d\n", e, g) } @@ -57,7 +57,7 @@ func TestMostCommonTtl(t *testing.T) { // Mixture of TTLs with an obvious winner. records = nil records, e = append(records, r1, r2, r2), 200 - g = mostCommonTTL(models.RRstoRCs(records, "bosun.org")) + g = MostCommonTTL(models.RRstoRCs(records, "bosun.org")) if e != g { t.Fatalf("expected %d; got %d\n", e, g) } @@ -65,7 +65,7 @@ func TestMostCommonTtl(t *testing.T) { // 3-way tie. Largest TTL should be used. records = nil records, e = append(records, r1, r2, r3), 300 - g = mostCommonTTL(models.RRstoRCs(records, "bosun.org")) + g = MostCommonTTL(models.RRstoRCs(records, "bosun.org")) if e != g { t.Fatalf("expected %d; got %d\n", e, g) } @@ -73,7 +73,7 @@ func TestMostCommonTtl(t *testing.T) { // NS records are ignored. records = nil records, e = append(records, r1, r4, r5), 100 - g = mostCommonTTL(models.RRstoRCs(records, "bosun.org")) + g = MostCommonTTL(models.RRstoRCs(records, "bosun.org")) if e != g { t.Fatalf("expected %d; got %d\n", e, g) } @@ -295,7 +295,7 @@ func TestWriteZoneFileSynth(t *testing.T) { recs = append(recs, rsynz) buf := &bytes.Buffer{} - WriteZoneFileRC(buf, recs, "bosun.org", []string{"c1", "c2", "c3\nc4"}) + WriteZoneFileRC(buf, recs, "bosun.org", 0, []string{"c1", "c2", "c3\nc4"}) expected := `$TTL 300 ; c1 ; c2