2014-06-10 11:35:49 -04:00
|
|
|
---
|
2014-06-18 11:51:10 -04:00
|
|
|
setup:
|
2014-06-10 11:35:49 -04:00
|
|
|
|
2014-06-18 11:51:10 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test1
|
|
|
|
type: bar
|
|
|
|
id: 1
|
|
|
|
body: { "foo": "bar" }
|
2014-06-10 11:35:49 -04:00
|
|
|
|
2014-06-18 11:51:10 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test2
|
|
|
|
type: baz
|
|
|
|
id: 1
|
|
|
|
body: { "foo": "baz" }
|
2014-06-10 11:35:49 -04:00
|
|
|
|
2015-04-22 09:40:16 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2015-04-22 10:10:28 -04:00
|
|
|
wait_for_status: yellow
|
2015-04-22 09:40:16 -04:00
|
|
|
|
2014-06-10 11:35:49 -04:00
|
|
|
---
|
|
|
|
"Level - blank":
|
|
|
|
- do:
|
|
|
|
indices.stats: {}
|
|
|
|
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
|
|
|
- is_false: indices.test1.shards
|
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_false: indices.test2.shards
|
|
|
|
|
|
|
|
---
|
|
|
|
"Level - indices":
|
|
|
|
- do:
|
|
|
|
indices.stats: { level: indices }
|
|
|
|
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
|
|
|
- is_false: indices.test1.shards
|
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_false: indices.test2.shards
|
|
|
|
|
|
|
|
---
|
|
|
|
"Level - cluster":
|
|
|
|
- do:
|
|
|
|
indices.stats: { level: cluster }
|
|
|
|
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_false: indices
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
"Level - shards":
|
|
|
|
- do:
|
|
|
|
indices.stats: { level: shards }
|
|
|
|
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: _all.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
|
|
|
- is_true: indices.test1.total.docs
|
2014-06-10 14:32:55 -04:00
|
|
|
- is_true: indices.test1.shards
|
2014-06-10 11:35:49 -04:00
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_true: indices.test2.total.docs
|
2014-06-10 14:32:55 -04:00
|
|
|
- is_true: indices.test2.shards
|
2015-04-20 09:25:25 -04:00
|
|
|
- is_true: indices.test1.shards.0.0.commit.id
|
|
|
|
- is_true: indices.test2.shards.0.0.commit.id
|
2014-06-10 11:35:49 -04:00
|
|
|
|