deploy: add missing failure trap
@@ -197,7 +197,12 @@ var _ = g.Describe("deploymentconfigs", func() {
})
})
- g.It("should respect image stream tag reference policy [Conformance]", func() {
+ g.Describe("should respect image stream tag reference policy [Conformance]", func() {
+ g.AfterEach(func() {
+ failureTrap(oc, "deployment-image-resolution", g.CurrentGinkgoTestDescription().Failed)
+ })
+
+ g.It("resolve the image pull spec", func() {
o.Expect(oc.Run("create").Args("-f", resolutionFixture).Execute()).NotTo(o.HaveOccurred())
name := "deployment-image-resolution"
@@ -227,6 +232,7 @@ var _ = g.Describe("deploymentconfigs", func() {
o.Expect(dc.Spec.Triggers[2].ImageChangeParams.LastTriggeredImage).To(o.Equal(directReference))
o.Expect(dc.Spec.Template.Spec.Containers[1].Image).To(o.Equal(directReference))
})
+ })
g.Describe("with test deployments [Conformance]", func() {
g.AfterEach(func() {
