Test for missing parent param when parent enabled in index/create/update

This commit is contained in:
Clinton Gormley 2013-07-01 16:00:12 +02:00
parent df94f08dab
commit 429a67e3ce
3 changed files with 29 additions and 0 deletions

View File

@ -12,6 +12,14 @@
cluster.health:
wait_for_status: yellow
- do:
catch: /RoutingMissingException/
create:
index: test_1
type: test
id: 1
body: { foo: bar }
- do:
create:
index: test_1

View File

@ -1,5 +1,6 @@
---
"Parent":
- do:
indices.create:
index: test_1
@ -11,6 +12,14 @@
cluster.health:
wait_for_status: yellow
- do:
catch: /RoutingMissingException/
index:
index: test_1
type: test
id: 1
body: { foo: bar }
- do:
index:
index: test_1
@ -26,6 +35,7 @@
id: 1
parent: 5
fields: [_parent, _routing]
- match: { _id: 1}
- match: { fields._parent: 5}
- match: { fields._routing: 5}

View File

@ -1,5 +1,6 @@
---
"Parent":
- do:
indices.create:
index: test_1
@ -11,6 +12,16 @@
cluster.health:
wait_for_status: yellow
- do:
catch: /RoutingMissingException/
update:
index: test_1
type: test
id: 1
body:
doc: { foo: baz }
upsert: { foo: bar }
- do:
update:
index: test_1