mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
plugins: calling Dispenser itself is a mistake (#3323)
Remove all these uses and just make them work on caddy.Controller. Also don't export parsing functions as their should be private to the plugin. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -21,7 +21,7 @@ func TestConfig(t *testing.T) {
|
||||
}
|
||||
for _, c := range tests {
|
||||
cad := caddy.NewTestController("dns", c.file)
|
||||
conf, err := parseConfig(&cad.Dispenser)
|
||||
conf, err := parseConfig(cad)
|
||||
if c.fail {
|
||||
if err == nil {
|
||||
t.Errorf("%s: %s", c.file, err)
|
||||
|
||||
Reference in New Issue
Block a user