@@ -2899,18 +2899,8 @@ func TestCVO_UpgradeVerifiedPayload(t *testing.T) {
2899
2899
2900
2900
defer shutdownFn ()
2901
2901
2902
- // make the image report unverified
2903
- payloadErr := & payload.UpdateError {
2904
- Reason : "ImageVerificationFailed" ,
2905
- Message : "The update cannot be verified: some random error" ,
2906
- Nested : fmt .Errorf ("some random error" ),
2907
- }
2908
- if ! isImageVerificationError (payloadErr ) {
2909
- t .Fatal ("not the correct error type" )
2910
- }
2911
2902
worker := o .configSync .(* SyncWorker )
2912
2903
retriever := worker .retriever .(* fakeDirectoryRetriever )
2913
- retriever .Set (PayloadInfo {}, payloadErr )
2914
2904
retriever .Set (PayloadInfo {Directory : "testdata/payloadtest-2" , Verified : true }, nil )
2915
2905
2916
2906
go worker .Start (ctx , 1 )
@@ -2954,8 +2944,8 @@ func TestCVO_UpgradeVerifiedPayload(t *testing.T) {
2954
2944
Conditions : []configv1.ClusterOperatorStatusCondition {
2955
2945
{Type : ImplicitlyEnabledCapabilities , Status : "False" , Reason : "AsExpected" , Message : "Capabilities match configured spec" },
2956
2946
{Type : configv1 .OperatorAvailable , Status : configv1 .ConditionTrue , Message : "Done applying 1.0.0-abc" },
2957
- // cleared failing status and set progressing
2958
2947
{Type : ClusterStatusFailing , Status : configv1 .ConditionFalse },
2948
+ // set progressing
2959
2949
{Type : configv1 .OperatorProgressing , Status : configv1 .ConditionTrue , Message : "Working towards 1.0.1-abc" },
2960
2950
{Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
2961
2951
{Type : DesiredReleaseAccepted , Status : configv1 .ConditionTrue , Reason : "PayloadLoaded" ,
0 commit comments