diff options
Diffstat (limited to 'plugin/kubernetes/handler_test.go')
-rw-r--r-- | plugin/kubernetes/handler_test.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go index 12ebc2765..f5630ccdd 100644 --- a/plugin/kubernetes/handler_test.go +++ b/plugin/kubernetes/handler_test.go @@ -643,8 +643,9 @@ var epsIndex = map[string][]*object.Endpoints{ }, }, }, - Name: "svc1", + Name: "svc1-slice1", Namespace: "testns", + Index: object.EndpointsKey("svc1", "testns"), }}, "svcempty.testns": {{ Subsets: []object.EndpointSubset{ @@ -655,8 +656,9 @@ var epsIndex = map[string][]*object.Endpoints{ }, }, }, - Name: "svcempty", + Name: "svcempty-slice1", Namespace: "testns", + Index: object.EndpointsKey("svcempty", "testns"), }}, "hdls1.testns": {{ Subsets: []object.EndpointSubset{ @@ -674,8 +676,9 @@ var epsIndex = map[string][]*object.Endpoints{ }, }, }, - Name: "hdls1", + Name: "hdls1-slice1", Namespace: "testns", + Index: object.EndpointsKey("hdls1", "testns"), }}, "hdlsprtls.testns": {{ Subsets: []object.EndpointSubset{ @@ -686,8 +689,9 @@ var epsIndex = map[string][]*object.Endpoints{ Ports: []object.EndpointPort{{Port: -1}}, }, }, - Name: "hdlsprtls", + Name: "hdlsprtls-slice1", Namespace: "testns", + Index: object.EndpointsKey("hdlsprtls", "testns"), }}, } |