@@ -86,6 +86,11 @@ var _ = Describe("Operator API", func() {
86
86
87
87
Consistently (o ).ShouldNot (ContainCopiedCSVReferences ())
88
88
89
+ defer func () {
90
+ By ("Checking whether the test case had failed" )
91
+ ctx .Ctx ().DescribeResource (fmt .Sprintf ("kubectl get operators %s -o yaml" , o .GetName ()))
92
+ }()
93
+
89
94
defer func () {
90
95
Eventually (func () error {
91
96
err := client .Delete (clientCtx , o )
@@ -244,7 +249,7 @@ var _ = Describe("Operator API", func() {
244
249
}).Should (Succeed ())
245
250
})
246
251
247
- Context ("when a subscription to a package exists" , func () {
252
+ FContext ("when a subscription to a package exists" , func () {
248
253
var (
249
254
ns * corev1.Namespace
250
255
sub * operatorsv1alpha1.Subscription
@@ -329,6 +334,11 @@ var _ = Describe("Operator API", func() {
329
334
})
330
335
331
336
AfterEach (func () {
337
+ By ("Checking whether the test case had failed" )
338
+ if CurrentGinkgoTestDescription ().Failed {
339
+ ctx .Ctx ().DescribeResource (fmt .Sprintf ("kubectl get operators %s -o yaml" , operatorName .Name ))
340
+ }
341
+
332
342
By ("Deleting the testing namespace" )
333
343
Eventually (func () error {
334
344
return controllerclient .IgnoreNotFound (client .Delete (clientCtx , ns ))
@@ -529,6 +539,7 @@ func ReferenceComponents(refs []*corev1.ObjectReference) gomegatypes.GomegaMatch
529
539
530
540
for _ , ref := range refs {
531
541
if _ , ok := actual [* ref ]; ! ok {
542
+ ctx .Ctx ().Logf ("reference missing: %v - %v - %v" , ref .GetObjectKind (), ref .Name , ref .Namespace )
532
543
return false , nil
533
544
}
534
545
}
0 commit comments