Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ML Model APIs #733

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2994879
Added test for GET /_settings/{name}. (#727)
dblock Dec 12, 2024
14cc701
Added ML Model APIs (get, search, update model) to the spec along wit…
nathaliellenaa Dec 13, 2024
a9712ff
Added ML Model APIs (undeploy, unload), moved test for search model t…
nathaliellenaa Dec 17, 2024
d2710c7
Disambiguate snapshot schema naming (#730)
Xtansia Dec 13, 2024
e2b2879
Added support for using a certificate and key. (#731)
dblock Dec 16, 2024
d989004
Fixed /_search/scroll/{scroll_id}, missing search tests. (#732)
dblock Dec 17, 2024
58a2451
Added tests for /_template/{name}. (#736)
dblock Dec 17, 2024
3b07554
Added tests for /_validate/query. (#739)
dblock Dec 17, 2024
55ad956
Fixed lint and directory path error.
nathaliellenaa Dec 17, 2024
78cf49d
Added ML Model APIs (load, upload, create metadata).
nathaliellenaa Dec 17, 2024
9a52516
Added ML Model APIs (predict) and updated the test settings for metad…
nathaliellenaa Dec 18, 2024
c29b8d3
Merge branch 'main' into add-ml-models-api
nathaliellenaa Dec 18, 2024
789ab69
Fixed lint errors in predict.yaml, moved setup to prologues and teard…
nathaliellenaa Dec 19, 2024
8e44ea2
Merge branch 'main' into add-ml-models-api
nathaliellenaa Dec 19, 2024
382477b
Added ML Model APIs (chunk, register meta), updated CHANGELOG and tes…
nathaliellenaa Dec 19, 2024
33aab02
Added ML Model APIs (upload chunk), moved test for deprecated chunk u…
nathaliellenaa Dec 20, 2024
5b083a0
Applied suggestions from code review.
nathaliellenaa Dec 27, 2024
6f5e928
Merge branch 'main' into add-ml-models-api
nathaliellenaa Dec 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added tests for /_validate/query. (#739)
* Added tests for /_validate/query.

Signed-off-by: dblock <[email protected]>

* Added retry for #738.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
Signed-off-by: Nathalie Jonathan <[email protected]>
  • Loading branch information
dblock authored and nathaliellenaa committed Dec 18, 2024

Verified

This commit was signed with the committer’s verified signature.
cderv Christophe Dervieux
commit 3b07554b52fe4eb9f522ef3b605dfa4e02d4d90a
17 changes: 17 additions & 0 deletions tests/default/_core/validate/query.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test validating queries.
chapters:
- synopsis: Validate a query.
path: /_validate/query
method:
- GET
- POST
request:
payload:
query:
match_all: {}
response:
status: 200
payload:
valid: true
23 changes: 5 additions & 18 deletions tests/default/indices/validate/query.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test validating queries for a specific index using both GET and POST methods.
description: Test validating queries for a specific index.
epilogues:
- path: /movies
method: DELETE
@@ -18,9 +18,11 @@ prologues:
- {create: {_index: movies, _id: movie2}}
- {director: Nicolas Winding Refn, title: Drive, year: 1960}
chapters:
- synopsis: Validate a match query (GET).
- synopsis: Validate a match query.
path: /{index}/_validate/query
method: GET
method:
- GET
- POST
parameters:
index: movies
request:
@@ -32,18 +34,3 @@ chapters:
status: 200
payload:
valid: true

- synopsis: Validate a match query (POST).
path: /{index}/_validate/query
method: POST
parameters:
index: movies
request:
payload:
query:
match:
title: Drive
response:
status: 200
payload:
valid: true
2 changes: 2 additions & 0 deletions tests/plugins/security/api/nodesdn.yaml
Original file line number Diff line number Diff line change
@@ -15,6 +15,8 @@ chapters:
payload:
nodes_dn:
- CN=cluster.example.com
retry:
count: 3
response:
status: 201
payload: