diff options
author | 2016-11-29 09:54:57 +0000 | |
---|---|---|
committer | 2016-11-29 09:54:57 +0000 | |
commit | 4cfd19c7c97490dac47cd748166ec3f976e315aa (patch) | |
tree | 333b9851d6c5c80a374bf1084d2e012402710a87 /middleware/root/root_test.go | |
parent | a1b9f96d876483b4356dddd83c24896d867e843c (diff) | |
download | coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.gz coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.zst coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.zip |
middleware/httpproxy: add debug queries (#446)
* middleware/httproxy: implement debug queries
Not too useful at the moment, but o-o.debug queries are supported
and return the Comment from dns.google.com.
Note that this is not always set.
* improve documentation
* Testing cleanups
Diffstat (limited to 'middleware/root/root_test.go')
-rw-r--r-- | middleware/root/root_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/middleware/root/root_test.go b/middleware/root/root_test.go index 06c81a05e..434c82dfd 100644 --- a/middleware/root/root_test.go +++ b/middleware/root/root_test.go @@ -3,6 +3,7 @@ package root import ( "fmt" "io/ioutil" + "log" "os" "path/filepath" "strings" @@ -14,6 +15,8 @@ import ( ) func TestRoot(t *testing.T) { + log.SetOutput(ioutil.Discard) + // Predefined error substrings parseErrContent := "Parse error:" unableToAccessErrContent := "Unable to access root path" |