Skip to content

Commit d1aa222

Browse files
[8.19] [ska] relocate x-pack/test/cases_api_integration (elastic#225056) (elastic#225491)
# Backport This will backport the following commits from `main` to `8.19`: - [[ska] relocate x-pack/test/cases_api_integration (elastic#225056)](elastic#225056) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-25T17:04:29Z","message":"[ska] relocate x-pack/test/cases_api_integration (elastic#225056)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving tests from\nx-pack/test/cases_api_integration and updating related imports\n\nBefore:\n\n```\nx-pack/test/\n | - cases_api_integration/\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - cases_api_integration/\n \nx-pack/solutions/security/test/\n | - cases_api_integration/\n```\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"bb7cce6d7b0cf5cc4a28648dd846b5328080df7f","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.1.0","v8.19.0"],"title":"[ska] relocate x-pack/test/cases_api_integration","number":225056,"url":"https://github.com/elastic/kibana/pull/225056","mergeCommit":{"message":"[ska] relocate x-pack/test/cases_api_integration (elastic#225056)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving tests from\nx-pack/test/cases_api_integration and updating related imports\n\nBefore:\n\n```\nx-pack/test/\n | - cases_api_integration/\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - cases_api_integration/\n \nx-pack/solutions/security/test/\n | - cases_api_integration/\n```\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"bb7cce6d7b0cf5cc4a28648dd846b5328080df7f"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225056","number":225056,"mergeCommit":{"message":"[ska] relocate x-pack/test/cases_api_integration (elastic#225056)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving tests from\nx-pack/test/cases_api_integration and updating related imports\n\nBefore:\n\n```\nx-pack/test/\n | - cases_api_integration/\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - cases_api_integration/\n \nx-pack/solutions/security/test/\n | - cases_api_integration/\n```\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"bb7cce6d7b0cf5cc4a28648dd846b5328080df7f"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <[email protected]>
1 parent 773bdd8 commit d1aa222

File tree

210 files changed

+1790
-321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+1790
-321
lines changed

.buildkite/ftr_platform_stateful_configs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ enabled:
158158
- x-pack/test/api_integration/apis/cases/config.ts
159159
- x-pack/test/api_integration/apis/security/config.ts
160160
- x-pack/test/banners_functional/config.ts
161-
- x-pack/test/cases_api_integration/security_and_spaces/config_basic.ts
162-
- x-pack/test/cases_api_integration/security_and_spaces/config_trial.ts
163-
- x-pack/test/cases_api_integration/security_and_spaces/config_no_public_base_url.ts
164-
- x-pack/test/cases_api_integration/spaces_only/config.ts
161+
- x-pack/platform/test/cases_api_integration/security_and_spaces/config_basic.ts
162+
- x-pack/platform/test/cases_api_integration/security_and_spaces/config_trial.ts
163+
- x-pack/platform/test/cases_api_integration/security_and_spaces/config_no_public_base_url.ts
164+
- x-pack/platform/test/cases_api_integration/spaces_only/config.ts
165165
- x-pack/test/disable_ems/config.ts
166166
- x-pack/test/examples/config.ts
167167
- x-pack/test/fleet_api_integration/config.agent.ts

.buildkite/ftr_security_stateful_configs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,5 @@ enabled:
113113
- x-pack/solutions/security/test/alerting_api_integration/security_and_spaces/group1/config.ts
114114
- x-pack/solutions/security/test/alerting_api_integration/security_and_spaces/group2/config.ts
115115
- x-pack/solutions/security/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts
116+
- x-pack/solutions/security/test/cases_api_integration/security_and_spaces/config_trial.ts
117+
- x-pack/solutions/security/test/cases_api_integration/security_and_spaces/config_basic.ts

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,8 @@ module.exports = {
16681668
'x-pack/platform/packages/shared/kbn-alerting-comparators/**/*.{ts, tsx}',
16691669
'x-pack/platform/plugins/shared/embeddable_alerts_table/**/*.{ts,tsx}',
16701670
'x-pack/platform/test/alerting_api_integration/**/*.{ts, tsx}',
1671-
'x-pack/test/cases_api_integration/**/*.{ts, tsx}',
1671+
'x-pack/platform/test/cases_api_integration/**/*.{ts, tsx}',
1672+
'x-pack/solutions/**/test/cases_api_integration/**/*.{ts, tsx}',
16721673
'x-pack/test/rule_registry/**/*.{ts, tsx}',
16731674
'x-pack/test/api_integration/apis/cases/**/*.{ts, tsx}',
16741675
],

.github/CODEOWNERS

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ src/platform/packages/shared/kbn-calculate-auto @elastic/obs-ux-management-team
7373
src/platform/packages/shared/kbn-calculate-width-from-char-count @elastic/kibana-visualizations
7474
x-pack/platform/plugins/private/canvas @elastic/kibana-presentation
7575
packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core
76-
x-pack/test/cases_api_integration/common/plugins/cases @elastic/response-ops
76+
x-pack/platform/test/cases_api_integration/common/plugins/cases @elastic/response-ops
7777
src/platform/packages/shared/kbn-cases-components @elastic/response-ops
7878
x-pack/platform/plugins/shared/cases @elastic/response-ops @elastic/kibana-cases
7979
src/platform/packages/shared/kbn-cbor @elastic/kibana-operations
@@ -692,7 +692,7 @@ x-pack/solutions/observability/packages/observability-ai/observability-ai-common
692692
x-pack/solutions/observability/packages/observability-ai/observability-ai-server @elastic/obs-ai-assistant
693693
x-pack/solutions/observability/packages/alert-details @elastic/obs-ux-management-team
694694
x-pack/solutions/observability/packages/alerting-test-data @elastic/obs-ux-management-team
695-
x-pack/test/cases_api_integration/common/plugins/observability @elastic/response-ops
695+
x-pack/platform/test/cases_api_integration/common/plugins/observability @elastic/response-ops
696696
x-pack/solutions/observability/packages/get-padded-alert-time-range-util @elastic/obs-ux-management-team
697697
x-pack/solutions/observability/plugins/observability_logs_explorer @elastic/obs-ux-logs-team
698698
x-pack/solutions/observability/plugins/observability_onboarding @elastic/obs-ux-logs-team
@@ -857,7 +857,7 @@ x-pack/solutions/security/packages/connectors @elastic/security-threat-hunting-i
857857
x-pack/solutions/security/packages/distribution-bar @elastic/kibana-cloud-security-posture
858858
x-pack/solutions/security/plugins/security_solution_ess @elastic/security-solution
859859
x-pack/solutions/security/packages/features @elastic/security-threat-hunting-investigations
860-
x-pack/test/cases_api_integration/common/plugins/security_solution @elastic/response-ops
860+
x-pack/platform/test/cases_api_integration/common/plugins/security_solution @elastic/response-ops
861861
x-pack/solutions/security/packages/navigation @elastic/security-threat-hunting-investigations
862862
x-pack/solutions/security/plugins/security_solution @elastic/security-solution
863863
x-pack/solutions/security/plugins/security_solution_serverless @elastic/security-solution
@@ -2041,7 +2041,8 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi
20412041
/x-pack/platform/test/task_manager_claimer_update_by_query/ @elastic/response-ops
20422042
/docs/user/alerting/ @elastic/response-ops
20432043
/docs/management/connectors/ @elastic/response-ops
2044-
/x-pack/test/cases_api_integration/ @elastic/response-ops
2044+
/x-pack/platform/test/cases_api_integration/ @elastic/response-ops
2045+
/x-pack/solutions/security/test/cases_api_integration/ @elastic/response-ops
20452046
/x-pack/test/functional/services/cases/ @elastic/response-ops @elastic/kibana-cases
20462047
/x-pack/test/functional_with_es_ssl/apps/cases/ @elastic/response-ops @elastic/kibana-cases
20472048
/x-pack/test/api_integration/apis/cases/ @elastic/response-ops @elastic/kibana-cases

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"@kbn/calculate-auto": "link:src/platform/packages/shared/kbn-calculate-auto",
217217
"@kbn/calculate-width-from-char-count": "link:src/platform/packages/shared/kbn-calculate-width-from-char-count",
218218
"@kbn/canvas-plugin": "link:x-pack/platform/plugins/private/canvas",
219-
"@kbn/cases-api-integration-test-plugin": "link:x-pack/test/cases_api_integration/common/plugins/cases",
219+
"@kbn/cases-api-integration-test-plugin": "link:x-pack/platform/test/cases_api_integration/common/plugins/cases",
220220
"@kbn/cases-components": "link:src/platform/packages/shared/kbn-cases-components",
221221
"@kbn/cases-plugin": "link:x-pack/platform/plugins/shared/cases",
222222
"@kbn/cbor": "link:src/platform/packages/shared/kbn-cbor",
@@ -724,7 +724,7 @@
724724
"@kbn/observability-ai-server": "link:x-pack/solutions/observability/packages/observability-ai/observability-ai-server",
725725
"@kbn/observability-alert-details": "link:x-pack/solutions/observability/packages/alert-details",
726726
"@kbn/observability-alerting-test-data": "link:x-pack/solutions/observability/packages/alerting-test-data",
727-
"@kbn/observability-fixtures-plugin": "link:x-pack/test/cases_api_integration/common/plugins/observability",
727+
"@kbn/observability-fixtures-plugin": "link:x-pack/platform/test/cases_api_integration/common/plugins/observability",
728728
"@kbn/observability-get-padded-alert-time-range-util": "link:x-pack/solutions/observability/packages/get-padded-alert-time-range-util",
729729
"@kbn/observability-logs-explorer-plugin": "link:x-pack/solutions/observability/plugins/observability_logs_explorer",
730730
"@kbn/observability-onboarding-plugin": "link:x-pack/solutions/observability/plugins/observability_onboarding",
@@ -862,7 +862,7 @@
862862
"@kbn/security-solution-distribution-bar": "link:x-pack/solutions/security/packages/distribution-bar",
863863
"@kbn/security-solution-ess": "link:x-pack/solutions/security/plugins/security_solution_ess",
864864
"@kbn/security-solution-features": "link:x-pack/solutions/security/packages/features",
865-
"@kbn/security-solution-fixtures-plugin": "link:x-pack/test/cases_api_integration/common/plugins/security_solution",
865+
"@kbn/security-solution-fixtures-plugin": "link:x-pack/platform/test/cases_api_integration/common/plugins/security_solution",
866866
"@kbn/security-solution-navigation": "link:x-pack/solutions/security/packages/navigation",
867867
"@kbn/security-solution-plugin": "link:x-pack/solutions/security/plugins/security_solution",
868868
"@kbn/security-solution-serverless": "link:x-pack/solutions/security/plugins/security_solution_serverless",

tsconfig.base.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
"@kbn/canvas-plugin/*": ["x-pack/platform/plugins/private/canvas/*"],
141141
"@kbn/capture-oas-snapshot-cli": ["packages/kbn-capture-oas-snapshot-cli"],
142142
"@kbn/capture-oas-snapshot-cli/*": ["packages/kbn-capture-oas-snapshot-cli/*"],
143-
"@kbn/cases-api-integration-test-plugin": ["x-pack/test/cases_api_integration/common/plugins/cases"],
144-
"@kbn/cases-api-integration-test-plugin/*": ["x-pack/test/cases_api_integration/common/plugins/cases/*"],
143+
"@kbn/cases-api-integration-test-plugin": ["x-pack/platform/test/cases_api_integration/common/plugins/cases"],
144+
"@kbn/cases-api-integration-test-plugin/*": ["x-pack/platform/test/cases_api_integration/common/plugins/cases/*"],
145145
"@kbn/cases-components": ["src/platform/packages/shared/kbn-cases-components"],
146146
"@kbn/cases-components/*": ["src/platform/packages/shared/kbn-cases-components/*"],
147147
"@kbn/cases-plugin": ["x-pack/platform/plugins/shared/cases"],
@@ -1378,8 +1378,8 @@
13781378
"@kbn/observability-alert-details/*": ["x-pack/solutions/observability/packages/alert-details/*"],
13791379
"@kbn/observability-alerting-test-data": ["x-pack/solutions/observability/packages/alerting-test-data"],
13801380
"@kbn/observability-alerting-test-data/*": ["x-pack/solutions/observability/packages/alerting-test-data/*"],
1381-
"@kbn/observability-fixtures-plugin": ["x-pack/test/cases_api_integration/common/plugins/observability"],
1382-
"@kbn/observability-fixtures-plugin/*": ["x-pack/test/cases_api_integration/common/plugins/observability/*"],
1381+
"@kbn/observability-fixtures-plugin": ["x-pack/platform/test/cases_api_integration/common/plugins/observability"],
1382+
"@kbn/observability-fixtures-plugin/*": ["x-pack/platform/test/cases_api_integration/common/plugins/observability/*"],
13831383
"@kbn/observability-get-padded-alert-time-range-util": ["x-pack/solutions/observability/packages/get-padded-alert-time-range-util"],
13841384
"@kbn/observability-get-padded-alert-time-range-util/*": ["x-pack/solutions/observability/packages/get-padded-alert-time-range-util/*"],
13851385
"@kbn/observability-logs-explorer-plugin": ["x-pack/solutions/observability/plugins/observability_logs_explorer"],
@@ -1708,8 +1708,8 @@
17081708
"@kbn/security-solution-ess/*": ["x-pack/solutions/security/plugins/security_solution_ess/*"],
17091709
"@kbn/security-solution-features": ["x-pack/solutions/security/packages/features"],
17101710
"@kbn/security-solution-features/*": ["x-pack/solutions/security/packages/features/*"],
1711-
"@kbn/security-solution-fixtures-plugin": ["x-pack/test/cases_api_integration/common/plugins/security_solution"],
1712-
"@kbn/security-solution-fixtures-plugin/*": ["x-pack/test/cases_api_integration/common/plugins/security_solution/*"],
1711+
"@kbn/security-solution-fixtures-plugin": ["x-pack/platform/test/cases_api_integration/common/plugins/security_solution"],
1712+
"@kbn/security-solution-fixtures-plugin/*": ["x-pack/platform/test/cases_api_integration/common/plugins/security_solution/*"],
17131713
"@kbn/security-solution-navigation": ["x-pack/solutions/security/packages/navigation"],
17141714
"@kbn/security-solution-navigation/*": ["x-pack/solutions/security/packages/navigation/*"],
17151715
"@kbn/security-solution-plugin": ["x-pack/solutions/security/plugins/security_solution"],

x-pack/platform/plugins/shared/cases/common/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const CASE_ID_INCREMENTER_SAVED_OBJECT = 'cases-incrementing-id' as const
3434
export const CASES_UI_SETTING_ID_DISPLAY_INCREMENTAL_ID = 'cases:incrementalIdDisplay:enabled';
3535

3636
/**
37-
* If more values are added here please also add them here: x-pack/test/cases_api_integration/common/plugins
37+
* If more values are added here please also add them here: x-pack/platform/test/cases_api_integration/common/plugins
3838
*/
3939
export const SAVED_OBJECT_TYPES = [
4040
CASE_SAVED_OBJECT,

x-pack/test/cases_api_integration/common/config.ts renamed to x-pack/platform/test/cases_api_integration/common/config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { FtrConfigProviderContext } from '@kbn/test';
1212
import { findTestPluginPaths } from '@kbn/test';
1313
import { ScoutTestRunConfigCategory } from '@kbn/scout-info';
1414

15-
import { getAllExternalServiceSimulatorPaths } from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils';
15+
import { getAllExternalServiceSimulatorPaths } from '../../alerting_api_integration/common/lib/actions_simulations_utils';
1616
import { services } from './services';
1717

1818
interface CreateTestConfigOptions {
@@ -93,10 +93,7 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions)
9393
.map((key) => `--xpack.${key}.enabled=false`),
9494
...findTestPluginPaths([
9595
path.resolve(__dirname, 'plugins'),
96-
path.resolve(
97-
__dirname,
98-
'../../../platform/test/alerting_api_integration/common/plugins'
99-
),
96+
path.resolve(__dirname, '../../alerting_api_integration/common/plugins'),
10097
]),
10198
`--xpack.actions.preconfigured=${JSON.stringify({
10299
'preconfigured-servicenow': {

0 commit comments

Comments
 (0)