mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user