middleware/file: proper support for wildcard (#323)

Add support for wildcard records, while taking care of wildcard-cnames
and DNSSEC. Add enough tests to check all the corner cases.
This commit is contained in:
Miek Gieben
2016-10-08 15:22:31 +01:00
committed by GitHub
parent b44d82839f
commit e43384b501
13 changed files with 437 additions and 187 deletions

View File

@@ -42,8 +42,6 @@ func TestWhoami(t *testing.T) {
rec := dnsrecorder.New(&test.ResponseWriter{})
code, err := wh.ServeDNS(ctx, rec, req)
t.Logf("%s\n", rec.Msg)
if err != tc.expectedErr {
t.Errorf("Test %d: Expected error %v, but got %v", i, tc.expectedErr, err)
}