aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/cname_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2018-02-16 03:44:50 -0500
committerGravatar Miek Gieben <miek@miek.nl> 2018-02-16 09:44:50 +0100
commitba573c0f407732527209b717866637e4b3093804 (patch)
tree5b5ab41891017b20e9db30a6b7957b1358f74588 /plugin/file/cname_test.go
parentfc1d73ffa9ae193c4cfca4adc194ae43f9360dbb (diff)
downloadcoredns-ba573c0f407732527209b717866637e4b3093804.tar.gz
coredns-ba573c0f407732527209b717866637e4b3093804.tar.zst
coredns-ba573c0f407732527209b717866637e4b3093804.zip
plugin/auto/file/secondary: Use new upstream resolver (#1534)
* move file, auto, secondary to new upstream * include context in request
Diffstat (limited to 'plugin/file/cname_test.go')
-rw-r--r--plugin/file/cname_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/file/cname_test.go b/plugin/file/cname_test.go
index f3b3a7731..1dcc491ae 100644
--- a/plugin/file/cname_test.go
+++ b/plugin/file/cname_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
- "github.com/coredns/coredns/plugin/proxy"
+ "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
@@ -74,7 +74,7 @@ func TestLookupCNAMEExternal(t *testing.T) {
if err != nil {
t.Fatalf("Expected no error when reading zone, got %q", err)
}
- zone.Proxy = proxy.NewLookup([]string{"8.8.8.8:53"}) // TODO(miek): point to local instance
+ zone.Upstream, _ = upstream.NewUpstream([]string{"8.8.8.8:53"}) // TODO(miek): point to local instance
fm := File{Next: test.ErrorHandler(), Zones: Zones{Z: map[string]*Zone{name: zone}, Names: []string{name}}}
ctx := context.TODO()