File tree 2 files changed +15
-0
lines changed
src/Nest/Cluster/TaskManagement/GetTask
tests/Tests/Cluster/TaskManagement/GetTask
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ public class TaskInfo
16
16
[ DataMember ( Name = "cancellable" ) ]
17
17
public bool Cancellable { get ; internal set ; }
18
18
19
+ [ DataMember ( Name = "cancelled" ) ]
20
+ public bool ? Cancelled { get ; internal set ; }
21
+
19
22
[ DataMember ( Name = "children" ) ]
20
23
public IReadOnlyCollection < TaskInfo > Children { get ; internal set ; } = EmptyReadOnly < TaskInfo > . Collection ;
21
24
Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ protected override void ExpectResponse(GetTaskResponse response)
54
54
task . StartTimeInMilliseconds . Should ( ) . BeGreaterThan ( 0 ) ;
55
55
task . RunningTimeInNanoseconds . Should ( ) . BeGreaterThan ( 0 ) ;
56
56
task . Cancellable . Should ( ) . BeTrue ( ) ;
57
+
58
+ if ( Cluster . ClusterConfiguration . Version >= "7.14.0" )
59
+ {
60
+ task . Cancelled . HasValue . Should ( ) . BeTrue ( ) ;
61
+ task . Cancelled . Should ( ) . BeFalse ( ) ;
62
+ }
57
63
}
58
64
59
65
protected override void IntegrationSetup ( IElasticClient client , CallUniqueValues values )
@@ -130,6 +136,12 @@ protected override void ExpectResponse(GetTaskResponse response)
130
136
task . RunningTimeInNanoseconds . Should ( ) . BeGreaterThan ( 0 ) ;
131
137
task . Cancellable . Should ( ) . BeTrue ( ) ;
132
138
139
+ if ( Cluster . ClusterConfiguration . Version >= "7.14.0" )
140
+ {
141
+ task . Cancelled . HasValue . Should ( ) . BeTrue ( ) ;
142
+ task . Cancelled . Should ( ) . BeFalse ( ) ;
143
+ }
144
+
133
145
var reindexResponse = response . GetResponse < ReindexOnServerResponse > ( ) ;
134
146
reindexResponse . Should ( ) . NotBeNull ( ) ;
135
147
reindexResponse . Took . Should ( ) . BeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments