Skip to content

Commit 17d2803

Browse files
authored
Add YAML test for status in indices stats (#116711)
The feature added in #81954 lacks coverage in BwC situations. This commit adds a YAML test to address that.
1 parent 5935f76 commit 17d2803

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"Ensure index state is exposed":
3+
- requires:
4+
cluster_features: ["gte_v8.1.0"]
5+
reason: index state added to stats in 8.1.0
6+
7+
- do:
8+
indices.create:
9+
index: openindex
10+
- do:
11+
indices.create:
12+
index: closedindex
13+
- do:
14+
indices.close:
15+
index: closedindex
16+
- do:
17+
indices.stats:
18+
expand_wildcards: [open,closed]
19+
forbid_closed_indices: false
20+
21+
- match: { indices.openindex.status: open }
22+
- match: { indices.closedindex.status: close }

0 commit comments

Comments
 (0)