Skip to content

Commit c8e7195

Browse files
committed
Add YAML tests for added parameters
1 parent 319bffd commit c8e7195

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/msearch/10_basic.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
setup:
3+
- requires:
4+
test_runner_features: allowed_warnings
35

46
- do:
57
index:
@@ -67,6 +69,12 @@ setup:
6769
rest_total_hits_as_int: true
6870
max_concurrent_shard_requests: 1
6971
max_concurrent_searches: 1
72+
ignore_unavailable: false
73+
ignore_throttled: false
74+
allow_no_indices: false
75+
expand_wildcards: open
76+
include_named_queries_score: false
77+
index: index_*
7078
body:
7179
- index: index_*
7280
- query:
@@ -83,6 +91,8 @@ setup:
8391
- {}
8492
- query:
8593
match_all: {}
94+
allowed_warnings:
95+
- "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."
8696

8797
- match: { responses.0.hits.total: 2 }
8898
- match: { responses.1.hits.total: 1 }
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
setup:
3+
- do:
4+
index:
5+
index: index_1
6+
routing: "1"
7+
id: "1"
8+
body: { foo: bar }
9+
10+
- do:
11+
indices.refresh: {}
12+
13+
---
14+
"Routing":
15+
16+
- do:
17+
msearch:
18+
rest_total_hits_as_int: true
19+
routing: "1"
20+
body:
21+
- {}
22+
- query:
23+
match_all: {}
24+
25+
- match: { responses.0.hits.total: 1 }

0 commit comments

Comments
 (0)