File tree 2 files changed +15
-1
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.stats
server/src/main/java/org/elasticsearch/rest/action/admin/cluster
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 30
30
- is_true : nodes.plugins
31
31
- is_true : nodes.network_types
32
32
33
+ ---
34
+ " cluster stats accepts timeout param " :
35
+ - skip :
36
+ cluster_features : " gte_v8.16.0"
37
+ reason : " Suppress this test for merging & backporting https://github.com/elastic/elasticsearch/pull/113852"
38
+
39
+ - do :
40
+ cluster.stats :
41
+ timeout : 24h
42
+
43
+ - is_true : timestamp
44
+ - is_true : cluster_name
45
+
33
46
---
34
47
" cluster stats with human flag returns docs as human readable size " :
35
48
- requires :
Original file line number Diff line number Diff line change 25
25
import java .util .Set ;
26
26
27
27
import static org .elasticsearch .rest .RestRequest .Method .GET ;
28
+ import static org .elasticsearch .rest .RestUtils .REST_TIMEOUT_PARAM ;
28
29
import static org .elasticsearch .rest .RestUtils .getTimeout ;
29
30
30
31
@ ServerlessScope (Scope .INTERNAL )
@@ -46,7 +47,7 @@ public String getName() {
46
47
47
48
@ Override
48
49
public Set <String > supportedQueryParameters () {
49
- return Set .of ("include_remotes" , "nodeId" );
50
+ return Set .of ("include_remotes" , "nodeId" , REST_TIMEOUT_PARAM );
50
51
}
51
52
52
53
@ Override
You can’t perform that action at this time.
0 commit comments