Skip to content

Commit

Permalink
Add YAML test for status in indices stats
Browse files Browse the repository at this point in the history
The feature added in elastic#81954 lacks coverage in BwC situations. This
commit adds a YAML test to address that.
  • Loading branch information
DaveCTurner committed Nov 13, 2024
1 parent d702919 commit 56dd10b
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"Ensure index state is exposed":
- requires:
cluster_features: ["gte_v8.1.0"]
reason: index state added to stats in 8.1.0

- do:
indices.create:
index: openindex
- do:
indices.create:
index: closedindex
- do:
indices.close:
index: closedindex
- do:
indices.stats:
expand_wildcards: [open,closed]
forbid_closed_indices: false

- match: { indices.openindex.status: open }
- match: { indices.closedindex.status: close }

0 comments on commit 56dd10b

Please sign in to comment.