Remove the word middleware (#1067)
* Rename middleware to plugin first pass; mostly used 'sed', few spots where I manually changed text. This still builds a coredns binary. * fmt error * Rename AddMiddleware to AddPlugin * Readd AddMiddleware to remain backwards compat
This commit is contained in:
parent
b984aa4559
commit
d8714e64e4
354 changed files with 974 additions and 969 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
// Go get external example middleware, compile it into CoreDNS
|
||||
// Go get external example plugin, compile it into CoreDNS
|
||||
// and check if it is really there, but running coredns -plugins.
|
||||
|
||||
// Dangerous test as it messes with your git tree, maybe use tag?
|
||||
|
@ -36,7 +36,7 @@ func testExternalMiddlewareCompile(t *testing.T) {
|
|||
}
|
||||
|
||||
if !strings.Contains(string(out), "dns.example") {
|
||||
t.Fatal("dns.example middleware should be there")
|
||||
t.Fatal("dns.example plugin should be there")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ func run(t *testing.T, c *exec.Cmd) ([]byte, error) {
|
|||
}
|
||||
|
||||
func addExampleMiddleware() error {
|
||||
f, err := os.OpenFile("../middleware.cfg", os.O_APPEND|os.O_WRONLY, os.ModeAppend)
|
||||
f, err := os.OpenFile("../plugin.cfg", os.O_APPEND|os.O_WRONLY, os.ModeAppend)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue