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

View File

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

View File

@ -44,4 +44,4 @@
index: test_index index: test_index
- match: {test_index.test_type.properties.text.type: multi_field} - 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 - is_false: docs.0.fields
- match: { docs.0._source: { 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 - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -49,16 +49,16 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar } - match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source - is_false: docs.0._source
- match: { docs.1.fields.foo: bar } - match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -73,16 +73,16 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar } - match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source - is_false: docs.0._source
- match: { docs.1.fields.foo: bar } - match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -97,15 +97,15 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _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.0._source: { foo: bar }}
- match: { docs.1.fields.foo: bar } - match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}

View File

@ -30,13 +30,13 @@
- is_false: docs.0.fields - is_false: docs.0.fields
- match: { docs.0._source: { 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 # - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -51,16 +51,16 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar } - match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source - is_false: docs.0._source
- match: { docs.1.fields.foo: bar } - match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -75,16 +75,16 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _id: 1, fields: [foo, _source] }
- match: { docs.0.fields.foo: bar } - match: { docs.0.fields.foo: [bar] }
- is_false: docs.0._source - is_false: docs.0._source
- match: { docs.1.fields.foo: bar } - match: { docs.1.fields.foo: [bar] }
- is_false: docs.1._source - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}
- do: - do:
@ -99,15 +99,15 @@
- { _id: 1, fields: [foo] } - { _id: 1, fields: [foo] }
- { _id: 1, fields: [foo, _source] } - { _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.0._source: { foo: bar }}
# - match: { docs.1.fields.foo: bar } # - match: { docs.1.fields.foo: [bar] }
# - is_false: docs.1._source # - is_false: docs.1._source
- match: { docs.2.fields.foo: bar } - match: { docs.2.fields.foo: [bar] }
- is_false: docs.2._source - is_false: docs.2._source
- match: { docs.3.fields.foo: bar } - match: { docs.3.fields.foo: [bar] }
- match: { docs.3._source: { foo: bar }} - match: { docs.3._source: { foo: bar }}

View File

@ -82,7 +82,7 @@
body: body:
fields: [ include.field2 ] fields: [ include.field2 ]
query: { match_all: {} } 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 - is_false: hits.hits.0._source
- do: - do:
@ -90,6 +90,6 @@
body: body:
fields: [ include.field2, _source ] fields: [ include.field2, _source ]
query: { match_all: {} } 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 - is_true: hits.hits.0._source

View File

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

View File

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

View File

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

View File

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