2014-09-24 08:54:50 -04:00
|
|
|
---
|
|
|
|
"Index check shard header":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
2015-01-12 04:29:23 -05:00
|
|
|
index: foobar
|
2014-09-24 08:54:50 -04:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_shards: "1"
|
|
|
|
number_of_replicas: "0"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
2015-01-12 04:29:23 -05:00
|
|
|
index: foobar
|
2014-09-24 08:54:50 -04:00
|
|
|
type: baz
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
|
2015-01-12 04:29:23 -05:00
|
|
|
- match: { _index: foobar }
|
2014-09-24 08:54:50 -04:00
|
|
|
- match: { _type: baz }
|
|
|
|
- match: { _id: "1"}
|
|
|
|
- match: { _version: 1}
|
|
|
|
- match: { _shards.total: 1}
|
|
|
|
- match: { _shards.successful: 1}
|
|
|
|
- match: { _shards.failed: 0}
|
|
|
|
- is_false: _shards.pending
|