OpenSearch/rest-api-spec/test/cat.indices/10_basic.yaml

39 lines
749 B
YAML
Raw Normal View History

---
"Test cat indices output":
- do:
cat.indices:
v: false
- 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:
v: false
- 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*
)
$/