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:
parent
b44d82839f
commit
e43384b501
13 changed files with 437 additions and 187 deletions
|
@ -319,12 +319,9 @@ func TestKubernetesParse(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
t.Logf("Parser test cases count: %v", len(tests))
|
||||
for i, test := range tests {
|
||||
c := caddy.NewTestController("dns", test.input)
|
||||
k8sController, err := kubernetesParse(c)
|
||||
t.Logf("setup test: %2v -- %v\n", i, test.description)
|
||||
//t.Logf("controller: %v\n", k8sController)
|
||||
|
||||
if test.shouldErr && err == nil {
|
||||
t.Errorf("Test %d: Expected error, but did not find error for input '%s'. Error was: '%v'", i, test.input, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue