mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
When asking for `GET /_cat/indices?v`, you can now retrieve closed indices in addition to opened ones. ``` health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open .marvel-2014.05.21 1 1 8792 0 21.7mb 21.7mb close test yellow open .marvel-2014.05.22 1 1 3871 0 10.7mb 10.7mb red open .marvel-2014.05.27 1 1 ``` Closes #7907. Closes #7936.
37 lines
721 B
YAML
37 lines
721 B
YAML
---
|
|
"Test cat indices output":
|
|
|
|
- do:
|
|
cat.indices: {}
|
|
|
|
- match:
|
|
$body: |
|
|
/^$/
|
|
|
|
- do:
|
|
indices.create:
|
|
index: index1
|
|
body:
|
|
settings:
|
|
number_of_shards: "1"
|
|
number_of_replicas: "0"
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: yellow
|
|
- do:
|
|
cat.indices: {}
|
|
|
|
- match:
|
|
$body: |
|
|
/^(green \s+
|
|
(open|close) \s+
|
|
index1 \s+
|
|
1 \s+
|
|
0 \s+
|
|
0 \s+
|
|
0 \s+
|
|
(\d+|\d+[.]\d+)(kb|b) \s+
|
|
(\d+|\d+[.]\d+)(kb|b) \s*
|
|
)
|
|
$/
|