aboutsummaryrefslogtreecommitdiff
path: root/middleware/autopath/autopath_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-08-18 12:57:23 +0100
committerGravatar GitHub <noreply@github.com> 2017-08-18 12:57:23 +0100
commitcc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e (patch)
treeb1124a42abe78eff2b7944b2b65895522133b61c /middleware/autopath/autopath_test.go
parent5a1875120cceeaa90f065a4fa7dccffb8c535a71 (diff)
downloadcoredns-cc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e.tar.gz
coredns-cc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e.tar.zst
coredns-cc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e.zip
mw/autopath: integration test with erratic (#930)
Add integration test with erratic. For this erratic now also returns an autopath searchpath. This tests the whole chain; i.e registring a searchfunction and calling that from autopath. This tests does a autopathing domain and a non-autopathing one.
Diffstat (limited to 'middleware/autopath/autopath_test.go')
-rw-r--r--middleware/autopath/autopath_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/autopath/autopath_test.go b/middleware/autopath/autopath_test.go
index ca1290e26..b99744ab8 100644
--- a/middleware/autopath/autopath_test.go
+++ b/middleware/autopath/autopath_test.go
@@ -158,7 +158,7 @@ func TestInSearchPath(t *testing.T) {
{"a.b.svc.cluster.local.", false},
}
for i, tc := range tests {
- got := a.FirstInSearchPath(tc.qname)
+ got := firstInSearchPath(tc.qname, a.search)
if got != tc.b {
t.Errorf("Test %d, got %v, expected %v", i, got, tc.b)
}