Fixed bad YAML in rest tests
This commit is contained in:
parent
1d648a3d46
commit
e5f99e0bde
|
@ -277,7 +277,8 @@
|
|||
h: [index, docs]
|
||||
s: [docs]
|
||||
|
||||
- match: # don't use the store here it's cached and might be stale
|
||||
# don't use the store here it's cached and might be stale
|
||||
- match:
|
||||
$body: |
|
||||
/^ foo \s+ 0\n
|
||||
bar \s+ 1\n
|
||||
|
|
|
@ -61,7 +61,8 @@
|
|||
cat.templates: {}
|
||||
|
||||
- match:
|
||||
$body: /
|
||||
$body: >
|
||||
/
|
||||
(^|\n)test \s+
|
||||
\[test-\*\] \s+
|
||||
0 \s+
|
||||
|
@ -70,7 +71,8 @@
|
|||
/
|
||||
|
||||
- match:
|
||||
$body: /
|
||||
$body: >
|
||||
/
|
||||
(^|\n)test_2 \s+
|
||||
\[test-2\*\] \s+
|
||||
1 \s+
|
||||
|
|
|
@ -64,8 +64,9 @@
|
|||
---
|
||||
"Test get a default settings":
|
||||
|
||||
# this can't be bumped to 5.0.2 until snapshots are published
|
||||
- skip:
|
||||
version: " - 5.99.99" # this can't be bumped to 5.0.2 until snapshots are published
|
||||
version: " - 5.99.99"
|
||||
reason: Fetching default group setting was buggy until 5.0.3
|
||||
|
||||
- do:
|
||||
|
|
|
@ -4,9 +4,9 @@ setup:
|
|||
index: test_1
|
||||
body:
|
||||
aliases:
|
||||
alias_1: {
|
||||
alias_1:
|
||||
"filter" : { "term" : { "foo" : "bar"} }
|
||||
}
|
||||
|
||||
- do:
|
||||
index:
|
||||
index: test_1
|
||||
|
|
|
@ -6,9 +6,9 @@ setup:
|
|||
settings:
|
||||
number_of_replicas: 0
|
||||
aliases:
|
||||
alias_1: {
|
||||
alias_1:
|
||||
"filter" : { "match_all" : {} }
|
||||
}
|
||||
|
||||
|
||||
---
|
||||
"Validate query api":
|
||||
|
|
|
@ -453,9 +453,9 @@ setup:
|
|||
|
||||
- do:
|
||||
search:
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "str", "include" : {"partition":0, "num_partitions":2 } } } } }
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "str", "include" : {"partition": 0, "num_partitions": 2 } } } } }
|
||||
|
||||
- match: { hits.total: 3 }
|
||||
- match: { hits.total : 3 }
|
||||
|
||||
- length: { aggregations.str_terms.buckets: 1 }
|
||||
|
||||
|
@ -467,7 +467,7 @@ setup:
|
|||
|
||||
- do:
|
||||
search:
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "str", "include" : {"partition":1, "num_partitions":2 } } } } }
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "str", "include" : {"partition": 1, "num_partitions": 2 } } } } }
|
||||
|
||||
- match: { hits.total: 3 }
|
||||
|
||||
|
@ -512,7 +512,7 @@ setup:
|
|||
|
||||
- do:
|
||||
search:
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "integer", "include" : {"partition":0, "num_partitions":2 } } } } }
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "integer", "include" : {"partition": 0, "num_partitions": 2 } } } } }
|
||||
|
||||
- match: { hits.total: 3 }
|
||||
|
||||
|
@ -524,7 +524,7 @@ setup:
|
|||
|
||||
- do:
|
||||
search:
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "integer", "include" : {"partition":1, "num_partitions":2 } } } } }
|
||||
body: { "size" : 0, "aggs" : { "str_terms" : { "terms" : { "field" : "integer", "include" : {"partition": 1, "num_partitions": 2 } } } } }
|
||||
|
||||
- match: { hits.total: 3 }
|
||||
|
||||
|
|
Loading…
Reference in New Issue