-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Add integration tests for trained_models
API
#104819
[ML] Add integration tests for trained_models
API
#104819
Conversation
Pinging @elastic/ml-ui (:ml) |
await Promise.all(testModelIds.map((modelId) => ml.api.deleteIngestPipeline(modelId))); | ||
}); | ||
|
||
it('returns all trained models with associated pipelined', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - should just be pipelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in e13787b
x-pack/test/api_integration/apis/ml/trained_models/get_model_pipelines.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/trained_models/get_model_stats.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/trained_models/get_models.ts
Outdated
Show resolved
Hide resolved
Tests LGTM 🎉 Just left a few small comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest edits LGTM
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @darnautov |
* [ML] api integration tests for get trained models endpoint * [ML] delete ingest pipelines after tests execution * [ML] deleteIngestPipeline method * [ML] test for unauthorized user * [ML] tests for model stats * [ML] delete trained model tests * [ML] fix typo * [ML] fix expect package path * [ML] get model pipelines tests * [ML] test for aliases * [ML] add tests for a 404 response * [ML] fix typo * [ML] fix typo
* [ML] api integration tests for get trained models endpoint * [ML] delete ingest pipelines after tests execution * [ML] deleteIngestPipeline method * [ML] test for unauthorized user * [ML] tests for model stats * [ML] delete trained model tests * [ML] fix typo * [ML] fix expect package path * [ML] get model pipelines tests * [ML] test for aliases * [ML] add tests for a 404 response * [ML] fix typo * [ML] fix typo
* [ML] api integration tests for get trained models endpoint * [ML] delete ingest pipelines after tests execution * [ML] deleteIngestPipeline method * [ML] test for unauthorized user * [ML] tests for model stats * [ML] delete trained model tests * [ML] fix typo * [ML] fix expect package path * [ML] get model pipelines tests * [ML] test for aliases * [ML] add tests for a 404 response * [ML] fix typo * [ML] fix typo Co-authored-by: Dima Arnautov <[email protected]>
* [ML] api integration tests for get trained models endpoint * [ML] delete ingest pipelines after tests execution * [ML] deleteIngestPipeline method * [ML] test for unauthorized user * [ML] tests for model stats * [ML] delete trained model tests * [ML] fix typo * [ML] fix expect package path * [ML] get model pipelines tests * [ML] test for aliases * [ML] add tests for a 404 response * [ML] fix typo * [ML] fix typo Co-authored-by: Dima Arnautov <[email protected]>
Summary
Part of #97982
Adds integration tests for Kibana's
trained_models
API endpoints.Checklist