OpenSearch/rest-api-spec/test/update/85_fields_meta.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2013-06-28 13:44:13 -04:00
---
"Fields":
- skip:
version: "0 - 0.90.3"
reason: "Update doesn't return metadata fields"
- do:
indices.create:
index: test_1
body:
mappings:
test:
_parent: { type: "foo" }
_timestamp:
enabled: 1
store: yes
_ttl:
enabled: 1
store: yes
default: 10s
- do:
cluster.health:
wait_for_status: yellow
- do:
update:
index: test_1
type: test
id: 1
parent: 5
fields: [ _parent, _routing, _timestamp, _ttl ]
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { get.fields._parent: 5 }
- match: { get.fields._routing: 5 }
- ok: get.fields._timestamp
- ok: get.fields._ttl
- do:
get:
index: test_1
type: test
id: 1
parent: 5
fields: [ _parent, _routing, _timestamp, _ttl ]