Browse Source

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 <me@shorez.de>
pull/5598/head
sh0rez 6 years ago
parent
commit
fbd5c6f310
No known key found for this signature in database
GPG Key ID: 87C71DF9F8181FF1
  1. 4
      discovery/kubernetes/pod_test.go

4
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",
"__meta_kubernetes_pod_container_is_init": "false",
},
},
Labels: model.LabelSet{

Loading…
Cancel
Save