mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Random fixes (#605)
This commit is contained in:
		| @@ -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). | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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(), | ||||||
|   | |||||||
| @@ -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) |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user