Fixed bad YAML in rest tests

This commit is contained in:
Clinton Gormley 2017-04-02 12:47:46 +02:00
parent 1d648a3d46
commit e5f99e0bde
6 changed files with 17 additions and 13 deletions

View File

@ -277,7 +277,8 @@
h: [index, docs] h: [index, docs]
s: [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: | $body: |
/^ foo \s+ 0\n /^ foo \s+ 0\n
bar \s+ 1\n bar \s+ 1\n

View File

@ -61,7 +61,8 @@
cat.templates: {} cat.templates: {}
- match: - match:
$body: / $body: >
/
(^|\n)test \s+ (^|\n)test \s+
\[test-\*\] \s+ \[test-\*\] \s+
0 \s+ 0 \s+
@ -70,7 +71,8 @@
/ /
- match: - match:
$body: / $body: >
/
(^|\n)test_2 \s+ (^|\n)test_2 \s+
\[test-2\*\] \s+ \[test-2\*\] \s+
1 \s+ 1 \s+

View File

@ -64,8 +64,9 @@
--- ---
"Test get a default settings": "Test get a default settings":
# this can't be bumped to 5.0.2 until snapshots are published
- skip: - 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 reason: Fetching default group setting was buggy until 5.0.3
- do: - do:

View File

@ -4,9 +4,9 @@ setup:
index: test_1 index: test_1
body: body:
aliases: aliases:
alias_1: { alias_1:
"filter" : { "term" : { "foo" : "bar"} } "filter" : { "term" : { "foo" : "bar"} }
}
- do: - do:
index: index:
index: test_1 index: test_1

View File

@ -6,9 +6,9 @@ setup:
settings: settings:
number_of_replicas: 0 number_of_replicas: 0
aliases: aliases:
alias_1: { alias_1:
"filter" : { "match_all" : {} } "filter" : { "match_all" : {} }
}
--- ---
"Validate query api": "Validate query api":

View File

@ -453,9 +453,9 @@ setup:
- do: - do:
search: 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 } - length: { aggregations.str_terms.buckets: 1 }
@ -467,7 +467,7 @@ setup:
- do: - do:
search: 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 } - match: { hits.total: 3 }
@ -512,7 +512,7 @@ setup:
- do: - do:
search: 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 } - match: { hits.total: 3 }
@ -524,7 +524,7 @@ setup:
- do: - do:
search: 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 } - match: { hits.total: 3 }