2013-07-01 10:03:37 -04:00
|
|
|
---
|
2014-01-02 13:33:19 -05:00
|
|
|
setup:
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
_parent: { type: "foo" }
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
2014-01-02 13:33:19 -05:00
|
|
|
---
|
|
|
|
"Parent":
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
exists:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
2014-01-02 13:33:19 -05:00
|
|
|
---
|
2014-01-07 10:19:06 -05:00
|
|
|
"Parent omitted":
|
2014-01-02 13:33:19 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: request
|
|
|
|
exists:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
|