@@ -1772,10 +1772,11 @@ var _ = Describe("Test Workflow", func() {
1772
1772
},
1773
1773
}, {
1774
1774
StepStatus : v1alpha1.StepStatus {
1775
- Name : "s2" ,
1776
- ID : "s2" ,
1777
- Type : "suspend" ,
1778
- Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
1775
+ Name : "s2" ,
1776
+ ID : "s2" ,
1777
+ Type : "suspend" ,
1778
+ Reason : types .StatusReasonSuspend ,
1779
+ Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
1779
1780
},
1780
1781
}},
1781
1782
})).Should (BeEquivalentTo ("" ))
@@ -1805,10 +1806,11 @@ var _ = Describe("Test Workflow", func() {
1805
1806
},
1806
1807
}, {
1807
1808
StepStatus : v1alpha1.StepStatus {
1808
- Name : "s2" ,
1809
- ID : "s2" ,
1810
- Type : "suspend" ,
1811
- Phase : v1alpha1 .WorkflowStepPhaseSucceeded ,
1809
+ Name : "s2" ,
1810
+ ID : "s2" ,
1811
+ Type : "suspend" ,
1812
+ Reason : types .StatusReasonSuspend ,
1813
+ Phase : v1alpha1 .WorkflowStepPhaseSucceeded ,
1812
1814
},
1813
1815
}, {
1814
1816
StepStatus : v1alpha1.StepStatus {
@@ -1884,10 +1886,11 @@ var _ = Describe("Test Workflow", func() {
1884
1886
Type : "success" ,
1885
1887
Phase : v1alpha1 .WorkflowStepPhaseSucceeded ,
1886
1888
}, {
1887
- Name : "s2-sub2" ,
1888
- ID : "s2-sub2" ,
1889
- Type : "suspend" ,
1890
- Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
1889
+ Name : "s2-sub2" ,
1890
+ ID : "s2-sub2" ,
1891
+ Type : "suspend" ,
1892
+ Reason : types .StatusReasonSuspend ,
1893
+ Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
1891
1894
},
1892
1895
},
1893
1896
}},
@@ -2234,10 +2237,11 @@ func makeRunner(step v1alpha1.WorkflowStep, subTaskRunners []types.TaskRunner) t
2234
2237
}
2235
2238
}
2236
2239
return v1alpha1.StepStatus {
2237
- Name : step .Name ,
2238
- Type : "suspend" ,
2239
- ID : step .Name ,
2240
- Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
2240
+ Name : step .Name ,
2241
+ Type : "suspend" ,
2242
+ ID : step .Name ,
2243
+ Reason : types .StatusReasonSuspend ,
2244
+ Phase : v1alpha1 .WorkflowStepPhaseSuspending ,
2241
2245
}, & types.Operation {
2242
2246
Suspend : true ,
2243
2247
}, nil
0 commit comments