Fix YAML formatting in several REST tests

This commit is contained in:
Clinton Gormley 2016-10-13 09:58:00 +02:00
parent 71aa807acd
commit 389d365697
6 changed files with 46 additions and 54 deletions

View File

@ -22,8 +22,7 @@ Test reset index settings:
- do:
indices.get_settings:
flat_settings: false
- is_false:
test-index.settings.index\.refresh_interval
- is_false: test-index.settings.index\.refresh_interval
- do:
indices.get_settings:
include_defaults: true

View File

@ -31,4 +31,5 @@
- do:
indices.get_mapping:
index: test
- is_true: test_2 # the name of the index that the alias points to, would be `test` if the index were still there
# the name of the index that the alias points to, would be `test` if the index were still there
- is_true: test_2

View File

@ -21,10 +21,9 @@
scroll: 1m
sort: foo
body:
slice: {
id: 0,
slice:
id: 0
max: 3
}
query:
match_all: {}
@ -41,10 +40,9 @@
size: 1
scroll: 1m
body:
slice: {
id: 0,
slice:
id: 0
max: 1025
}
query:
match_all: {}
@ -60,10 +58,9 @@
size: 1
scroll: 1m
body:
slice: {
id: 0,
slice:
id: 0
max: 1025
}
query:
match_all: {}

View File

@ -5,19 +5,14 @@ setup:
index: test
body:
mappings:
type_1: {
properties: {
nested_field : {
type_1:
properties:
nested_field:
type: nested
}
}
}
type_2: {}
type_3: {
_parent: {
type_3:
_parent:
type: type_2
}
}
---
"Nested inner hits":
@ -26,13 +21,8 @@ setup:
index: test
type: type_1
id: 1
body: {
"nested_field" : [
{
"foo": "bar"
}
]
}
body:
"nested_field" : [ { "foo": "bar" } ]
- do:
indices.refresh: {}

View File

@ -15,28 +15,33 @@ setup:
"suggest_context":
"type" : "completion"
"contexts":
- "name" : "color"
-
"name" : "color"
"type" : "category"
"suggest_context_with_path":
"type" : "completion"
"contexts":
- "name" : "color"
-
"name" : "color"
"type" : "category"
"path" : "color"
"suggest_geo":
"type" : "completion"
"contexts":
- "name" : "location"
-
"name" : "location"
"type" : "geo"
"precision" : "5km"
"suggest_multi_contexts":
"type" : "completion"
"contexts":
- "name" : "location"
-
"name" : "location"
"type" : "geo"
"precision" : "5km"
"path" : "location"
- "name" : "color"
-
"name" : "color"
"type" : "category"
"path" : "color"