Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.9] [Security Solution] Expand prebuilt rules install/update workfl…
…ow test coverage (#155241) (#161128) # Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution] Expand prebuilt rules install/update workflow test coverage (#155241)](#155241) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Juan Pablo Djeredjian","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-03T17:22:40Z","message":"[Security Solution] Expand prebuilt rules install/update workflow test coverage (#155241)\n\n## Summary\r\n\r\nExtends test coverage for the current Prebuilt Rules installation and\r\nupdate workflows, in the Rules Management area.\r\n\r\nFollows the test plan:\r\nhttps://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit#heading=h.y4vywfmfu3ef\r\n\r\nOther changes besides the new tests:\r\n- Integration tests related to prebuilt rules were moved to a new\r\n`prebuilt_rules` dir from their old `group1` dir.\r\n- Existing Cypress tests related to prebuilt rules were renamed to\r\n`prebuilt_rules_management.cy.ts` to differentiate those tests to the\r\nnew tests related to notifications, installation and updates.\r\n- Prevented the installation of the +700 prebuilt rules in test suites\r\nwhere it is not necessary. Replaced that with installing a low number of\r\nmock prebuilt rules, which enables to test the same functionality.\r\n- Unskipping tests in\r\n[rules_selection.cy.ts](https://github.com/elastic/kibana/blob/3d146298a43e1ba24d83e0ede2758b87e826d0b6/x-pack/plugins/security_solution/cypress/e2e/detection_rules/rules_selection.cy.ts#L34).\r\nSee\r\n[explanation](https://github.com/elastic/kibana/issues/154694#issuecomment-1607265120).\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d6d4c6495faa77fa8ca093cdc1c92397da1713d1","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","test-coverage","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","ci:no-auto-commit","v8.9.0","v8.10.0"],"number":155241,"url":"https://github.com/elastic/kibana/pull/155241","mergeCommit":{"message":"[Security Solution] Expand prebuilt rules install/update workflow test coverage (#155241)\n\n## Summary\r\n\r\nExtends test coverage for the current Prebuilt Rules installation and\r\nupdate workflows, in the Rules Management area.\r\n\r\nFollows the test plan:\r\nhttps://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit#heading=h.y4vywfmfu3ef\r\n\r\nOther changes besides the new tests:\r\n- Integration tests related to prebuilt rules were moved to a new\r\n`prebuilt_rules` dir from their old `group1` dir.\r\n- Existing Cypress tests related to prebuilt rules were renamed to\r\n`prebuilt_rules_management.cy.ts` to differentiate those tests to the\r\nnew tests related to notifications, installation and updates.\r\n- Prevented the installation of the +700 prebuilt rules in test suites\r\nwhere it is not necessary. Replaced that with installing a low number of\r\nmock prebuilt rules, which enables to test the same functionality.\r\n- Unskipping tests in\r\n[rules_selection.cy.ts](https://github.com/elastic/kibana/blob/3d146298a43e1ba24d83e0ede2758b87e826d0b6/x-pack/plugins/security_solution/cypress/e2e/detection_rules/rules_selection.cy.ts#L34).\r\nSee\r\n[explanation](https://github.com/elastic/kibana/issues/154694#issuecomment-1607265120).\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d6d4c6495faa77fa8ca093cdc1c92397da1713d1"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/155241","number":155241,"mergeCommit":{"message":"[Security Solution] Expand prebuilt rules install/update workflow test coverage (#155241)\n\n## Summary\r\n\r\nExtends test coverage for the current Prebuilt Rules installation and\r\nupdate workflows, in the Rules Management area.\r\n\r\nFollows the test plan:\r\nhttps://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit#heading=h.y4vywfmfu3ef\r\n\r\nOther changes besides the new tests:\r\n- Integration tests related to prebuilt rules were moved to a new\r\n`prebuilt_rules` dir from their old `group1` dir.\r\n- Existing Cypress tests related to prebuilt rules were renamed to\r\n`prebuilt_rules_management.cy.ts` to differentiate those tests to the\r\nnew tests related to notifications, installation and updates.\r\n- Prevented the installation of the +700 prebuilt rules in test suites\r\nwhere it is not necessary. Replaced that with installing a low number of\r\nmock prebuilt rules, which enables to test the same functionality.\r\n- Unskipping tests in\r\n[rules_selection.cy.ts](https://github.com/elastic/kibana/blob/3d146298a43e1ba24d83e0ede2758b87e826d0b6/x-pack/plugins/security_solution/cypress/e2e/detection_rules/rules_selection.cy.ts#L34).\r\nSee\r\n[explanation](https://github.com/elastic/kibana/issues/154694#issuecomment-1607265120).\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d6d4c6495faa77fa8ca093cdc1c92397da1713d1"}}]}] BACKPORT--> Co-authored-by: Juan Pablo Djeredjian <[email protected]>
- Loading branch information