Skip to content

Commit cb430bf

Browse files
committed
Restrict test to run on >=3.1.0
Signed-off-by: Daniel Widdis <[email protected]>
1 parent 4c7f6bb commit cb430bf

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search/50_multi_match.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"Cross fields do not return negative scores":
2-
- skip:
3-
version: " - 2.99.99"
4-
reason: "This fix is in 2.15. Until we do the BWC dance, we need to skip all pre-3.0, though."
1+
setup:
52
- do:
63
index:
74
index: test
@@ -19,6 +16,12 @@
1916
body: { "color" : "orange red yellow purple" }
2017
- do:
2118
indices.refresh: { }
19+
20+
---
21+
"Cross fields do not return negative scores":
22+
- skip:
23+
version: " - 2.14.99"
24+
reason: "This fix is in 2.15.0"
2225
- do:
2326
search:
2427
index: test
@@ -34,7 +37,11 @@
3437
- match: { hits.hits.0._id: "2" }
3538
- gt: { hits.hits.2._score: 0.0 }
3639

37-
# Test that query with null field fails appropriately
40+
---
41+
"Query string with null field throws 400":
42+
- skip:
43+
version: " - 3.0.99"
44+
reason: "This fix is in 3.1.0"
3845
- do:
3946
catch: bad_request
4047
search:

0 commit comments

Comments
 (0)