-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.17] [ML] Functional tests - cleanMlIndices without system index ac…
…cess (#199653) (#201434) # Backport This will backport the following commits from `main` to `8.17`: - [[ML] Functional tests - cleanMlIndices without system index access (#199653)](#199653) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T16:54:01Z","message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","v8.17.0"],"title":"[ML] Functional tests - cleanMlIndices without system index access","number":199653,"url":"https://github.com/elastic/kibana/pull/199653","mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199653","number":199653,"mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Oskamp <[email protected]>
- Loading branch information
1 parent
252fbfd
commit 380d3c2
Showing
10 changed files
with
175 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.