mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
middleware/root: add it (#330)
This PR adds the *root* middleware that specifies a path where all zone file (the *file* middleware is the only consumer now) can be found. It works the same as in Caddy. Documentation can be found in the README.md of the middleware. Fixes #307
This commit is contained in:
@@ -29,7 +29,7 @@ func TestSecondaryParse(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
c := caddy.NewTestController("secondary", test.inputFileRules)
|
||||
c := caddy.NewTestController("dns", test.inputFileRules)
|
||||
_, err := secondaryParse(c)
|
||||
|
||||
if err == nil && test.shouldErr {
|
||||
|
||||
Reference in New Issue
Block a user