@@ -115,7 +115,7 @@ func TestOperator_syncFailingStatus(t *testing.T) {
115115 {Type : ClusterStatusFailing , Status : configv1 .ConditionTrue , Reason : "UpdatePayloadIntegrity" , Message : "unable to apply object" },
116116 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionTrue , Message : "Working towards 4.0.1" },
117117 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
118- {Type : ImplicitlyEnabledCapabilities , Status : "False" , Reason : "AsExpected" , Message : "Capabilities match configured spec" },
118+ {Type : " ImplicitlyEnabledCapabilities" , Status : "False" , Reason : "AsExpected" , Message : "Capabilities match configured spec" },
119119 },
120120 },
121121 },
@@ -156,7 +156,7 @@ func TestOperator_syncFailingStatus(t *testing.T) {
156156 {Type : ClusterStatusFailing , Status : configv1 .ConditionTrue , Reason : "" , Message : "bad" },
157157 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionTrue , Reason : "" , Message : "Error ensuring the cluster version is up to date: bad" },
158158 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
159- {Type : ImplicitlyEnabledCapabilities , Status : "False" , Reason : "AsExpected" , Message : "Capabilities match configured spec" },
159+ {Type : " ImplicitlyEnabledCapabilities" , Status : "False" , Reason : "AsExpected" , Message : "Capabilities match configured spec" },
160160 },
161161 },
162162 })
@@ -871,7 +871,11 @@ func TestUpdateClusterVersionStatus_FilteringMultipleErrorsForFailingCondition(t
871871 }
872872 for _ , c := range combinations {
873873 tc .args .syncWorkerStatus .Reconciling = c .isReconciling
874- cvStatus := & configv1.ClusterVersionStatus {}
874+ cvStatus := & configv1.ClusterVersionStatus {
875+ Conditions : []configv1.ClusterOperatorStatusCondition {
876+ {Type : "ImplicitlyEnabled" , Message : "to be removed" },
877+ },
878+ }
875879 if ! c .isHistoryEmpty {
876880 cvStatus .History = []configv1.UpdateHistory {{State : configv1 .PartialUpdate }}
877881 }
@@ -891,6 +895,10 @@ func TestUpdateClusterVersionStatus_FilteringMultipleErrorsForFailingCondition(t
891895 t .Errorf ("unexpected progressingCondition when Reconciling == %t && isHistoryEmpty == %t\n :%s" , c .isReconciling , c .isHistoryEmpty , diff )
892896 }
893897 }
898+ conditionRemoved := resourcemerge .FindOperatorStatusCondition (cvStatus .Conditions , "ImplicitlyEnabled" )
899+ if conditionRemoved != nil {
900+ t .Errorf ("ImplicitlyEnabled condition should be removed but is still there when Reconciling == %t && isHistoryEmpty == %t" , c .isReconciling , c .isHistoryEmpty )
901+ }
894902 }
895903 payload .COUpdateStartTimesRemove ("machine-config" )
896904 })
0 commit comments