-
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] Migrate Prebuilt rules API integration tests to security_solution_api_integration
folder
#169951
[Security Solution] Migrate Prebuilt rules API integration tests to security_solution_api_integration
folder
#169951
Conversation
2190d36
to
159b54a
Compare
67f287c
to
143e248
Compare
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
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.
ftr_configs.yml
.buildkite/ftr_configs.yml
Outdated
@@ -461,7 +457,15 @@ enabled: | |||
- x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/rule_creation/configs/ess.config.ts | |||
- x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/actions/configs/serverless.config.ts | |||
- x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/actions/configs/ess.config.ts | |||
|
|||
- x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/prebuilt_rules/configs/serverless.config.ts |
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.
Why can't we just have prebuilt_rules
group?
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.
Because all of these folders have different configs which are specific to the tests, within them. For example, for large_prebuilt_rules_package
, we need to configure the env to use a max of 800mb to tests possible OOM issues. Similarly with the others; the specific configs are passed to the ess.config.ts and serveres.config.ts files
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.
Could you please update the Codeowner file for the newly added files, thanks!
7b32e6d
to
46f3894
Compare
.github/CODEOWNERS
Outdated
@@ -1314,6 +1314,10 @@ x-pack/plugins/cloud_integrations/cloud_full_story/server/config.ts @elastic/kib | |||
/x-pack/test/security_solution_cypress/cypress/e2e/overview @elastic/security-detection-engine | |||
x-pack/test/security_solution_api_integration/test_suites/detections_response/exceptions @elastic/security-detection-engine | |||
x-pack/test/security_solution_api_integration/test_suites/detections_response/rule_creation @elastic/security-detection-engine | |||
/x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/bundled_prebuilt_rules_package @elastic/security-detection-rule-management |
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.
@WafaaNasr Thanks for the heads up on updating CODEOWNERS.
Just pinging you here cause the routes that you added for your folders look non-existent, missing the /default_license
dir. Not sure if it works anyways, but worth a check.
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.
Thanks, Juan!! Yes correct I updated them in this PR
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.
The changes LGTM, thank you @jpdjere 👍 I left a few questions and suggestions.
...uites/detections_response/default_license/large_prebuilt_rules_package/configs/ess.config.ts
Outdated
Show resolved
Hide resolved
...egration/test_suites/detections_response/default_license/prebuilt_rules/fleet_integration.ts
Outdated
Show resolved
Hide resolved
...tion_api_integration/test_suites/detections_response/default_license/prebuilt_rules/index.ts
Outdated
Show resolved
Hide resolved
...est_suites/detections_response/utils/rules/prebuilt_rules/delete_all_prebuilt_rule_assets.ts
Show resolved
Hide resolved
5257c29
to
74b7c48
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.
Thanks for addressing my comments @jpdjere, the result looks awesome! All the flaky test runs also seem to have succeeded without a single error, so let's rebase the PR and merge it 🚀
fdba032
to
765f986
Compare
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --fix' removed migrated tests
765f986
to
75ad811
Compare
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @jpdjere |
Addresses partially: #151902
Summary
security_solution_api_integration
folder.x-pack/test/detection_engine_api_integration/security_and_spaces
intox-pack/test/security_solution_api_integration/test_suites/detections_response/default_license
./prebuilt_rules
/bundled_prebuilt_rules_package
/large_prebuilt_rules_package
/update_prebuilt_rules_package
-
x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules
, depending if they are no longer used in the original folder or they still are in the remaining test (should be moved shortly as well)Flaky test runner
/prebuilt_rules
🟢/bundled_prebuilt_rules_package
/large_prebuilt_rules_package
/update_prebuilt_rules_package
Link to all for PR
For maintainers