aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-09-16 14:13:28 +0100
committerGravatar GitHub <noreply@github.com> 2017-09-16 14:13:28 +0100
commitbe4770927048627b59a6ce80587d668d7c028518 (patch)
tree2a90130bb39467ff2ea879c8b4f204c39c64cf43 /test
parent6f874f0bd12f70efb31c88945dd66293a781604e (diff)
downloadcoredns-be4770927048627b59a6ce80587d668d7c028518.tar.gz
coredns-be4770927048627b59a6ce80587d668d7c028518.tar.zst
coredns-be4770927048627b59a6ce80587d668d7c028518.zip
More Middleware -> Plugin conversions (#1088)
Forgot about these.
Diffstat (limited to 'test')
-rw-r--r--test/etcd_cache_test.go2
-rw-r--r--test/etcd_test.go4
-rw-r--r--test/external_test.go6
3 files changed, 6 insertions, 6 deletions
diff --git a/test/etcd_cache_test.go b/test/etcd_cache_test.go
index a927a08f8..b14374455 100644
--- a/test/etcd_cache_test.go
+++ b/test/etcd_cache_test.go
@@ -32,7 +32,7 @@ func TestEtcdCache(t *testing.T) {
}
defer ex.Stop()
- etc := etcdMiddleware()
+ etc := etcdPlugin()
log.SetOutput(ioutil.Discard)
var ctx = context.TODO()
diff --git a/test/etcd_test.go b/test/etcd_test.go
index 66502e8dc..fcd1ddced 100644
--- a/test/etcd_test.go
+++ b/test/etcd_test.go
@@ -20,7 +20,7 @@ import (
"golang.org/x/net/context"
)
-func etcdMiddleware() *etcd.Etcd {
+func etcdPlugin() *etcd.Etcd {
etcdCfg := etcdc.Config{
Endpoints: []string{"http://localhost:2379"},
}
@@ -53,7 +53,7 @@ func TestEtcdStubAndProxyLookup(t *testing.T) {
}
defer ex.Stop()
- etc := etcdMiddleware()
+ etc := etcdPlugin()
log.SetOutput(ioutil.Discard)
var ctx = context.TODO()
diff --git a/test/external_test.go b/test/external_test.go
index 6b014552c..86799e320 100644
--- a/test/external_test.go
+++ b/test/external_test.go
@@ -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