mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
middleware/file: fix delegations (#376)
Fix the delegation handling in the *file* and *dnssec* middleware. Refactor tests a bit and show that they are failling. Add a Tree printer, cleanups and tests. Fix wildcard test - should get no answer from empty-non-terminal
This commit is contained in:
@@ -31,7 +31,7 @@ var entTestCases = []test.Case{
|
||||
},
|
||||
}
|
||||
|
||||
func TestLookupENT(t *testing.T) {
|
||||
func TestLookupEnt(t *testing.T) {
|
||||
zone, err := Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin")
|
||||
if err != nil {
|
||||
t.Fatalf("expect no error when reading zone, got %q", err)
|
||||
@@ -73,6 +73,7 @@ func TestLookupENT(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// fdjfdjkf
|
||||
const dbMiekENTNL = `; File written on Sat Apr 2 16:43:11 2016
|
||||
; dnssec_signzone version 9.10.3-P4-Ubuntu
|
||||
miek.nl. 1800 IN SOA linode.atoom.net. miek.miek.nl. (
|
||||
|
||||
Reference in New Issue
Block a user