-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Revisit prebuilt detection rules tests #149502
Conversation
f2c4f52
to
65d7195
Compare
e50822d
to
f6a34b7
Compare
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
f6a34b7
to
205ec9a
Compare
205ec9a
to
1460266
Compare
1460266
to
d65e9f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xcrzx Fantastic PR! I ended up posting quite a bunch of comments, although non of them are critical. Let's go over them together when you read them, and also sync on the test plan and the next steps.
x-pack/test/detection_engine_api_integration/security_and_spaces/group1/index.ts
Outdated
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/utils/increment_prebuilt_rule_version.ts
Outdated
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/utils/increment_prebuilt_rule_version.ts
Outdated
Show resolved
Hide resolved
...k/test/detection_engine_api_integration/security_and_spaces/group1/install_prebuilt_rules.ts
Outdated
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/security_and_spaces/group1/fleet_integration.ts
Outdated
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/security_and_spaces/group1/fleet_integration.ts
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/security_and_spaces/group1/fleet_integration.ts
Outdated
Show resolved
Hide resolved
x-pack/test/detection_engine_api_integration/security_and_spaces/group1/fleet_integration.ts
Outdated
Show resolved
Hide resolved
053f92c
to
f4b686c
Compare
f4b686c
to
146874c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResponseOps changes LGTM
146874c
to
4c7285c
Compare
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @xcrzx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xcrzx Thank you for addressing all the comments. Tests started to become much better thanks to your leadership on their quality 🙌
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…9502) (#151999) # Backport This will backport the following commits from `main` to `8.7`: - [[Security Solution] Revisit prebuilt detection rules tests (#149502)](#149502) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dmitrii Shevchenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-02-23T12:36:57Z","message":"[Security Solution] Revisit prebuilt detection rules tests (#149502)","sha":"a2bba156e23bfa1cb57f58c5f6e864b00d3d6203","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["technical debt","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rules","Feature:Prebuilt Detection Rules","v8.7.0","v8.8.0"],"number":149502,"url":"https://github.com/elastic/kibana/pull/149502","mergeCommit":{"message":"[Security Solution] Revisit prebuilt detection rules tests (#149502)","sha":"a2bba156e23bfa1cb57f58c5f6e864b00d3d6203"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149502","number":149502,"mergeCommit":{"message":"[Security Solution] Revisit prebuilt detection rules tests (#149502)","sha":"a2bba156e23bfa1cb57f58c5f6e864b00d3d6203"}}]}] BACKPORT-->
Partially addresses: #148176
Summary
Improved test coverage of the functionality related to the status and installation of the prebuilt rules:
get_prebuilt_rules_status
andinstall_prebuilt_rules
endpointsSee test scenarios here: #148176 (comment)
Not covered by this PR