mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user