diff --git a/tests/ml/model_lifecycle.yaml b/tests/ml/model_groups.yaml similarity index 66% rename from tests/ml/model_lifecycle.yaml rename to tests/ml/model_groups.yaml index ddbc13537..4fdb37000 100644 --- a/tests/ml/model_lifecycle.yaml +++ b/tests/ml/model_groups.yaml @@ -1,8 +1,8 @@ -$schema: ../json_schemas/test_story.schema.yaml +$schema: ../../json_schemas/test_story.schema.yaml skip: false description: | - This test story checks that we can create a model group + Test the creation of model groups. epilogues: - path: /_plugins/_ml/model_groups/{model_group_id} method: DELETE @@ -10,7 +10,7 @@ epilogues: parameters: model_group_id: ${create_model_group.test_model_group_id} chapters: - - synopsis: Configure cluster + - synopsis: Configure cluster. path: /_cluster/settings method: PUT request_body: @@ -19,7 +19,7 @@ chapters: plugins: ml_commons: only_run_on_ml_node: false - - synopsis: Create model group + - synopsis: Create model group. id: create_model_group path: /_plugins/_ml/model_groups/_register method: POST @@ -27,12 +27,21 @@ chapters: payload: name: "NLP_Group" description: "Model group for NLP models" + response: + status: 200 output: test_model_group_id: "payload.model_group_id" - - synopsis: Query model group + - synopsis: Query model group. path: /_plugins/_ml/model_groups/{model_group_id} method: GET parameters: model_group_id: ${create_model_group.test_model_group_id} response: status: 200 + - synopsis: Delete model group. + path: /_plugins/_ml/model_groups/{model_group_id} + method: DELETE + parameters: + model_group_id: ${create_model_group.test_model_group_id} + response: + status: 200