Skip to content
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

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Sep 30, 2022

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

@jgowdyelastic jgowdyelastic added non-issue Indicates to automation that a pull request should not appear in the release notes :ml release_note:skip Skip the PR/issue when compiling release notes v8.5.0 v8.6.0 labels Sep 30, 2022
@jgowdyelastic jgowdyelastic self-assigned this Sep 30, 2022
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner September 30, 2022 15:30
@elasticmachine
Copy link
Contributor

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(
Copy link
Member Author

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

Copy link
Member

@pheyos pheyos left a 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.

x-pack/test/functional/services/ml/test_resources.ts Outdated Show resolved Hide resolved
@jgowdyelastic jgowdyelastic enabled auto-merge (squash) September 30, 2022 16:53
@jgowdyelastic
Copy link
Member Author

retest

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jgowdyelastic

@jgowdyelastic jgowdyelastic merged commit 656a48f into elastic:main Oct 3, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 3, 2022
* [ML] Api tests for ml/modules/jobs_exist/{moduleId}

* fixing title

* fixing delete index pattern function

(cherry picked from commit 656a48f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 3, 2022
* [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]>
WafaaNasr pushed a commit to WafaaNasr/kibana that referenced this pull request Oct 11, 2022
* [ML] Api tests for ml/modules/jobs_exist/{moduleId}

* fixing title

* fixing delete index pattern function
WafaaNasr pushed a commit to WafaaNasr/kibana that referenced this pull request Oct 14, 2022
* [ML] Api tests for ml/modules/jobs_exist/{moduleId}

* fixing title

* fixing delete index pattern function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes v8.5.0 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants