More Middleware -> Plugin conversions (#1088)

Forgot about these.
This commit is contained in:
Miek Gieben
2017-09-16 14:13:28 +01:00
committed by GitHub
parent 6f874f0bd1
commit be47709270
15 changed files with 23 additions and 23 deletions

View File

@@ -12,8 +12,8 @@ import (
// and check if it is really there, but running coredns -plugins.
// Dangerous test as it messes with your git tree, maybe use tag?
func testExternalMiddlewareCompile(t *testing.T) {
if err := addExampleMiddleware(); err != nil {
func testExternalPluginCompile(t *testing.T) {
if err := addExamplePlugin(); err != nil {
t.Fatal(err)
}
defer run(t, gitReset)
@@ -50,7 +50,7 @@ func run(t *testing.T, c *exec.Cmd) ([]byte, error) {
}
func addExampleMiddleware() error {
func addExamplePlugin() error {
f, err := os.OpenFile("../plugin.cfg", os.O_APPEND|os.O_WRONLY, os.ModeAppend)
if err != nil {
return err