OpenSearch/rest-api-spec/test/get_source/30_parent.yaml

64 lines
1.1 KiB
YAML
Raw Normal View History

---
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."
- 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 }
---
"Parent":
- do:
get_source:
index: test_1
type: test
id: 1
parent: 5
- match: { '': {foo: bar}}
---
"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"
- do:
catch: request
get_source:
index: test_1
type: test
id: 1