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: cluster.health:
wait_for_status: yellow wait_for_status: yellow
- do:
catch: /RoutingMissingException/
create:
index: test_1
type: test
id: 1
body: { foo: bar }
- do: - do:
create: create:
index: test_1 index: test_1

View File

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

View File

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