Skip to content
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] Restructure Cypress tests under security_solution/cypress/e2e/detection_rules folder #162373

Merged

Conversation

banderror
Copy link
Contributor

@banderror banderror commented Jul 21, 2023

Epic: #153633
Resolves: #153656
Partially addresses: #153645

Summary

This PR builds upon #161900 and moves tests located in the e2e/detection_rules folder into e2e/detection_response and splits them into multiple sub-folders according to the Detection Engine subdomains we have. It also updates the CODEOWNERS file accordingly.

Screenshot 2023-07-25 at 21 03 08

Details

Specifically, changes in this PR include:

  • The e2e/detections_response folder was renamed to e2e/detection_response.
  • The e2e/detections_response/bulk_actions folder became e2e/detection_response/rule_management/rule_actions/bulk_actions.
  • Cypress tests for rule types (which actually test rule creation for different rule types) were moved to e2e/detection_response/rule_creation.
  • The CODEOWNERS file was updated.

Things not addressed in this PR:

  • No ownership was assigned for e2e/detection_response/rule_actions. Will need to figure this out with @yctercero.
  • No restructuring was done for security_solution/cypress/screens and security_solution/cypress/tasks. Will be done in follow-up PRs.
  • No refactoring was done for the tests themselves. Some of this work is also upcoming.

The full file structure of the detection_response tests looks like this:

Screenshot 2023-07-25 at 21 03 44

@banderror banderror added test test_ui_functional technical debt Improvement of the software architecture and operational architecture Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team labels Jul 21, 2023
@banderror banderror self-assigned this Jul 21, 2023
@banderror banderror force-pushed the security-cypress-restructure-e2e-folder branch from a87ea18 to 95dbd3e Compare July 21, 2023 17:36
@banderror banderror changed the title [Security Solution] Restructure Cypress e2e tests in the Rule Management area [Security Solution] Restructure Cypress tests under security_solution/cypress/e2e/detection_rules folder Jul 21, 2023
@banderror banderror added release_note:skip Skip the PR/issue when compiling release notes v8.10.0 labels Jul 21, 2023
@banderror banderror force-pushed the security-cypress-restructure-e2e-folder branch from 95dbd3e to d0d1b46 Compare July 25, 2023 11:59
Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File moves look good to me! Thanks!

Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, just realized this was all within /detection_rules. Do we want to move them to be under /detections_response?

@banderror banderror force-pushed the security-cypress-restructure-e2e-folder branch from d0d1b46 to 6fd5f2a Compare July 25, 2023 19:02
@banderror banderror marked this pull request as ready for review July 25, 2023 19:17
@banderror banderror requested review from a team as code owners July 25, 2023 19:17
@banderror banderror requested a review from dplumlee July 25, 2023 19:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewing - codeowners updates lgtm! One step closer!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @banderror

Copy link
Contributor

@dplumlee dplumlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@banderror banderror merged commit 4087316 into elastic:main Jul 25, 2023
25 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 25, 2023
@banderror banderror deleted the security-cypress-restructure-e2e-folder branch July 25, 2023 20:31
rshen91 pushed a commit to rshen91/kibana that referenced this pull request Jul 26, 2023
…n/cypress/e2e/detection_rules` folder (elastic#162373)

**Epic:** elastic#153633
**Partially addresses:** elastic#153645

## Summary

This PR builds upon elastic#161900 and
moves tests located in the `e2e/detection_rules` folder into
`e2e/detection_response` and splits them into multiple sub-folders
according to the Detection Engine subdomains we have. It also updates
the CODEOWNERS file accordingly.

<img width="451" alt="Screenshot 2023-07-25 at 21 03 08"
src="https://github.com/elastic/kibana/assets/7359339/fb6052c9-3c5d-4547-98f1-61f44b9f7187">

## Details

Specifically, changes in this PR include:

- The `e2e/detections_response` folder was renamed to
`e2e/detection_response`.
- The `e2e/detections_response/bulk_actions` folder became
`e2e/detection_response/rule_management/rule_actions/bulk_actions`.
- Cypress tests for rule types (which actually test rule creation for
different rule types) were moved to
`e2e/detection_response/rule_creation`.
- The CODEOWNERS file was updated.

Things not addressed in this PR:

- No ownership was assigned for `e2e/detection_response/rule_actions`.
Will need to figure this out with @yctercero.
- No restructuring was done for `security_solution/cypress/screens` and
`security_solution/cypress/tasks`. Will be done in follow-up PRs.
- No refactoring was done for the tests themselves. Some of this work is
also upcoming.

The full file structure of the `detection_response` tests looks like
this:

<img width="452" alt="Screenshot 2023-07-25 at 21 03 44"
src="https://github.com/elastic/kibana/assets/7359339/2b89c6d2-9f2d-4cf6-914f-a71c3fa93595">
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
…n/cypress/e2e/detection_rules` folder (elastic#162373)

**Epic:** elastic#153633
**Partially addresses:** elastic#153645

## Summary

This PR builds upon elastic#161900 and
moves tests located in the `e2e/detection_rules` folder into
`e2e/detection_response` and splits them into multiple sub-folders
according to the Detection Engine subdomains we have. It also updates
the CODEOWNERS file accordingly.

<img width="451" alt="Screenshot 2023-07-25 at 21 03 08"
src="https://github.com/elastic/kibana/assets/7359339/fb6052c9-3c5d-4547-98f1-61f44b9f7187">

## Details

Specifically, changes in this PR include:

- The `e2e/detections_response` folder was renamed to
`e2e/detection_response`.
- The `e2e/detections_response/bulk_actions` folder became
`e2e/detection_response/rule_management/rule_actions/bulk_actions`.
- Cypress tests for rule types (which actually test rule creation for
different rule types) were moved to
`e2e/detection_response/rule_creation`.
- The CODEOWNERS file was updated.

Things not addressed in this PR:

- No ownership was assigned for `e2e/detection_response/rule_actions`.
Will need to figure this out with @yctercero.
- No restructuring was done for `security_solution/cypress/screens` and
`security_solution/cypress/tasks`. Will be done in follow-up PRs.
- No refactoring was done for the tests themselves. Some of this work is
also upcoming.

The full file structure of the `detection_response` tests looks like
this:

<img width="452" alt="Screenshot 2023-07-25 at 21 03 44"
src="https://github.com/elastic/kibana/assets/7359339/2b89c6d2-9f2d-4cf6-914f-a71c3fa93595">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. technical debt Improvement of the software architecture and operational architecture test_ui_functional test v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] Identify Rule Management Cypress tests ownership
6 participants