Skip to content

[Security Solution] Remove D&R helpers duplicates#235972

Merged
nikitaindik merged 4 commits intoelastic:mainfrom
nikitaindik:remove-detection-response-helpers-duplicates
Oct 22, 2025
Merged

[Security Solution] Remove D&R helpers duplicates#235972
nikitaindik merged 4 commits intoelastic:mainfrom
nikitaindik:remove-detection-response-helpers-duplicates

Conversation

@nikitaindik
Copy link
Copy Markdown
Contributor

@nikitaindik nikitaindik commented Sep 22, 2025

Partially addresses: #234642
Follow-up issue to extract into package: #240043

Summary

This PR removes duplicated Detections & Response test utils directory that was used by cases_api_integrations tests. The removed directory was located at x-pack/solutions/security/test/common/utils/detections_response.

Changes

  • Removed duplicated utils directory at x-pack/solutions/security/test/common/utils/detections_response
  • Updated util imports in cases_api_integrations directory to import from x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response instead of the removed directory
  • Added a tsconfig.json for the utils directory to make it importable from both security_solution_api_integration and cases_api_integrations.

@nikitaindik nikitaindik force-pushed the remove-detection-response-helpers-duplicates branch from 801daa5 to ac69ec0 Compare September 23, 2025 13:03
@nikitaindik nikitaindik force-pushed the remove-detection-response-helpers-duplicates branch from ac69ec0 to 0aa316c Compare October 21, 2025 08:56
@nikitaindik nikitaindik self-assigned this Oct 21, 2025
@nikitaindik nikitaindik added 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 backport:version Backport to applied version labels v9.2.0 v9.3.0 v9.1.6 v8.18.9 v8.19.6 labels Oct 21, 2025
@nikitaindik nikitaindik marked this pull request as ready for review October 21, 2025 12:01
@nikitaindik nikitaindik requested review from a team as code owners October 21, 2025 12:01
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@nikitaindik nikitaindik requested a review from a team October 21, 2025 12:01
@nikitaindik nikitaindik added the release_note:skip Skip the PR/issue when compiling release notes label Oct 21, 2025
@elastic elastic deleted a comment from elasticmachine Oct 21, 2025
@nikitaindik nikitaindik requested review from a team and maximpn October 21, 2025 12:09
Copy link
Copy Markdown
Contributor

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup, LGTM

Copy link
Copy Markdown
Contributor

@janmonschke janmonschke left a comment

Choose a reason for hiding this comment

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

kibana-cases changes lgtm

Copy link
Copy Markdown
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

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

@nikitaindik Thanks for getting rid of service duplicates 🙏

The changes LGTM. There is a smart trick with tsconfig.json in D&R services folder and referencing it from Security Solution and Cases API integrations folders 👍

Could you create a ticket for relocating reusable services in a shared test utilities package and mention it in the PR description?

@nikitaindik
Copy link
Copy Markdown
Contributor Author

@maximpn Sure, here's the issue: #240043

@nikitaindik nikitaindik merged commit 9f98970 into elastic:main Oct 22, 2025
39 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.18, 8.19, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18713394561

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 22, 2025
**Partially addresses: elastic#234642
**Follow-up issue to extract into package:
elastic#240043

# Summary

This PR removes duplicated Detections & Response test utils directory
that was used by `cases_api_integrations` tests. The removed directory
was located at
`x-pack/solutions/security/test/common/utils/detections_response`.

# Changes
- Removed duplicated utils directory at
`x-pack/solutions/security/test/common/utils/detections_response`
- Updated util imports in `cases_api_integrations` directory to import
from
`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`
instead of the removed directory
- Added a `tsconfig.json` for the utils directory to make it importable
from both `security_solution_api_integration` and
`cases_api_integrations`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9f98970)
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Oct 22, 2025

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [SLO] Fix issue where filters do not apply to overview stats (#234218)
- [Cloud Security] CDR Data View versioning and migration logic (#238547)
- [Ingest Pipelines] Fix filter button focus behavior in pipelines table (#239692)
- [Security Solution] Make prebuilt rules bootstrap errors visible (#239521)
9.1 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.1:
- [Ingest Pipelines] Fix add/edit processor flyout return focus behavior (#239720)
- [Vega] add object normalization (#238503)
- [SLO] Fix issue where filters do not apply to overview stats (#234218)
- [Cloud Security] CDR Data View versioning and migration logic (#238547)
- [Ingest Pipelines] Fix filter button focus behavior in pipelines table (#239692)
- [Security Solution] Make prebuilt rules bootstrap errors visible (#239521)
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 235972

Questions ?

Please refer to the Backport tool documentation

nikitaindik added a commit to nikitaindik/kibana that referenced this pull request Oct 22, 2025
**Partially addresses: elastic#234642
**Follow-up issue to extract into package:
elastic#240043

# Summary

This PR removes duplicated Detections & Response test utils directory
that was used by `cases_api_integrations` tests. The removed directory
was located at
`x-pack/solutions/security/test/common/utils/detections_response`.

# Changes
- Removed duplicated utils directory at
`x-pack/solutions/security/test/common/utils/detections_response`
- Updated util imports in `cases_api_integrations` directory to import
from
`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`
instead of the removed directory
- Added a `tsconfig.json` for the utils directory to make it importable
from both `security_solution_api_integration` and
`cases_api_integrations`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9f98970)

# Conflicts:
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/create_alerts_index.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/get_alerts_by_id.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/get_alerts_by_ids.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/search_alerts.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/get_gaps_by_rule_id.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/manual_run.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/wait_for_rule_status.ts
#	x-pack/solutions/security/test/common/utils/detections_response/tasks/indices_metadata.ts
#	x-pack/solutions/security/test/common/utils/detections_response/tasks/task_manager.ts
nikitaindik added a commit to nikitaindik/kibana that referenced this pull request Oct 22, 2025
**Partially addresses: elastic#234642
**Follow-up issue to extract into package:
elastic#240043

# Summary

This PR removes duplicated Detections & Response test utils directory
that was used by `cases_api_integrations` tests. The removed directory
was located at
`x-pack/solutions/security/test/common/utils/detections_response`.

# Changes
- Removed duplicated utils directory at
`x-pack/solutions/security/test/common/utils/detections_response`
- Updated util imports in `cases_api_integrations` directory to import
from
`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`
instead of the removed directory
- Added a `tsconfig.json` for the utils directory to make it importable
from both `security_solution_api_integration` and
`cases_api_integrations`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9f98970)

# Conflicts:
#	x-pack/solutions/security/test/common/utils/detections_response/index.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/delete_all_rules.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/get_gaps_by_rule_id.ts
@nikitaindik
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.1
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 22, 2025
…40052)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Security Solution] Remove D&R helpers duplicates
(#235972)](#235972)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nikita
Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2025-10-22T10:34:25Z","message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Security
Solution] Remove D&R helpers
duplicates","number":235972,"url":"https://github.com/elastic/kibana/pull/235972","mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235972","number":235972,"mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nikita Indik <nikita.indik@elastic.co>
nikitaindik added a commit to nikitaindik/kibana that referenced this pull request Oct 23, 2025
**Partially addresses: elastic#234642
**Follow-up issue to extract into package:
elastic#240043

# Summary

This PR removes duplicated Detections & Response test utils directory
that was used by `cases_api_integrations` tests. The removed directory
was located at
`x-pack/solutions/security/test/common/utils/detections_response`.

# Changes
- Removed duplicated utils directory at
`x-pack/solutions/security/test/common/utils/detections_response`
- Updated util imports in `cases_api_integrations` directory to import
from
`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`
instead of the removed directory
- Added a `tsconfig.json` for the utils directory to make it importable
from both `security_solution_api_integration` and
`cases_api_integrations`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9f98970)

# Conflicts:
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/create_alerts_index.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/get_alerts_by_id.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/get_alerts_by_ids.ts
#	x-pack/solutions/security/test/common/utils/detections_response/alerts/search_alerts.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/get_gaps_by_rule_id.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/manual_run.ts
#	x-pack/solutions/security/test/common/utils/detections_response/rules/wait_for_rule_status.ts
#	x-pack/solutions/security/test/common/utils/detections_response/tasks/indices_metadata.ts
#	x-pack/solutions/security/test/common/utils/detections_response/tasks/task_manager.ts
nikitaindik added a commit that referenced this pull request Oct 23, 2025
…40070)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Security Solution] Remove D&R helpers duplicates
(#235972)](#235972)

<!--- Backport version: 10.0.2 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nikita
Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2025-10-22T10:34:25Z","message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[Security
Solution] Remove D&R helpers
duplicates","number":235972,"url":"https://github.com/elastic/kibana/pull/235972","mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/240052","number":240052,"state":"OPEN"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235972","number":235972,"mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
nikitaindik added a commit that referenced this pull request Oct 23, 2025
…240073)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] Remove D&R helpers duplicates
(#235972)](#235972)

<!--- Backport version: 10.0.2 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nikita
Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2025-10-22T10:34:25Z","message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[Security
Solution] Remove D&R helpers
duplicates","number":235972,"url":"https://github.com/elastic/kibana/pull/235972","mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/240052","number":240052,"state":"OPEN"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235972","number":235972,"mergeCommit":{"message":"[Security
Solution] Remove D&R helpers duplicates (#235972)\n\n**Partially
addresses:
https://github.com/elastic/kibana/issues/234642**\n**Follow-up issue to
extract into
package:\nhttps://github.com//issues/240043**\n\n#
Summary\n\nThis PR removes duplicated Detections & Response test utils
directory\nthat was used by `cases_api_integrations` tests. The removed
directory\nwas located
at\n`x-pack/solutions/security/test/common/utils/detections_response`.\n\n#
Changes\n- Removed duplicated utils directory
at\n`x-pack/solutions/security/test/common/utils/detections_response`\n-
Updated util imports in `cases_api_integrations` directory to
import\nfrom\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`\ninstead
of the removed directory\n- Added a `tsconfig.json` for the utils
directory to make it importable\nfrom both
`security_solution_api_integration`
and\n`cases_api_integrations`.\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"9f98970955f0311530dba249d6b8f68829343724"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
**Partially addresses: elastic#234642
**Follow-up issue to extract into package:
elastic#240043

# Summary

This PR removes duplicated Detections & Response test utils directory
that was used by `cases_api_integrations` tests. The removed directory
was located at
`x-pack/solutions/security/test/common/utils/detections_response`.

# Changes
- Removed duplicated utils directory at
`x-pack/solutions/security/test/common/utils/detections_response`
- Updated util imports in `cases_api_integrations` directory to import
from
`x-pack/solutions/security/test/security_solution_api_integration/config/services/detections_response`
instead of the removed directory
- Added a `tsconfig.json` for the utils directory to make it importable
from both `security_solution_api_integration` and
`cases_api_integrations`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels 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. v8.19.7 v9.1.7 v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants