Modify e2e to wait for RC to stabilize before test

This commit is contained in:
Prashanth Balasubramanian
2016-05-04 13:47:34 -07:00
parent 83c121e921
commit 2d7e2eb09f
2 changed files with 31 additions and 0 deletions

View File

@@ -1052,6 +1052,7 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
if containers == nil || len(containers) != 1 || containers[0].Image != nginxImage {
framework.Failf("Failed creating rc %s for 1 pod with expected image %s", rcName, nginxImage)
}
framework.WaitForRCToStabilize(c, ns, rcName, framework.PodStartTimeout)
By("rolling-update to same image controller")
framework.RunKubectlOrDie("rolling-update", rcName, "--update-period=1s", "--image="+nginxImage, "--image-pull-policy="+string(api.PullIfNotPresent), nsFlag)