mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
middleware/file: transfer from does not make sense (#314)
Make it return an error when you use `transfer from` when you're not a secondary. Add tests as well. Fixes #310
This commit is contained in:
@@ -26,6 +26,13 @@ func TestFileParse(t *testing.T) {
|
||||
shouldErr bool
|
||||
expectedZones Zones
|
||||
}{
|
||||
{
|
||||
`file ` + zoneFileName1 + ` miek.nl {
|
||||
transfer from 127.0.0.1
|
||||
}`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file`,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user