Skip to content

[9.1] [Security Solution] Enable accidentally skipped prebuilt rules package integration tests (#226759)#227506

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-226759
Jul 10, 2025
Merged

[9.1] [Security Solution] Enable accidentally skipped prebuilt rules package integration tests (#226759)#227506
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-226759

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…e integration tests (elastic#226759)

## Summary

This PR enables accidentally skipped prebuilt rules package integration tests.

## Details

The integration tests were accidentally skipped by missing `loadTestFile(require.resolve('./prebuilt_rules_package'));` line in elastic#225495 as the result of merge conflicts.

Enabling those integration tests revealed an issue with the installing all prebuilt rules integration tests. Since the prebuilt rules package contains ML rules all rules installation fails under the low-tier license as ML rules require high-tier license. So this single test was changed to run under high-tier license.

Just for the record, ML related UI issues has been addressed in elastic#224676. It means that users may observe this error under low-tier license only by using the API directly.

(cherry picked from commit 189cfb5)
@kibanamachine kibanamachine merged commit 93f2122 into elastic:9.1 Jul 10, 2025
16 checks passed
maximpn added a commit that referenced this pull request Jul 11, 2025
…package integration tests (#226759) (#227565)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] Enable accidentally skipped prebuilt rules
package integration tests
(#226759)](#226759)

<!--- 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-07-10T17:32:29Z","message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a","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.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests","number":226759,"url":"https://github.com/elastic/kibana/pull/226759","mergeCommit":{"message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227506","number":227506,"state":"MERGED","mergeCommit":{"sha":"93f21228e7cf49d7f93ea857c2a815203083181d","message":"[9.1]
[Security Solution] Enable accidentally skipped prebuilt rules package
integration tests (#226759) (#227506)\n\n# Backport\n\nThis will
backport the following commits from `main` to `9.1`:\n- [[Security
Solution] Enable accidentally skipped prebuilt rules\npackage
integration
tests\n(#226759)](https://github.com/elastic/kibana/pull/226759)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Maxim Palenov
<maxim.palenov@elastic.co>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227505","number":227505,"state":"MERGED","mergeCommit":{"sha":"4c9c5dfadc63a489fbdba79f18f94134cb08c80b","message":"[8.19]
[Security Solution] Enable accidentally skipped prebuilt rules package
integration tests (#226759) (#227505)\n\n# Backport\n\nThis will
backport the following commits from `main` to `8.19`:\n- [[Security
Solution] Enable accidentally skipped prebuilt rules\npackage
integration
tests\n(#226759)](https://github.com/elastic/kibana/pull/226759)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Maxim Palenov
<maxim.palenov@elastic.co>"}},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226759","number":226759,"mergeCommit":{"message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
maximpn added a commit that referenced this pull request Jul 12, 2025
… package integration tests (#226759) (#227566)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] Enable accidentally skipped prebuilt rules
package integration tests
(#226759)](#226759)

<!--- 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-07-10T17:32:29Z","message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a","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.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests","number":226759,"url":"https://github.com/elastic/kibana/pull/226759","mergeCommit":{"message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227506","number":227506,"state":"MERGED","mergeCommit":{"sha":"93f21228e7cf49d7f93ea857c2a815203083181d","message":"[9.1]
[Security Solution] Enable accidentally skipped prebuilt rules package
integration tests (#226759) (#227506)\n\n# Backport\n\nThis will
backport the following commits from `main` to `9.1`:\n- [[Security
Solution] Enable accidentally skipped prebuilt rules\npackage
integration
tests\n(#226759)](https://github.com/elastic/kibana/pull/226759)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Maxim Palenov
<maxim.palenov@elastic.co>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227505","number":227505,"state":"MERGED","mergeCommit":{"sha":"4c9c5dfadc63a489fbdba79f18f94134cb08c80b","message":"[8.19]
[Security Solution] Enable accidentally skipped prebuilt rules package
integration tests (#226759) (#227505)\n\n# Backport\n\nThis will
backport the following commits from `main` to `8.19`:\n- [[Security
Solution] Enable accidentally skipped prebuilt rules\npackage
integration
tests\n(#226759)](https://github.com/elastic/kibana/pull/226759)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Maxim Palenov
<maxim.palenov@elastic.co>"}},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226759","number":226759,"mergeCommit":{"message":"[Security
Solution] Enable accidentally skipped prebuilt rules package integration
tests (#226759)\n\n## Summary\n\nThis PR enables accidentally skipped
prebuilt rules package integration tests.\n\n## Details\n\nThe
integration tests were accidentally skipped by missing
`loadTestFile(require.resolve('./prebuilt_rules_package'));` line in
#225495 as the result of merge
conflicts.\n\nEnabling those integration tests revealed an issue with
the installing all prebuilt rules integration tests. Since the prebuilt
rules package contains ML rules all rules installation fails under the
low-tier license as ML rules require high-tier license. So this single
test was changed to run under high-tier license.\n\nJust for the record,
ML related UI issues has been addressed in
#224676. It means that users may
observe this error under low-tier license only by using the API
directly.","sha":"189cfb5bce4e490e73e1c16faf8bddbd203d8b2a"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants