@@ -53,6 +53,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
53
53
o .Expect (err ).NotTo (o .HaveOccurred ())
54
54
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonPostCommitHookFailed ))
55
55
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessagePostCommitHookFailed ))
56
+
57
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
56
58
})
57
59
})
58
60
@@ -70,6 +72,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
70
72
o .Expect (err ).NotTo (o .HaveOccurred ())
71
73
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonFetchSourceFailed ))
72
74
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessageFetchSourceFailed ))
75
+
76
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
73
77
})
74
78
})
75
79
@@ -87,6 +91,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
87
91
o .Expect (err ).NotTo (o .HaveOccurred ())
88
92
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonFetchSourceFailed ))
89
93
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessageFetchSourceFailed ))
94
+
95
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
90
96
})
91
97
})
92
98
@@ -104,6 +110,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
104
110
o .Expect (err ).NotTo (o .HaveOccurred ())
105
111
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonPullBuilderImageFailed ))
106
112
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessagePullBuilderImageFailed ))
113
+
114
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
107
115
})
108
116
})
109
117
@@ -121,6 +129,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
121
129
o .Expect (err ).NotTo (o .HaveOccurred ())
122
130
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonPushImageToRegistryFailed ))
123
131
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessagePushImageToRegistryFailed ))
132
+
133
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
124
134
})
125
135
})
126
136
@@ -138,6 +148,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
138
148
o .Expect (err ).NotTo (o .HaveOccurred ())
139
149
o .Expect (build .Status .Reason ).To (o .Equal (reasonAssembleFailed ))
140
150
o .Expect (build .Status .Message ).To (o .Equal (messageAssembleFailed ))
151
+
152
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
141
153
})
142
154
})
143
155
@@ -155,6 +167,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
155
167
o .Expect (err ).NotTo (o .HaveOccurred ())
156
168
o .Expect (build .Status .Reason ).To (o .Equal (reasonFetchRuntimeArtifacts ))
157
169
o .Expect (build .Status .Message ).To (o .Equal (messageFetchRuntimeArtifacts ))
170
+
171
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
158
172
})
159
173
})
160
174
@@ -172,6 +186,8 @@ var _ = g.Describe("[builds][Slow] update failure status", func() {
172
186
o .Expect (err ).NotTo (o .HaveOccurred ())
173
187
o .Expect (build .Status .Reason ).To (o .Equal (buildapi .StatusReasonGenericBuildFailed ))
174
188
o .Expect (build .Status .Message ).To (o .Equal (buildapi .StatusMessageGenericBuildFailed ))
189
+
190
+ exutil .CheckForEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
175
191
})
176
192
})
177
193
})
0 commit comments