2013-07-01 10:03:37 -04:00
|
|
|
---
|
|
|
|
"Parent with routing":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
_parent: { type: "foo" }
|
2014-02-10 06:30:37 -05:00
|
|
|
settings:
|
2014-03-10 08:48:17 -04:00
|
|
|
number_of_shards: 5
|
2014-02-10 06:30:37 -05:00
|
|
|
number_of_replicas: 0
|
|
|
|
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-02-10 06:30:37 -05:00
|
|
|
wait_for_status: green
|
2013-07-01 10:03:37 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
routing: 4
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
exists:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
routing: 4
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
exists:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
|
|
|
|
- is_false: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
exists:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
routing: 4
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|