diff options
author | 2017-03-18 17:08:39 +0000 | |
---|---|---|
committer | 2017-03-18 17:08:39 +0000 | |
commit | 72f5a92d302637f40cf7f87ee9e8edf8f9943cf7 (patch) | |
tree | 98eb8ddaddf8736a18fe999d053ac8061a21019a | |
parent | 830fdfd26de484a3f9b17c3ea56a2e1dde141e3b (diff) | |
download | coredns-72f5a92d302637f40cf7f87ee9e8edf8f9943cf7.tar.gz coredns-72f5a92d302637f40cf7f87ee9e8edf8f9943cf7.tar.zst coredns-72f5a92d302637f40cf7f87ee9e8edf8f9943cf7.zip |
Random fixes (#605)
-rw-r--r-- | middleware/proxy/README.md | 2 | ||||
-rw-r--r-- | middleware/proxy/upstream_test.go | 3 | ||||
-rw-r--r-- | test/grpc_test.go | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/middleware/proxy/README.md b/middleware/proxy/README.md index f2de2b48f..3b4f3098d 100644 --- a/middleware/proxy/README.md +++ b/middleware/proxy/README.md @@ -51,7 +51,7 @@ proxy FROM TO... { * `protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain old DNS, and `https_google` uses `https://dns.google.com` and speaks a JSON DNS dialect. Note when using this **TO** will be ignored. The `grpc` option will talk to a server that has implemented - the [DnsService](https://github.com/coredns/coredns/middleware/proxy/pb/dns.proto). + the [DnsService](https://github.com/coredns/coredns/pb/dns.proto). An out-of-tree middleware that implements the server side of this can be found at [here](https://github.com/infobloxopen/coredns-grpc). diff --git a/middleware/proxy/upstream_test.go b/middleware/proxy/upstream_test.go index 88fba69c1..587d96994 100644 --- a/middleware/proxy/upstream_test.go +++ b/middleware/proxy/upstream_test.go @@ -2,6 +2,7 @@ package proxy import ( "io/ioutil" + "log" "os" "path/filepath" "strings" @@ -14,6 +15,8 @@ import ( ) func TestHealthCheck(t *testing.T) { + log.SetOutput(ioutil.Discard) + upstream := &staticUpstream{ from: ".", Hosts: testPool(), diff --git a/test/grpc_test.go b/test/grpc_test.go index f7c47b57c..4e01ea8f0 100644 --- a/test/grpc_test.go +++ b/test/grpc_test.go @@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) { if len(d.Extra) != 2 { t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra)) } - t.Logf("Message %v\n", d) } |