mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
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>
This commit is contained in:
parent
cfa253ae06
commit
fbd5c6f310
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user