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
|
|
|
|
|
|
|
---
|
|
|
|
"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
|
2014-06-10 11:35:49 -04:00
|
|
|
|