Skip to content

Commit 5ba6028

Browse files
committed
operators: log cluster operator name for unexpected error
1 parent c990011 commit 5ba6028

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/extended/operators/clusteroperators.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package operators
22

33
import (
44
"context"
5+
"fmt"
56
"strings"
67

78
g "github.com/onsi/ginkgo/v2"
@@ -110,7 +111,7 @@ var _ = g.Describe("[sig-arch] ClusterOperators [apigroup:config.openshift.io]",
110111
Group: relatedObj.Group,
111112
Resource: relatedObj.Resource,
112113
})
113-
o.Expect(err).ToNot(o.HaveOccurred())
114+
o.Expect(err).ToNot(o.HaveOccurred(), fmt.Sprintf("unexpected error while getting mapping for relatedObject of cluster operator '%s'", clusterOperator.Name))
114115
o.Expect(len(resourceMatches)).To(o.BeNumerically(">", 0),
115116
"No valid rest mapping found for cluster operator %s related object %s",
116117
clusterOperator.Name, relatedObj.Resource)

0 commit comments

Comments
 (0)