Use a more stable and predictable command to exercise failing pre-hooks
with retries. The former command assumed specific Docker 1.10 behavior
whereby missing commands produced error messages in the container output
stream, an assumption which no longer holds true in Docker 1.12.
The fixture and test assertions should now be portable across Docker
versions.
Fixes https://github.com/openshift/origin/issues/11630
... | ... |
@@ -584,7 +584,7 @@ var _ = g.Describe("deploymentconfigs", func() { |
584 | 584 |
|
585 | 585 |
g.By(fmt.Sprintf("checking the logs for substrings\n%s", out)) |
586 | 586 |
o.Expect(out).To(o.ContainSubstring("--> pre: Running hook pod ...")) |
587 |
- o.Expect(out).To(o.ContainSubstring("no such file or directory")) |
|
587 |
+ o.Expect(out).To(o.ContainSubstring("pre hook logs")) |
|
588 | 588 |
o.Expect(out).To(o.ContainSubstring("--> pre: Retrying hook pod (retry #1)")) |
589 | 589 |
}) |
590 | 590 |
}) |