From 1fe66443a7103963c410a3df09a818f7d14d0519 Mon Sep 17 00:00:00 2001 From: DO ANH TUAN <42203940+datuanmac@users.noreply.github.com> Date: Sun, 17 Feb 2019 15:31:58 +0700 Subject: [PATCH] Remove unused test case (#2562) --- plugin/dnssec/dnssec_test.go | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/plugin/dnssec/dnssec_test.go b/plugin/dnssec/dnssec_test.go index 8f3a3ba65..e60b5ee7e 100644 --- a/plugin/dnssec/dnssec_test.go +++ b/plugin/dnssec/dnssec_test.go @@ -95,37 +95,6 @@ func TestSigningCname(t *testing.T) { } } -// Disabled for now, see #1211. -func testZoneSigningDelegation(t *testing.T) { - d, rm1, rm2 := newDnssec(t, []string{"miek.nl."}) - defer rm1() - defer rm2() - - m := testDelegationMsg() - state := request.Request{Req: m, Zone: "miek.nl."} - m = d.Sign(state, time.Now().UTC(), server) - if !section(m.Ns, 1) { - t.Errorf("Authority section should have 1 RRSIG") - t.Logf("%v\n", m) - } - - ds := 0 - for i := range m.Ns { - if _, ok := m.Ns[i].(*dns.DS); ok { - ds++ - } - } - if ds != 1 { - t.Errorf("Authority section should have 1 DS") - t.Logf("%v\n", m) - - } - if !section(m.Extra, 0) { - t.Errorf("Answer section should have 0 RRSIGs") - t.Logf("%v\n", m) - } -} - func TestSigningDname(t *testing.T) { d, rm1, rm2 := newDnssec(t, []string{"miek.nl."}) defer rm1()