Random fixes (#605)

This commit is contained in:
Miek Gieben 2017-03-18 17:08:39 +00:00 committed by GitHub
parent 830fdfd26d
commit 72f5a92d30
3 changed files with 4 additions and 2 deletions

View file

@ -51,7 +51,7 @@ proxy FROM TO... {
* `protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain * `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 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 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 An out-of-tree middleware that implements the server side of this can be found at
[here](https://github.com/infobloxopen/coredns-grpc). [here](https://github.com/infobloxopen/coredns-grpc).

View file

@ -2,6 +2,7 @@ package proxy
import ( import (
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
@ -14,6 +15,8 @@ import (
) )
func TestHealthCheck(t *testing.T) { func TestHealthCheck(t *testing.T) {
log.SetOutput(ioutil.Discard)
upstream := &staticUpstream{ upstream := &staticUpstream{
from: ".", from: ".",
Hosts: testPool(), Hosts: testPool(),

View file

@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) {
if len(d.Extra) != 2 { if len(d.Extra) != 2 {
t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra)) t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra))
} }
t.Logf("Message %v\n", d)
} }