diff options
author | 2017-08-18 12:57:23 +0100 | |
---|---|---|
committer | 2017-08-18 12:57:23 +0100 | |
commit | cc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e (patch) | |
tree | b1124a42abe78eff2b7944b2b65895522133b61c /middleware/autopath/setup_test.go | |
parent | 5a1875120cceeaa90f065a4fa7dccffb8c535a71 (diff) | |
download | coredns-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/setup_test.go')
-rw-r--r-- | middleware/autopath/setup_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/autopath/setup_test.go b/middleware/autopath/setup_test.go index b31110ddb..0f086c5bb 100644 --- a/middleware/autopath/setup_test.go +++ b/middleware/autopath/setup_test.go @@ -33,6 +33,7 @@ func TestSetupAutoPath(t *testing.T) { {`autopath ` + resolv, false, "", "", []string{"bar.com.", "baz.com.", ""}, ""}, // negative {`autopath kubernetes`, true, "", "", nil, "open kubernetes: no such file or directory"}, + {`autopath`, true, "", "", nil, "no resolv-conf"}, } for i, test := range tests { |