[Security Solution] Implement Prebuilt Rules Customization test plan#232776
Conversation
f405650 to
376bd9a
Compare
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#9251[✅] x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/configs/ess.config.ts: 200/200 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#9254[✅] Security Solution Rule Management - Prebuilt Rules Customization - Cypress: 100/100 tests passed. |
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
There was a problem hiding this comment.
Github won't let me comment on the specific file line but on line 28, the
describe('@ess @serverless @skipInServerlessMKI Calculate "is_customized"', () => {
should be updated to align with the new file name
There was a problem hiding this comment.
Thanks for noticing that.
I overlooked that implementation in customization_disabled/customization/unable_to_customize_on_import.ts doesn't match the title. In fact we allow Prebuilt Rule Customization via Prebuilt Rules Importing under insufficient for Prebuilt Rules Customization license. You many notice that Prebuilt Rules import and export API integration tests in x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/import_export run under the low-tier license.
Taking the above into account I removed customization_disabled/customization/unable_to_customize_on_import.ts as a duplicate of Prebuilt Rules import and export API integration tests.
| it(`applies "${BulkActionEditTypeEnum.add_index_patterns}" bulk edit action to prebuilt rules`, async () => { | ||
| const bulkResponse = await performBulkEditOnPrebuiltRules({ | ||
| type: BulkActionEditTypeEnum.add_index_patterns, | ||
| value: ['test-*'], | ||
| }); | ||
|
|
||
| expect(bulkResponse.attributes.results.updated).toEqual( | ||
| expect.arrayContaining([ | ||
| expect.objectContaining({ | ||
| rule_id: QUERY_PREBUILT_RULE_ID, | ||
| index: ['existing-index-pattern-1', 'existing-index-pattern-2', 'test-*'], | ||
| }), | ||
| expect.objectContaining({ | ||
| rule_id: SAVED_QUERY_PREBUILT_RULE_ID, | ||
| index: ['existing-index-pattern-1', 'existing-index-pattern-2', 'test-*'], | ||
| }), | ||
| expect.objectContaining({ | ||
| rule_id: EQL_PREBUILT_RULE_ID, | ||
| index: ['existing-index-pattern-1', 'existing-index-pattern-2', 'test-*'], | ||
| }), | ||
| ]) | ||
| ); |
There was a problem hiding this comment.
This looks like a duplication of the test above
| }); | ||
| }); | ||
|
|
||
| describe('custom query rule fields', () => { |
There was a problem hiding this comment.
Probably also want a "saved query rule fields" block in this section, or at least something testing for saved_id since the fields are mostly the same between saved query and custom query rule types.
| }); | ||
| }); | ||
|
|
||
| describe('custom query rule fields', () => { |
There was a problem hiding this comment.
Same thing with the saved query rule type here
| it('user can edit a non-customized prebuilt rule from the rule edit page', function () { | ||
| const newDescriptionValue = 'New rule description'; | ||
| cy.get(RULE_NAME).contains('Non-customized prebuilt rule').click(); | ||
| describe('navigation to the prebuilt rule editing page', () => { |
There was a problem hiding this comment.
nit:
| describe('navigation to the prebuilt rule editing page', () => { | |
| describe('navigation to the rule editing page', () => { |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…lastic#232776) **Resolves: elastic#202068 ## Summary This PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md). ## Details The major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done - Prebuilt rules reverting customization test plan has been extracted - Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates - Test scenario implementations for missing base version have been added - Test scenario implementations for insufficient license have been added - Per field customization integration tests now also verify the customization can be reverted by saving original field value Extended test coverage is crucial for making sure changes suggested in elastic#230856 don't bring in new issues. ## Flaky test runner - [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs) - [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs) (cherry picked from commit 57d96cf) # Conflicts: # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/calculate_is_customized.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/calculate_is_customized.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/customize_prebuilt_rules.ts
…lastic#232776) **Resolves: elastic#202068 ## Summary This PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md). ## Details The major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done - Prebuilt rules reverting customization test plan has been extracted - Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates - Test scenario implementations for missing base version have been added - Test scenario implementations for insufficient license have been added - Per field customization integration tests now also verify the customization can be reverted by saving original field value Extended test coverage is crucial for making sure changes suggested in elastic#230856 don't bring in new issues. ## Flaky test runner - [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs) - [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs) (cherry picked from commit 57d96cf) # Conflicts: # x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/calculate_is_customized.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/unable_to_customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/calculate_is_customized.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/customize_prebuilt_rules.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/detect_customization_with_base_version.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/detect_customization_without_base_version.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/unaffected_fields.ts # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization.cy.ts # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization_basic_license.cy.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#232776) **Resolves: elastic#202068 ## Summary This PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md). ## Details The major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done - Prebuilt rules reverting customization test plan has been extracted - Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates - Test scenario implementations for missing base version have been added - Test scenario implementations for insufficient license have been added - Per field customization integration tests now also verify the customization can be reverted by saving original field value Extended test coverage is crucial for making sure changes suggested in elastic#230856 don't bring in new issues. ## Flaky test runner - [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs) - [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs) (cherry picked from commit 57d96cf) # Conflicts: # x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/calculate_is_customized.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/unable_to_customize_via_bulk_editing.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/calculate_is_customized.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/customize_prebuilt_rules.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/detect_customization_with_base_version.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/detect_customization_without_base_version.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/unaffected_fields.ts # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization.cy.ts # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization_basic_license.cy.ts
…lastic#232776) **Resolves: elastic#202068 ## Summary This PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md). ## Details The major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done - Prebuilt rules reverting customization test plan has been extracted - Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates - Test scenario implementations for missing base version have been added - Test scenario implementations for insufficient license have been added - Per field customization integration tests now also verify the customization can be reverted by saving original field value Extended test coverage is crucial for making sure changes suggested in elastic#230856 don't bring in new issues. ## Flaky test runner - [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs) - [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#232776) **Resolves: elastic#202068 ## Summary This PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md). ## Details The major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done - Prebuilt rules reverting customization test plan has been extracted - Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates - Test scenario implementations for missing base version have been added - Test scenario implementations for insufficient license have been added - Per field customization integration tests now also verify the customization can be reverted by saving original field value Extended test coverage is crucial for making sure changes suggested in elastic#230856 don't bring in new issues. ## Flaky test runner - [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs) - [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs) (cherry picked from commit 57d96cf) # Conflicts: # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/customization/calculate_is_customized.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/calculate_is_customized.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/customization/customize_prebuilt_rules.ts
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
… plan (#232776) (#233905) # Backport This will backport the following commits from `main` to `9.1`: - [[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)](#232776) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2025-09-03T16:51:58Z","message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security Solution] Implement Prebuilt Rules Customization test plan","number":232776,"url":"https://github.com/elastic/kibana/pull/232776","mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/232776","number":232776,"mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
… plan (#232776) (#233952) # Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)](#232776) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2025-09-03T16:51:58Z","message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security Solution] Implement Prebuilt Rules Customization test plan","number":232776,"url":"https://github.com/elastic/kibana/pull/232776","mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/232776","number":232776,"mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…t plan (#232776) (#234501) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)](#232776) <!--- Backport version: 10.0.2 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2025-09-03T16:51:58Z","message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","backport missing","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security Solution] Implement Prebuilt Rules Customization test plan","number":232776,"url":"https://github.com/elastic/kibana/pull/232776","mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/232776","number":232776,"mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/233905","number":233905,"state":"OPEN"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/233952","number":233952,"state":"OPEN"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/233954","number":233954,"state":"OPEN"}]}] BACKPORT-->
…t plan (#232776) (#233954) # Backport This will backport the following commits from `main` to `8.18`: - [[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)](#232776) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2025-09-03T16:51:58Z","message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security Solution] Implement Prebuilt Rules Customization test plan","number":232776,"url":"https://github.com/elastic/kibana/pull/232776","mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/232776","number":232776,"mergeCommit":{"message":"[Security Solution] Implement Prebuilt Rules Customization test plan (#232776)\n\n**Resolves: https://github.com/elastic/kibana/issues/202068**\n\n## Summary\n\nThis PR implements [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md).\n\n## Details\n\nThe major part of the [prebuilt rules customization test plan](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_customization.md) had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done\n\n- Prebuilt rules reverting customization test plan has been extracted\n- Existing prebuilt rule customization tests have been refactored to improve naming and remove duplicates\n- Test scenario implementations for missing base version have been added\n- Test scenario implementations for insufficient license have been added\n- Per field customization integration tests now also verify the customization can be reverted by saving original field value\n \nExtended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.\n\n## Flaky test runner\n\n- [Prebuilt rule customization integration tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9251) (200 runs)\n- [Prebuilt rule customization e2e tests](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9254) (100 runs)","sha":"57d96cfbcbed8e0f33d874fd8f9494f71483548b"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Resolves: #202068
Summary
This PR implements prebuilt rules customization test plan.
Details
The major part of the prebuilt rules customization test plan had been implemented already so this PR adds missing test scenario implementations and refactors the existing tests. In particular the following has been done
Extended test coverage is crucial for making sure changes suggested in #230856 don't bring in new issues.
Flaky test runner