-
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] Api tests for ml/modules/jobs_exist/{moduleId} #142378
[ML] Api tests for ml/modules/jobs_exist/{moduleId} #142378
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -54,27 +54,40 @@ export function MachineLearningTestResourcesProvider( | |||
await kibanaServer.uiSettings.unset('hideAnnouncements'); | |||
}, | |||
|
|||
async savedObjectExistsById(id: string, objectType: SavedObjectType): Promise<boolean> { | |||
const response = await supertest.get(`/api/saved_objects/${objectType}/${id}`); | |||
async savedObjectExistsById( |
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.
All the changes in this file are to pass the space name around for the functions used by this test
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.
Code LGTM with just one comment.
I'll be on vacation next week, so I'm approving now.
retest |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
* [ML] Api tests for ml/modules/jobs_exist/{moduleId} * fixing title * fixing delete index pattern function (cherry picked from commit 656a48f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* [ML] Api tests for ml/modules/jobs_exist/{moduleId} * fixing title * fixing delete index pattern function (cherry picked from commit 656a48f) Co-authored-by: James Gowdy <[email protected]>
* [ML] Api tests for ml/modules/jobs_exist/{moduleId} * fixing title * fixing delete index pattern function
* [ML] Api tests for ml/modules/jobs_exist/{moduleId} * fixing title * fixing delete index pattern function
Creates modules and then calls the jobs exists endpoint to see if the jobs have been created.
Tries with and without a prefix, also tries when installing module into a different space.
Part of #137573