diff options
author | 2019-09-05 09:07:55 -0400 | |
---|---|---|
committer | 2019-09-05 09:07:55 -0400 | |
commit | 630d3d60b9fa3b9c1f070e4aa0504e50a85d70c2 (patch) | |
tree | b9b95d55ecca3964142f6d064b48065f1cb5128b /plugin/kubernetes/kubernetes_apex_test.go | |
parent | d79562842aacfa5808ec0b8d160d720470ece060 (diff) | |
download | coredns-630d3d60b9fa3b9c1f070e4aa0504e50a85d70c2.tar.gz coredns-630d3d60b9fa3b9c1f070e4aa0504e50a85d70c2.tar.zst coredns-630d3d60b9fa3b9c1f070e4aa0504e50a85d70c2.zip |
plugin/kubernetes: Handle multiple local IPs and bind (#3208)
* use all local IPs
* mult/bind ips
* gofmt + boundIPs fix
* fix no matching endpoint case
* don't duplicate NS records in answer
* fix answer dedup
* fix comment
* add multi local ip test case
Diffstat (limited to 'plugin/kubernetes/kubernetes_apex_test.go')
-rw-r--r-- | plugin/kubernetes/kubernetes_apex_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/kubernetes/kubernetes_apex_test.go b/plugin/kubernetes/kubernetes_apex_test.go index 9a91ea2e2..5d2f4079b 100644 --- a/plugin/kubernetes/kubernetes_apex_test.go +++ b/plugin/kubernetes/kubernetes_apex_test.go @@ -2,6 +2,7 @@ package kubernetes import ( "context" + "net" "testing" "github.com/coredns/coredns/plugin/pkg/dnstest" @@ -63,6 +64,7 @@ func TestServeDNSApex(t *testing.T) { k := New([]string{"cluster.local."}) k.APIConn = &APIConnServeTest{} k.Next = test.NextHandler(dns.RcodeSuccess, nil) + k.localIPs = []net.IP{net.ParseIP("127.0.0.1")} ctx := context.TODO() for i, tc := range kubeApexCases { @@ -85,7 +87,7 @@ func TestServeDNSApex(t *testing.T) { } if err := test.SortAndCheck(resp, tc); err != nil { - t.Error(err) + t.Errorf("Test %d: %v", i, err) } } } |