Commit 8d5d85e1 authored by Piotr Szczesniak's avatar Piotr Szczesniak

Fixed Monitoring e2e test

parent 98e599b4
...@@ -48,8 +48,8 @@ var _ = framework.KubeDescribe("Monitoring", func() { ...@@ -48,8 +48,8 @@ var _ = framework.KubeDescribe("Monitoring", func() {
const ( const (
influxdbService = "monitoring-influxdb" influxdbService = "monitoring-influxdb"
influxdbDatabaseName = "k8s" influxdbDatabaseName = "k8s"
podlistQuery = "show tag values from \"cpu/usage\" with key = pod_id" podlistQuery = "show tag values from \"cpu/usage\" with key = pod_name"
nodelistQuery = "show tag values from \"cpu/usage\" with key = hostname" nodelistQuery = "show tag values from \"cpu/usage\" with key = nodename"
sleepBetweenAttempts = 5 * time.Second sleepBetweenAttempts = 5 * time.Second
testTimeout = 5 * time.Minute testTimeout = 5 * time.Minute
initializationTimeout = 5 * time.Minute initializationTimeout = 5 * time.Minute
...@@ -161,7 +161,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string, ...@@ -161,7 +161,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string,
if pod.DeletionTimestamp != nil { if pod.DeletionTimestamp != nil {
continue continue
} }
expectedPods = append(expectedPods, string(pod.UID)) expectedPods = append(expectedPods, pod.Name)
} }
} }
// Do the same for all deployments. // Do the same for all deployments.
...@@ -176,7 +176,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string, ...@@ -176,7 +176,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string,
if pod.DeletionTimestamp != nil { if pod.DeletionTimestamp != nil {
continue continue
} }
expectedPods = append(expectedPods, string(pod.UID)) expectedPods = append(expectedPods, pod.Name)
} }
} }
// And for pet sets. // And for pet sets.
...@@ -191,7 +191,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string, ...@@ -191,7 +191,7 @@ func verifyExpectedRcsExistAndGetExpectedPods(c clientset.Interface) ([]string,
if pod.DeletionTimestamp != nil { if pod.DeletionTimestamp != nil {
continue continue
} }
expectedPods = append(expectedPods, string(pod.UID)) expectedPods = append(expectedPods, pod.Name)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment