aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/lookup_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2018-02-14 15:11:26 -0500
committerGravatar Miek Gieben <miek@miek.nl> 2018-02-14 21:11:26 +0100
commit71ee323651ffed5d09aa22ea8d17eefbac2f6d08 (patch)
treec9fb894a5de2dc34dd14b66057856244d8b28203 /plugin/etcd/lookup_test.go
parentee8084a08f8cfcd4357ae2ad0b6dff51ca322d3a (diff)
downloadcoredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.gz
coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.zst
coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.zip
plugin/kubernetes: Add upstream @self and loop count (#1484)
* add upstream @self and loop count * 1st round of feedback * allow argless upstream * update test * readmes * feedback
Diffstat (limited to 'plugin/etcd/lookup_test.go')
-rw-r--r--plugin/etcd/lookup_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/etcd/lookup_test.go b/plugin/etcd/lookup_test.go
index a44f0dcd7..b25637fd8 100644
--- a/plugin/etcd/lookup_test.go
+++ b/plugin/etcd/lookup_test.go
@@ -10,6 +10,7 @@ import (
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/tls"
+ "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/plugin/test"
@@ -227,8 +228,9 @@ func newEtcdPlugin() *Etcd {
tlsc, _ := tls.NewTLSConfigFromArgs()
client, _ := newEtcdClient(endpoints, tlsc)
+ p := proxy.NewLookup([]string{"8.8.8.8:53"})
return &Etcd{
- Proxy: proxy.NewLookup([]string{"8.8.8.8:53"}),
+ Upstream: upstream.Upstream{Forward: &p},
PathPrefix: "skydns",
Ctx: context.Background(),
Zones: []string{"skydns.test.", "skydns_extra.test.", "in-addr.arpa."},