aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/setup_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-10-11 20:42:28 +0100
committerGravatar GitHub <noreply@github.com> 2016-10-11 20:42:28 +0100
commit710c9b111f31b9d5f0b280739420b31c95adf14b (patch)
tree911351fb9fab47d9a9f23bbf9723491efb3d3b23 /middleware/file/setup_test.go
parentbaea5eef2fd33f99a0612d413311dc0a15889a77 (diff)
downloadcoredns-710c9b111f31b9d5f0b280739420b31c95adf14b.tar.gz
coredns-710c9b111f31b9d5f0b280739420b31c95adf14b.tar.zst
coredns-710c9b111f31b9d5f0b280739420b31c95adf14b.zip
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
Diffstat (limited to 'middleware/file/setup_test.go')
-rw-r--r--middleware/file/setup_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/file/setup_test.go b/middleware/file/setup_test.go
index 9f37fd688..9fd9e3587 100644
--- a/middleware/file/setup_test.go
+++ b/middleware/file/setup_test.go
@@ -51,7 +51,7 @@ func TestFileParse(t *testing.T) {
}
for i, test := range tests {
- c := caddy.NewTestController("file", test.inputFileRules)
+ c := caddy.NewTestController("dns", test.inputFileRules)
actualZones, err := fileParse(c)
if err == nil && test.shouldErr {