Skip to content

Commit 787e9be

Browse files
committed
Add exceptions for the components with filed bugs
1 parent 8756d70 commit 787e9be

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

test/extended/machines/scale.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,16 +237,34 @@ var _ = g.Describe("[sig-cluster-lifecycle][Feature:Machines][Serial] Managed cl
237237
g.AfterEach(func() {
238238
helper.DeleteAllExtraWorkers()
239239

240+
except := func(co string) string {
241+
switch co {
242+
case "network":
243+
return "https://issues.redhat.com/browse/OCPBUGS-TODO"
244+
case "image-registry":
245+
return "https://issues.redhat.com/browse/OCPBUGS-TODO"
246+
case "node-tuning":
247+
return "https://issues.redhat.com/browse/OCPBUGS-TODO"
248+
case "storage":
249+
return "https://issues.redhat.com/browse/OCPBUGS-TODO"
250+
case "dns":
251+
return "https://issues.redhat.com/browse/OCPBUGS-TODO"
252+
default:
253+
return ""
254+
}
255+
}
256+
240257
// No cluster operator should leave Progressing=False only up to cluster scaling
241258
// https://github.com/openshift/api/blob/61248d910ff74aef020492922d14e6dadaba598b/config/v1/types_cluster_operator.go#L163-L164
242259
operatorsNotProgressingAfter := getOperatorsNotProgressing(configClient)
243260
var violations []string
244261
for operator, t1 := range operatorsNotProgressing {
245262
t2, ok := operatorsNotProgressingAfter[operator]
246-
if !ok || t1.Unix() != t2.Unix() {
263+
if reason := except(operator); reason == "" && (!ok || t1.Unix() != t2.Unix()) {
247264
violations = append(violations, operator)
248265
}
249266
}
267+
250268
o.Expect(violations).To(o.BeEmpty(), "those cluster operators left Progressing=False while cluster was scaling: %v", violations)
251269
})
252270

0 commit comments

Comments
 (0)