[ska] relocation security_solution_* FTR tests#231416
Merged
Ikuni17 merged 64 commits intoelastic:mainfrom Aug 14, 2025
Merged
Conversation
…:dmlemeshko/kibana into ska/relocate-security_solution-ftr-tests
…:dmlemeshko/kibana into ska/relocate-security_solution-ftr-tests
…:dmlemeshko/kibana into ska/relocate-security_solution-ftr-tests
…:dmlemeshko/kibana into ska/relocate-security_solution-ftr-tests
jkelas
pushed a commit
to jkelas/kibana
that referenced
this pull request
Sep 2, 2025
…lastic#233112) **Relates to:** elastic#231416 ## Summary This PR reconfigures the generation script to output Security Solution auto-generated integration API test clients to the new `x-pack/solutions/security/test/api_integration/services` location.
dmlemeshko
added a commit
that referenced
this pull request
Sep 9, 2025
## Summary manual backport of #231416 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
6 tasks
nikitaindik
added a commit
that referenced
this pull request
Sep 26, 2025
…sts (#235221) **Partially addresses: #234642 ## Summary Recent Sustainable Kibana Architecture PR #231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Sep 26, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_api.gen.ts # x-pack/solutions/security/test/functional/services/security_solution_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/services/security_solution_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/tsconfig.json # x-pack/solutions/security/test/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Sep 26, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # .github/CODEOWNERS # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_api.gen.ts # x-pack/solutions/security/test/functional/services/security_solution_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/services/security_solution_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/basic_license_essentials_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk_legacy.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/utils/entity_store.ts # x-pack/solutions/security/test/security_solution_api_integration/tsconfig.json # x-pack/solutions/security/test/tsconfig.json
nikitaindik
added a commit
that referenced
this pull request
Sep 26, 2025
…ion tests (#235221) (#236594) # Backport This will backport the following commits from `main` to `9.1`: - [[Security Solution] Remove duplicated services used in integration tests (#235221)](#235221) <!--- 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-09-26T11:56:32Z","message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5","branchLabelMapping":{"^v9.2.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","v8.19.5","v9.1.5"],"title":"[Security Solution] Remove duplicated services used in integration tests","number":235221,"url":"https://github.com/elastic/kibana/pull/235221","mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235221","number":235221,"mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
nikitaindik
added a commit
that referenced
this pull request
Sep 26, 2025
…tion tests (#235221) (#236618) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution] Remove duplicated services used in integration tests (#235221)](#235221) <!--- 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-09-26T11:56:32Z","message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5","branchLabelMapping":{"^v9.2.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","v8.19.5","v9.1.5"],"title":"[Security Solution] Remove duplicated services used in integration tests","number":235221,"url":"https://github.com/elastic/kibana/pull/235221","mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235221","number":235221,"mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
niros1
pushed a commit
that referenced
this pull request
Sep 30, 2025
…sts (#235221) **Partially addresses: #234642 ## Summary Recent Sustainable Kibana Architecture PR #231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 1, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 1, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # .github/CODEOWNERS # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/basic_license_essentials_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk_legacy.ts # x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/entity_store.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 6, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 7, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # .github/CODEOWNERS # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/basic_license_essentials_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk_legacy.ts # x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/entity_store.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 9, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
to nikitaindik/kibana
that referenced
this pull request
Oct 9, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a69d0e) # Conflicts: # .github/CODEOWNERS # src/platform/packages/shared/kbn-openapi-generator/src/template_service/templates/api_client_supertest.handlebars # x-pack/platform/plugins/shared/osquery/scripts/openapi/generate.js # x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/scripts/openapi_generate.js # x-pack/solutions/security/packages/test-api-clients/supertest/endpoint_exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/exceptions.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/lists.gen.ts # x-pack/solutions/security/packages/test-api-clients/supertest/osquery.gen.ts # x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js # x-pack/solutions/security/test/api_integration/services/index.ts # x-pack/solutions/security/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/solutions/security/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services.ts # x-pack/solutions/security/test/security_solution_api_integration/config/ess/services_edr_workflows.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/frozen_indices_handling/trial_license_complete_tier/frozen_indices_handling.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/get_prebuilt_rule_base_version.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/revert_prebuilt_rules/revert_prebuilt_rules.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_suppression.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/basic_license_essentials_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/trial_license_complete_tier/upsert_crud_api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_access_detection/pad_installation.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/api.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/cross_source_sync.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/migrations.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/privileged_users/task.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/search_indices.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/plain_index_sync_utils.ts # x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/utils/privmon_utils.ts # x-pack/solutions/security/test/serverless/functional/services/index.ts # x-pack/solutions/security/test/serverless/functional/test_suites/ftr/discover/context_awareness/index.ts # x-pack/solutions/security/test/tsconfig.json # x-pack/test/api_integration/services/security_solution_api.gen.ts # x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_exceptions_api.gen.ts # x-pack/test/api_integration/services/security_solution_lists_api.gen.ts # x-pack/test/api_integration/services/security_solution_osquery_api.gen.ts # x-pack/test/cloud_security_posture_functional/services/index.ts # x-pack/test/security_solution_api_integration/config/serverless/services.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_dry_run.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action_ess.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/create_rules.ts # x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_delete/trial_license_complete_tier/delete_rules_bulk_legacy.ts # x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/entity_store.ts # x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/install.ts # x-pack/test/security_solution_api_integration/tsconfig.json
nikitaindik
added a commit
that referenced
this pull request
Oct 10, 2025
…ion tests (#235221) (#237108) # Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution] Remove duplicated services used in integration tests (#235221)](#235221) <!--- 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-09-26T11:56:32Z","message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5","branchLabelMapping":{"^v9.2.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","v8.19.5","v9.1.5"],"title":"[Security Solution] Remove duplicated services used in integration tests","number":235221,"url":"https://github.com/elastic/kibana/pull/235221","mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235221","number":235221,"mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236618","number":236618,"state":"MERGED","mergeCommit":{"sha":"a68ca880a8dd34ca2e4f5aae8cc7ad2283f828e5","message":"[8.19] [Security Solution] Remove duplicated services used in integration tests (#235221) (#236618)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.19`:\n- [[Security Solution] Remove duplicated services used in integration\ntests (#235221)](https://github.com/elastic/kibana/pull/235221)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236594","number":236594,"state":"MERGED","mergeCommit":{"sha":"db6d4ddc1bb1cdf309e1d51d997390bce783c512","message":"[9.1] [Security Solution] Remove duplicated services used in integration tests (#235221) (#236594)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[Security Solution] Remove duplicated services used in integration\ntests (#235221)](https://github.com/elastic/kibana/pull/235221)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}}]}] BACKPORT-->
nikitaindik
added a commit
that referenced
this pull request
Oct 10, 2025
…tion tests (#235221) (#237148) # Backport This will backport the following commits from `main` to `8.18`: - [[Security Solution] Remove duplicated services used in integration tests (#235221)](#235221) <!--- 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-09-26T11:56:32Z","message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5","branchLabelMapping":{"^v9.2.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","v8.19.5","v9.1.5"],"title":"[Security Solution] Remove duplicated services used in integration tests","number":235221,"url":"https://github.com/elastic/kibana/pull/235221","mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235221","number":235221,"mergeCommit":{"message":"[Security Solution] Remove duplicated services used in integration tests (#235221)\n\n**Partially addresses: https://github.com/elastic/kibana/issues/234642**\n\n## Summary\nRecent Sustainable Kibana Architecture PR\nhttps://github.com//pull/231416 introduced duplicate\ncopies of SuperTest services used in Security Solution API integration\ntests.\nThis PR removes those duplicates by extracting the services into a\n`@kbn/security-solution-test-api-clients` package, making them reusable\nacross the Security Solution codebase.\n\nThe duplicated services were previously located in:\n- `x-pack/solutions/security/test/api_integration/services/`\n-\n`x-pack/solutions/security/test/security_solution_api_integration/config/services/`\n- `x-pack/solutions/security/test/functional/services/`\n\n## Changes\n- Extracted services into a new\n`@kbn/security-solution-test-api-clients` package\n- Updated `yarn openapi:generate` scripts to output generated files into\nthe new package.\n- Split Security Solution API client (`security_solution_api.gen.ts`)\ninto 4 domain-specific clients, each owned by its respective team.\n- Removed redundant `security_solution` prefix from API client\nfilenames. For example `security_solution_osquery_api.gen.ts` was\nrenamed `osquery_api.gen.ts`.\n\nMost of the changes are file moves or variable renames.\n\n⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will\nbe handled in a follow-up PR to keep this one focused and manageable.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a69d0ebd27bab55702cdcf199df6f5f9192fbb5"}},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236618","number":236618,"state":"MERGED","mergeCommit":{"sha":"a68ca880a8dd34ca2e4f5aae8cc7ad2283f828e5","message":"[8.19] [Security Solution] Remove duplicated services used in integration tests (#235221) (#236618)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.19`:\n- [[Security Solution] Remove duplicated services used in integration\ntests (#235221)](https://github.com/elastic/kibana/pull/235221)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236594","number":236594,"state":"MERGED","mergeCommit":{"sha":"db6d4ddc1bb1cdf309e1d51d997390bce783c512","message":"[9.1] [Security Solution] Remove duplicated services used in integration tests (#235221) (#236594)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[Security Solution] Remove duplicated services used in integration\ntests (#235221)](https://github.com/elastic/kibana/pull/235221)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
rylnd
pushed a commit
to rylnd/kibana
that referenced
this pull request
Oct 17, 2025
…sts (elastic#235221) **Partially addresses: elastic#234642 ## Summary Recent Sustainable Kibana Architecture PR elastic#231416 introduced duplicate copies of SuperTest services used in Security Solution API integration tests. This PR removes those duplicates by extracting the services into a `@kbn/security-solution-test-api-clients` package, making them reusable across the Security Solution codebase. The duplicated services were previously located in: - `x-pack/solutions/security/test/api_integration/services/` - `x-pack/solutions/security/test/security_solution_api_integration/config/services/` - `x-pack/solutions/security/test/functional/services/` ## Changes - Extracted services into a new `@kbn/security-solution-test-api-clients` package - Updated `yarn openapi:generate` scripts to output generated files into the new package. - Split Security Solution API client (`security_solution_api.gen.ts`) into 4 domain-specific clients, each owned by its respective team. - Removed redundant `security_solution` prefix from API client filenames. For example `security_solution_osquery_api.gen.ts` was renamed `osquery_api.gen.ts`. Most of the changes are file moves or variable renames.⚠️ Note: Removal of duplicated D&R utilities mentioned in the issue will be handled in a follow-up PR to keep this one focused and manageable. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2 tasks
This was referenced Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of https://github.com/elastic/kibana-team/issues/1503
This PR is mostly about moving security_solution_* FTR directories from
x-pack/test/dir tox-pack/solutions/security/testBefore
After:
Note: FTR services and page objects from
security_solution_ftrwere moved tosecurity_solution_endpoint, where its used.General note: it was quite a challenge to resolve TS projects collision issues under
x-pack/solutions/security/testdue to custom tsconfig.json files in bothsecurity_solution_api_integration/andsecurity_solution_endpoint/.For the sake of time saving I copied some services to move forward and finish SKA test relocation effort asap. Hope code owners will pick it up and refactor later.