2014-06-10 17:35:49 +02:00
|
|
|
---
|
2014-06-18 11:51:10 -04:00
|
|
|
setup:
|
2014-06-10 17:35:49 +02:00
|
|
|
|
2014-06-18 11:51:10 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test1
|
|
|
|
type: bar
|
|
|
|
id: 1
|
|
|
|
body: { "foo": "bar" }
|
2014-06-10 17:35:49 +02:00
|
|
|
|
2014-06-18 11:51:10 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test2
|
|
|
|
type: baz
|
|
|
|
id: 1
|
|
|
|
body: { "foo": "baz" }
|
2014-06-10 17:35:49 +02:00
|
|
|
|
2015-04-22 15:40:16 +02:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2015-04-22 16:10:28 +02:00
|
|
|
wait_for_status: yellow
|
2015-04-22 15:40:16 +02:00
|
|
|
|
2014-06-10 17:35:49 +02: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 20:32:55 +02:00
|
|
|
- is_true: indices.test1.shards
|
2014-06-10 17:35:49 +02:00
|
|
|
- is_true: indices.test2.total.docs
|
|
|
|
- is_true: indices.test2.total.docs
|
2014-06-10 20:32:55 +02:00
|
|
|
- is_true: indices.test2.shards
|
2015-04-20 15:25:25 +02:00
|
|
|
- is_true: indices.test1.shards.0.0.commit.id
|
|
|
|
- is_true: indices.test2.shards.0.0.commit.id
|
2014-06-10 17:35:49 +02:00
|
|
|
|