diff options
Diffstat (limited to 'plugin/kubernetes/ns_test.go')
-rw-r--r-- | plugin/kubernetes/ns_test.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugin/kubernetes/ns_test.go b/plugin/kubernetes/ns_test.go index abc5fa935..3ad12cb29 100644 --- a/plugin/kubernetes/ns_test.go +++ b/plugin/kubernetes/ns_test.go @@ -99,7 +99,6 @@ func (APIConnTest) GetNamespaceByName(name string) (*object.Namespace, error) { } func TestNsAddrs(t *testing.T) { - k := New([]string{"inter.webs.test."}) k.APIConn = &APIConnTest{} k.localIPs = []net.IP{net.ParseIP("10.244.0.20")} @@ -108,7 +107,6 @@ func TestNsAddrs(t *testing.T) { if len(cdrs) != 3 { t.Fatalf("Expected 3 results, got %v", len(cdrs)) - } cdr := cdrs[0] expected := "10.0.0.111" @@ -140,7 +138,6 @@ func TestNsAddrs(t *testing.T) { } func TestNsAddrsExternal(t *testing.T) { - k := New([]string{"example.com."}) k.APIConn = &APIConnTest{} k.localIPs = []net.IP{net.ParseIP("10.244.0.20")} @@ -150,7 +147,6 @@ func TestNsAddrsExternal(t *testing.T) { if len(cdrs) != 0 { t.Fatalf("Expected 0 results, got %v", len(cdrs)) - } // Add an external IP to one of the services ... @@ -159,7 +155,6 @@ func TestNsAddrsExternal(t *testing.T) { if len(cdrs) != 1 { t.Fatalf("Expected 1 results, got %v", len(cdrs)) - } cdr := cdrs[0] expected := "1.2.3.4" @@ -170,5 +165,4 @@ func TestNsAddrsExternal(t *testing.T) { if cdr.Header().Name != expected { t.Errorf("Expected record name to be %q, got %q", expected, cdr.Header().Name) } - } |