2013-06-28 13:44:13 -04:00
|
|
|
---
|
2013-07-25 05:16:54 -04:00
|
|
|
"Metadata Fields":
|
2013-06-28 13:44:13 -04:00
|
|
|
|
|
|
|
- skip:
|
2013-07-23 14:42:20 -04:00
|
|
|
version: "0 - 999"
|
|
|
|
reason: "Update doesn't return metadata fields, waiting for #3259"
|
2013-06-28 13:44:13 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
_parent: { type: "foo" }
|
|
|
|
_timestamp:
|
|
|
|
enabled: 1
|
|
|
|
_ttl:
|
|
|
|
enabled: 1
|
|
|
|
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 }
|
|
|
|
|
2013-07-12 12:26:18 -04:00
|
|
|
- match: { get.fields._parent: "5" }
|
|
|
|
- match: { get.fields._routing: "5" }
|
2013-07-01 09:58:23 -04:00
|
|
|
- is_true: get.fields._timestamp
|
|
|
|
- is_true: get.fields._ttl
|
2013-06-28 13:44:13 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
get:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
fields: [ _parent, _routing, _timestamp, _ttl ]
|
|
|
|
|
|
|
|
|