Skip to content

Commit

Permalink
deploy: check the dc conditions instead of relying on deployer logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed May 30, 2017
1 parent fce1a37 commit 5d3d45c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/extended/deployments/deployments.go
Expand Up @@ -254,7 +254,10 @@ var _ = g.Describe("deploymentconfigs", func() {
g.By(fmt.Sprintf("checking the logs for substrings\n%s", out))
o.Expect(out).To(o.ContainSubstring("deployment-test-1 to 2"))
o.Expect(out).To(o.ContainSubstring("--> pre: Success"))
o.Expect(out).To(o.ContainSubstring("--> Success"))
// FIXME: In some cases the last log messages is lost because of the journald rate
// limiter bug. For this test it should be enough to verify the deployment is marked
// as complete. We should uncomment this once the rate-limiter issues are fixed.
// o.Expect(out).To(o.ContainSubstring("--> Success"))

g.By("verifying the deployment is marked complete and scaled to zero")
o.Expect(waitForLatestCondition(oc, "deployment-test", deploymentRunTimeout, deploymentReachedCompletion)).NotTo(o.HaveOccurred())
Expand Down Expand Up @@ -304,7 +307,10 @@ var _ = g.Describe("deploymentconfigs", func() {
o.Expect(out).To(o.ContainSubstring(fmt.Sprintf("deployment-test-%d up to 1", i+2)))
o.Expect(out).To(o.ContainSubstring("--> pre: Success"))
o.Expect(out).To(o.ContainSubstring("test pre hook executed"))
o.Expect(out).To(o.ContainSubstring("--> Success"))
// FIXME: In some cases the last log messages is lost because of the journald rate
// limiter bug. For this test it should be enough to verify the deployment is marked
// as complete. We should uncomment this once the rate-limiter issues are fixed.
// o.Expect(out).To(o.ContainSubstring("--> Success"))
}
})
})
Expand Down Expand Up @@ -496,7 +502,10 @@ var _ = g.Describe("deploymentconfigs", func() {
o.Expect(out).To(o.ContainSubstring("--> Reached 50%"))
o.Expect(out).To(o.ContainSubstring("Halfway"))
o.Expect(out).To(o.ContainSubstring("Finished"))
o.Expect(out).To(o.ContainSubstring("--> Success"))
// FIXME: In some cases the last log messages is lost because of the journald rate
// limiter bug. For this test it should be enough to verify the deployment is marked
// as complete. We should uncomment this once the rate-limiter issues are fixed.
// o.Expect(out).To(o.ContainSubstring("--> Success"))
})
})

Expand Down

0 comments on commit 5d3d45c

Please sign in to comment.