fix rolling update e2e test

pull/6/head
Prashanth Balasubramanian 2015-06-10 17:58:36 -07:00
parent 5a02fc07d8
commit adc1a26c37
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ kind: ReplicationController
metadata: metadata:
name: update-demo-kitten name: update-demo-kitten
spec: spec:
replicas: 0 replicas: 1
selector: selector:
name: update-demo name: update-demo
version: kitten version: kitten

View File

@ -101,7 +101,8 @@ var _ = Describe("Kubectl client", func() {
validateController(c, nautilusImage, 2, "update-demo", updateDemoSelector, getUDData("nautilus.jpg", ns), ns) validateController(c, nautilusImage, 2, "update-demo", updateDemoSelector, getUDData("nautilus.jpg", ns), ns)
By("rolling-update to new replication controller") By("rolling-update to new replication controller")
runKubectl("rolling-update", "update-demo-nautilus", "--update-period=1s", "-f", kittenPath, fmt.Sprintf("--namespace=%v", ns)) runKubectl("rolling-update", "update-demo-nautilus", "--update-period=1s", "-f", kittenPath, fmt.Sprintf("--namespace=%v", ns))
validateController(c, kittenImage, 2, "update-demo", updateDemoSelector, getUDData("kitten.jpg", ns), ns) // TODO: revisit the expected replicas once #9645 is resolved
validateController(c, kittenImage, 1, "update-demo", updateDemoSelector, getUDData("kitten.jpg", ns), ns)
// Everything will hopefully be cleaned up when the namespace is deleted. // Everything will hopefully be cleaned up when the namespace is deleted.
}) })
}) })