Skip to content

Commit 0696ec4

Browse files
committed
fix rest tests
1 parent e20f8d0 commit 0696ec4

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/suggest/30_context.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -336,20 +336,6 @@ setup:
336336
- length: { suggest.result.0.options: 1 }
337337
- match: { suggest.result.0.options.0.text: "foo" }
338338

339-
- do:
340-
search:
341-
body:
342-
suggest:
343-
result:
344-
text: "foo"
345-
completion:
346-
skip_duplicates: true
347-
field: suggest_context
348-
349-
- length: { suggest.result: 1 }
350-
- length: { suggest.result.0.options: 1 }
351-
- match: { suggest.result.0.options.0.text: "foo" }
352-
353339
---
354340
"Querying without contexts is deprecated":
355341
- skip:

rest-api-spec/src/main/resources/rest-api-spec/test/suggest/40_typed_keys.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ setup:
3131

3232
---
3333
"Test typed keys parameter for suggesters":
34+
- skip:
35+
version: " - 6.99.99"
36+
reason: queying a context suggester with no context was deprecated in 7.0
37+
features: "warnings"
3438

3539
- do:
40+
warnings:
41+
- "The ability to query with no context on a context enabled completion field is deprecated and will be removed in the next major release."
3642
search:
3743
typed_keys: true
3844
body:

0 commit comments

Comments
 (0)