mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
fix(plugin/secondary): make transfer property mandatory (#7249)
* fix(plugin/secondary): make transfer property mandatory Signed-off-by: wafuwafu13 <jaruwafu@gmail.com>
This commit is contained in:
committed by
GitHub
parent
427b406300
commit
328165de1e
@@ -13,12 +13,6 @@ func TestSecondaryParse(t *testing.T) {
|
||||
transferFrom string
|
||||
zones []string
|
||||
}{
|
||||
{
|
||||
`secondary`,
|
||||
false, // TODO(miek): should actually be true, because without transfer lines this does not make sense
|
||||
"",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
`secondary {
|
||||
transfer from 127.0.0.1
|
||||
@@ -35,6 +29,20 @@ func TestSecondaryParse(t *testing.T) {
|
||||
"127.0.0.1:53",
|
||||
[]string{"example.org."},
|
||||
},
|
||||
{
|
||||
`secondary`,
|
||||
true,
|
||||
"",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
`secondary example.org {
|
||||
transferr from 127.0.0.1
|
||||
}`,
|
||||
true,
|
||||
"",
|
||||
nil,
|
||||
},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user