From fbd5c6f3107ae349a3f62c5b9d53504411ccd848 Mon Sep 17 00:00:00 2001 From: sh0rez Date: Mon, 27 May 2019 19:14:31 +0200 Subject: [PATCH] test(discovery/kubernetes): add container_is_init label to tests Adds the new container_is_init label to the current tests to make them pass again Signed-off-by: sh0rez --- discovery/kubernetes/pod_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/discovery/kubernetes/pod_test.go b/discovery/kubernetes/pod_test.go index fecdbffd9..26bf5bff3 100644 --- a/discovery/kubernetes/pod_test.go +++ b/discovery/kubernetes/pod_test.go @@ -128,6 +128,7 @@ func expectedPodTargetGroups(ns string) map[string]*targetgroup.Group { "__meta_kubernetes_pod_container_port_name": "testport", "__meta_kubernetes_pod_container_port_number": "9000", "__meta_kubernetes_pod_container_port_protocol": "TCP", + "__meta_kubernetes_pod_container_is_init": "false", }, }, Labels: model.LabelSet{ @@ -164,6 +165,7 @@ func TestPodDiscoveryBeforeRun(t *testing.T) { "__meta_kubernetes_pod_container_port_name": "testport0", "__meta_kubernetes_pod_container_port_number": "9000", "__meta_kubernetes_pod_container_port_protocol": "TCP", + "__meta_kubernetes_pod_container_is_init": "false", }, { "__address__": "1.2.3.4:9001", @@ -171,10 +173,12 @@ func TestPodDiscoveryBeforeRun(t *testing.T) { "__meta_kubernetes_pod_container_port_name": "testport1", "__meta_kubernetes_pod_container_port_number": "9001", "__meta_kubernetes_pod_container_port_protocol": "UDP", + "__meta_kubernetes_pod_container_is_init": "false", }, { - "__address__": "1.2.3.4", - "__meta_kubernetes_pod_container_name": "testcontainer1", + "__address__": "1.2.3.4", + "__meta_kubernetes_pod_container_name": "testcontainer1", + "__meta_kubernetes_pod_container_is_init": "false", }, }, Labels: model.LabelSet{