-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing tests for ML APIs (search and delete)
Signed-off-by: Nathalie Jonathan <[email protected]>
- Loading branch information
1 parent
6bb1fed
commit f5f1213
Showing
3 changed files
with
151 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the creation of tasks. | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
version: '>= 2.11' | ||
warnings: | ||
multiple-paths-detected: false | ||
chapters: | ||
- synopsis: Register model. | ||
id: register_model | ||
path: /_plugins/_ml/models/_register | ||
method: POST | ||
request: | ||
payload: | ||
name: huggingface/sentence-transformers/msmarco-distilbert-base-tas-b | ||
version: 1.0.1 | ||
model_format: TORCH_SCRIPT | ||
response: | ||
status: 200 | ||
output: | ||
task_id: payload.task_id | ||
- synopsis: Delete task. | ||
id: delete_task | ||
path: /_plugins/_ml/tasks/{task_id} | ||
method: DELETE | ||
parameters: | ||
task_id: ${register_model.task_id} | ||
response: | ||
status: 200 |