Add additional loging to max_pods e2e test

pull/6/head
gmarek 2015-07-06 18:26:33 +02:00
parent 34dd9c7880
commit 460935236d
1 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,13 @@ var _ = Describe("MaxPods", func() {
By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster and trying to start a new one", podsNeededForSaturation))
expectNoError(RunRC(config))
// Log the amount of pods running in the cluster.
// TODO: remove when test is fixed.
pods, err = c.Pods(api.NamespaceAll).List(labels.Everything(), fields.Set{
"status.phase": "Running",
}.AsSelector())
Logf("Observed %v running Pods. Need %v to fully saturate the cluster.", len(pods.Items), totalPodCapacity)
_, err = c.Pods(ns).Create(&api.Pod{
TypeMeta: api.TypeMeta{
Kind: "Pod",