Skip to content

Commit 3df1805

Browse files
committed
Remove channel consideration from operator certification
1 parent 8c667d5 commit 3df1805

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/certification/suite.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,7 @@ func testAllOperatorCertified(check *checksdb.Check, env *provider.TestEnvironme
134134
}
135135
for _, operator := range operatorsUnderTest {
136136
check.LogInfo("Testing Operator %q", operator)
137-
if operator.Channel == "" {
138-
check.LogError("Operator %q failed to be certified for OpenShift %s because its subscription channel is empty (also failing to retrieve default channel)", operator.Name, ocpMinorVersion)
139-
nonCompliantObjects = append(nonCompliantObjects, testhelper.NewOperatorReportObject(operator.Namespace, operator.Name,
140-
"Operator failed to be certified for OpenShift because its subscription does not have a valid channel (non-empty) and a default channel could not be found"+
141-
". Maybe this operator was using a default channel and its catalog source was removed.", false).
142-
AddField(testhelper.OCPVersion, ocpMinorVersion).
143-
AddField(testhelper.OCPChannel, operator.Channel))
144-
}
145-
isCertified := validator.IsOperatorCertified(operator.Name, ocpMinorVersion, operator.Channel)
137+
isCertified := validator.IsOperatorCertified(operator.Name, ocpMinorVersion)
146138
if !isCertified {
147139
check.LogError("Operator %q (channel %q) failed to be certified for OpenShift %s", operator.Name, operator.Channel, ocpMinorVersion)
148140
nonCompliantObjects = append(nonCompliantObjects, testhelper.NewOperatorReportObject(operator.Namespace, operator.Name, "Operator failed to be certified for OpenShift", false).

0 commit comments

Comments
 (0)