[Security Solution][API testing] Move and restructures Alerts' tests#170350
[Security Solution][API testing] Move and restructures Alerts' tests#170350WafaaNasr merged 17 commits intoelastic:mainfrom
Conversation
…asr/kibana into move-structure-alerts-api
.github/CODEOWNERS
Outdated
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/exceptions @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/rule_creation @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/actions @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/rule_creation @elastic/security-detection-engine |
There was a problem hiding this comment.
I think this is a duplicate of line 1315?
There was a problem hiding this comment.
Correct! replaced it with alerts, Thank you!
rylnd
left a comment
There was a problem hiding this comment.
Changes here look correct, and CI seems to confirm things are working. I had a few nits about the names of these new test suites, but overall LGTM.
.github/CODEOWNERS
Outdated
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/rule_creation @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/actions @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/alerts @elastic/security-detection-engine | ||
| x-pack/test/security_solution_api_integration/test_suites/detections_response/default_license/alerts @elastic/security-detection-engine |
| testFiles: [require.resolve('.')], | ||
| testFiles: [require.resolve('..')], | ||
| junit: { | ||
| reportName: 'Detection Engine ESS/Alerts API Integration Tests', |
There was a problem hiding this comment.
Nit: the slash here makes it look like "ESS/Alerts" is a concept. These seem to be pretty freeform, so I'll throw out a suggestion:
| reportName: 'Detection Engine ESS/Alerts API Integration Tests', | |
| reportName: 'Detection Engine API Integration Tests - ESS - Alerts ', |
There was a problem hiding this comment.
Makes sense to me! I changed it here for the Alerts now and then I will iterate all of them too
Thanks Ryland!!
Please find it fixed here
| export default createTestConfig({ | ||
| testFiles: [require.resolve('..')], | ||
| junit: { | ||
| reportName: 'Detection Engine Serverless/Alerts API Integration Tests', |
| @@ -35,7 +39,6 @@ function sleep(ms: number) { | |||
| return new Promise((resolve) => setTimeout(resolve, ms)); | |||
| } | |||
|
|
|||
| // eslint-disable-next-line import/no-default-export | |||
| "@kbn/journeys", | ||
| "@kbn/stdio-dev-helpers", | ||
| "@kbn/alerting-api-integration-helpers", | ||
| "@kbn/securitysolution-ecs", |
There was a problem hiding this comment.
Clarification: is this being removed since only the child security_solution_api_integration now references it?
There was a problem hiding this comment.
Usually these changes are done by the CI, so I am not 100% sure but I kinda have the same explanation since it used only in the new security_solution_api_integration folder now
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @WafaaNasr |
Summary
alertsundersecurity_solution_api_integrationsecurity_solution_api_integration. Files that were not actively used in the previous folder were moved, while any duplicate files remained in their original positions.Note: these tests are skipped on the main branch
https://github.com/elastic/kibana/blob/main/x-pack/test/detection_engine_api_integration/security_and_spaces/group10/open_close_signals.ts#L215
https://github.com/elastic/kibana/blob/main/x-pack/test/detection_engine_api_integration/security_and_spaces/group10/open_close_signals.ts#L252
https://github.com/elastic/kibana/blob/main/x-pack/test/detection_engine_api_integration/security_and_spaces/group10/finalize_signals_migrations.ts#L192
https://github.com/elastic/kibana/blob/main/x-pack/test/detection_engine_api_integration/security_and_spaces/group1/create_index.ts#L42