[TEST] Fix yaml tests after #4542

This commit is contained in:
Honza Král 2014-01-04 01:21:43 +01:00
parent 107ae66a60
commit 4aeaa3bac4
10 changed files with 43 additions and 43 deletions

View File

@ -17,7 +17,7 @@
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: '1' }
- match: { fields.foo: bar }
- match: { fields.foo: [bar] }
- is_false: _source
- do:
@ -27,8 +27,8 @@
id: 1
fields: [foo, count]
- match: { fields.foo: bar }
- match: { fields.count: 1 }
- match: { fields.foo: [bar] }
- match: { fields.count: [1] }
- is_false: _source
- do:
@ -38,8 +38,8 @@
id: 1
fields: [foo, count, _source]
- match: { fields.foo: bar }
- match: { fields.count: 1 }
- match: { fields.foo: [bar] }
- match: { fields.count: [1] }
- match: { _source.foo: bar }

View File

@ -56,5 +56,5 @@
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: "1" }
- match: { fields.count: 1 }
- match: { fields.count: [1] }
- match: { _source.include.field1: v1 }

View File

@ -44,4 +44,4 @@
index: test_index
- match: {test_index.test_type.properties.text.type: multi_field}
- match: {test_index.test_type.properties.text.fields.text_raw.index: not_analyzed}
- match: {test_index.test_type.properties.text.fields.text_raw.index: not_analyzed }

View File

@ -28,13 +28,13 @@
- is_false: docs.0.fields
- match: { docs.0._source: { foo: bar }}
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -49,16 +49,16 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -73,16 +73,16 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -97,15 +97,15 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- match: { docs.0._source: { foo: bar }}
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}

View File

@ -30,13 +30,13 @@
- is_false: docs.0.fields
- match: { docs.0._source: { foo: bar }}
# - match: { docs.1.fields.foo: bar }
# - match: { docs.1.fields.foo: [bar] }
# - is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -51,16 +51,16 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -75,16 +75,16 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source
- match: { docs.1.fields.foo: bar }
- match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}
- do:
@ -99,15 +99,15 @@
- { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar }
- match: { docs.0.fields.foo: [bar] }
- match: { docs.0._source: { foo: bar }}
# - match: { docs.1.fields.foo: bar }
# - match: { docs.1.fields.foo: [bar] }
# - is_false: docs.1._source
- match: { docs.2.fields.foo: bar }
- match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source
- match: { docs.3.fields.foo: bar }
- match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }}

View File

@ -82,7 +82,7 @@
body:
fields: [ include.field2 ]
query: { match_all: {} }
- match: { hits.hits.0.fields: { include.field2 : v2 }}
- match: { hits.hits.0.fields: { include.field2 : [v2] }}
- is_false: hits.hits.0._source
- do:
@ -90,6 +90,6 @@
body:
fields: [ include.field2, _source ]
query: { match_all: {} }
- match: { hits.hits.0.fields: { include.field2 : v2 }}
- match: { hits.hits.0.fields: { include.field2 : [v2] }}
- is_true: hits.hits.0._source

View File

@ -40,5 +40,5 @@
body:
doc: { foo: baz }
- match: { get.fields.foo: baz }
- match: { get.fields.foo: [baz] }

View File

@ -55,7 +55,7 @@ setup:
body:
doc: { foo: baz }
- match: { get.fields.foo: baz }
- match: { get.fields.foo: [baz] }
---
"Parent omitted post 1.0":

View File

@ -56,5 +56,5 @@
body:
doc: { foo: baz }
- match: { get.fields.foo: baz }
- match: { get.fields.foo: [baz] }

View File

@ -12,7 +12,7 @@
upsert: { foo: bar }
- match: { get._source.foo: bar }
- match: { get.fields.foo: bar }
- match: { get.fields.foo: [bar] }
- is_false: get.fields.bar
# TODO: