2013-07-01 10:03:37 -04:00
|
|
|
---
|
2014-01-02 13:33:19 -05:00
|
|
|
setup:
|
2013-07-11 07:50:59 -04:00
|
|
|
- skip:
|
|
|
|
version: "0 - 0.90.0"
|
|
|
|
reason: "Get source not supported in pre 0.90.1 versions."
|
2014-01-02 13:33:19 -05:00
|
|
|
|
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
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
body: { foo: bar }
|
|
|
|
|
2014-01-02 13:33:19 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
"Parent":
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
|
|
|
|
- match: { '': {foo: bar}}
|
|
|
|
|
2014-01-02 13:33:19 -05:00
|
|
|
---
|
|
|
|
"Parent omitted pre 1.0":
|
|
|
|
- skip:
|
|
|
|
version: "1 - 999"
|
|
|
|
reason: "Get source not supported in pre 0.90.1 versions."
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
|
|
|
|
---
|
|
|
|
"Parent omitted post 1.0":
|
|
|
|
- skip:
|
|
|
|
version: "0 - 0.999"
|
|
|
|
reason: "Required parent has been introduced in 1.0"
|
|
|
|
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
2014-01-02 13:33:19 -05:00
|
|
|
catch: request
|
2013-07-01 10:03:37 -04:00
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
|