mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Fully deprecate TIMEOUT and NO_RELOAD (#2742)
* Fully deprecate NO_RELOAD Signed-off-by: Xiao An <hac@zju.edu.cn> * Fully deprecate TIMEOUT Signed-off-by: Xiao An <hac@zju.edu.cn> * Update CI tests to adapt to the deprecation of TIMEOUT Signed-off-by: Xiao An <hac@zju.edu.cn> * Add documents for directive transfer in plugin auto Signed-off-by: Xiao An <hac@zju.edu.cn>
This commit is contained in:
@@ -26,18 +26,6 @@ func TestFileParse(t *testing.T) {
|
||||
shouldErr bool
|
||||
expectedZones Zones
|
||||
}{
|
||||
{
|
||||
`file ` + zoneFileName1 + ` miek.nl {
|
||||
transfer from 127.0.0.1
|
||||
}`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file ` + zoneFileName1 + ` miek.nl.`,
|
||||
false,
|
||||
@@ -60,12 +48,32 @@ func TestFileParse(t *testing.T) {
|
||||
false, // OK for now as we disregard any options for the `upstream`.
|
||||
Zones{Names: []string{"example.net."}},
|
||||
},
|
||||
// errors.
|
||||
{
|
||||
`file ` + zoneFileName1 + ` miek.nl {
|
||||
transfer from 127.0.0.1
|
||||
}`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file ` + zoneFileName1 + ` example.net. {
|
||||
no_reload
|
||||
}`,
|
||||
true,
|
||||
Zones{},
|
||||
},
|
||||
{
|
||||
`file ` + zoneFileName1 + ` example.net. {
|
||||
no_rebloat
|
||||
}`,
|
||||
true,
|
||||
Zones{Names: []string{}},
|
||||
Zones{},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user