mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Raise error if regexp and template are not specified together (#2884)
Signed-off-by: Xiao An <hac@zju.edu.cn>
This commit is contained in:
@@ -75,6 +75,13 @@ func TestAutoParse(t *testing.T) {
|
||||
}`,
|
||||
true, "/tmp", "bliep", `(.*)`, 10 * time.Second, nil,
|
||||
},
|
||||
// no template specified.
|
||||
{
|
||||
`auto {
|
||||
directory /tmp (.*)
|
||||
}`,
|
||||
true, "/tmp", "", `(.*)`, 60 * time.Second, nil,
|
||||
},
|
||||
// no directory specified.
|
||||
{
|
||||
`auto example.org {
|
||||
|
||||
Reference in New Issue
Block a user