Skip to content

Commit f547134

Browse files
committed
Added linear retriever YAML test
1 parent 2b504d7 commit f547134

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

x-pack/plugin/rank-rrf/src/yamlRestTest/resources/rest-api-spec/test/linear/20_linear_retriever_simplified.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,18 @@ setup:
465465

466466
- contains: { error.root_cause.0.reason: "[linear] [query] cannot be empty" }
467467

468+
- do:
469+
catch: bad_request
470+
search:
471+
index: test-index
472+
body:
473+
retriever:
474+
linear:
475+
fields: [ ]
476+
query: "foo"
477+
478+
- contains: { error.root_cause.0.reason: "[linear] [fields] cannot be empty" }
479+
468480
- do:
469481
catch: bad_request
470482
search:

0 commit comments

Comments
 (0)