Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Aug 12, 2024
1 parent dafb656 commit e3e61d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 9 additions & 1 deletion spec/namespaces/ml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,15 @@ components:
content:
application/json:
schema:
$ref: '../schemas/ml._common.yaml#/components/schemas/Task'
type: object
properties:
task_id:
type: string
status:
type: string
required:
- task_id
- status

Check failure on line 163 in spec/namespaces/ml.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'status' should be before 'task_id'
ml.delete_model@200:
content:
application/json:
Expand Down
12 changes: 6 additions & 6 deletions tests/default/ml/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ prologues:
ml_commons:
only_run_on_ml_node: false
chapters:
- synopsis: Create model.
id: create_model
- synopsis: Register model.
id: register_model
path: /_plugins/_ml/models/_register
method: POST
request:
Expand All @@ -25,14 +25,14 @@ chapters:
status: 200
output:
task_id: payload.task_id
- synopsis: Wait for task.
id: register_model
- synopsis: Wait to get completed task.
id: get_completed_task
path: /_plugins/_ml/tasks/{task_id}
method: GET
warnings:
multiple-paths-detected: false
parameters:
task_id: ${create_model.task_id}
task_id: ${register_model.task_id}
response:
status: 200
payload:
Expand All @@ -45,5 +45,5 @@ chapters:
- synopsis: Delete model.
path: /_plugins/_ml/models/{model_id}
parameters:
model_id: ${register_model.model_id}
model_id: ${get_completed_task.model_id}
method: DELETE

0 comments on commit e3e61d7

Please sign in to comment.