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