@@ -22,7 +22,9 @@ func TestBreakpointResolveDebug(t *testing.T) {
22
22
Task : "sometask" ,
23
23
},
24
24
Debug : pipelinev1.TaskRunDebug {
25
- Breakpoint : []string {"onFailure" },
25
+ Breakpoints : & pipelinev1.TaskBreakpoints {
26
+ OnFailure : "onFailure" ,
27
+ },
26
28
},
27
29
},
28
30
},
@@ -32,7 +34,9 @@ func TestBreakpointResolveDebug(t *testing.T) {
32
34
Task : "special-task" ,
33
35
},
34
36
Debug : pipelinev1.TaskRunDebug {
35
- Breakpoint : []string {"something" },
37
+ Breakpoints : & pipelinev1.TaskBreakpoints {
38
+ OnFailure : "something" ,
39
+ },
36
40
},
37
41
},
38
42
},
@@ -54,7 +58,9 @@ func TestBreakpointResolveDebug(t *testing.T) {
54
58
Task : "sometask" ,
55
59
},
56
60
expected : & pipelinev1.TaskRunDebug {
57
- Breakpoint : []string {"onFailure" },
61
+ Breakpoints : & pipelinev1.TaskBreakpoints {
62
+ OnFailure : "onFailure" ,
63
+ },
58
64
},
59
65
},
60
66
{
@@ -91,7 +97,7 @@ func TestBreakpointResolveDebug(t *testing.T) {
91
97
},
92
98
expected : & pipelinev1.TaskRunDebug {
93
99
Breakpoints : & pipelinev1.TaskBreakpoints {
94
- BeforeSteps : [] string { "something" } ,
100
+ OnFailure : "something" ,
95
101
},
96
102
},
97
103
},
0 commit comments