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:
Miek Gieben
2017-08-18 12:57:23 +01:00
committed by GitHub
parent 5a1875120c
commit cc4e4a0626
9 changed files with 126 additions and 22 deletions

View File

@@ -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)
}