@@ -115,7 +115,7 @@ func TestOperator_syncFailingStatus(t *testing.T) {
115
115
{Type : ClusterStatusFailing , Status : configv1 .ConditionTrue , Reason : "UpdatePayloadIntegrity" , Message : "unable to apply object" },
116
116
{Type : configv1 .OperatorProgressing , Status : configv1 .ConditionTrue , Message : "Working towards 4.0.1" },
117
117
{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" },
119
119
},
120
120
},
121
121
},
@@ -156,7 +156,7 @@ func TestOperator_syncFailingStatus(t *testing.T) {
156
156
{Type : ClusterStatusFailing , Status : configv1 .ConditionTrue , Reason : "" , Message : "bad" },
157
157
{Type : configv1 .OperatorProgressing , Status : configv1 .ConditionTrue , Reason : "" , Message : "Error ensuring the cluster version is up to date: bad" },
158
158
{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" },
160
160
},
161
161
},
162
162
})
@@ -871,7 +871,11 @@ func TestUpdateClusterVersionStatus_FilteringMultipleErrorsForFailingCondition(t
871
871
}
872
872
for _ , c := range combinations {
873
873
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
+ }
875
879
if ! c .isHistoryEmpty {
876
880
cvStatus .History = []configv1.UpdateHistory {{State : configv1 .PartialUpdate }}
877
881
}
@@ -891,6 +895,10 @@ func TestUpdateClusterVersionStatus_FilteringMultipleErrorsForFailingCondition(t
891
895
t .Errorf ("unexpected progressingCondition when Reconciling == %t && isHistoryEmpty == %t\n :%s" , c .isReconciling , c .isHistoryEmpty , diff )
892
896
}
893
897
}
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
+ }
894
902
}
895
903
payload .COUpdateStartTimesRemove ("machine-config" )
896
904
})
0 commit comments