From a7f37930cfa32c21753cdd4360c5375c1b8fb9ee Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Mon, 7 Jul 2025 17:46:33 +0300 Subject: [PATCH 1/6] [ska] relocate upgrade, usage_collection, search_sessions_integration and licensing tests (#226669) ## Summary Part of https://github.com/elastic/kibana-team/issues/1503 This PR is mostly about moving platform tests from x-pack/test ``` x-pack/test/ | - licensing_plugin/ | - search_sessions_integration/ | - upgrade/ | - usage_collection/ ``` After: ``` x-pack/platform/test/ | - licensing_plugin/ | - search_sessions_integration/ | - upgrade/ | - usage_collection/ ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 2961e8c16ce0c609a08d1aadda834430e11b249f) # Conflicts: # .buildkite/ftr_platform_stateful_configs.yml # .github/CODEOWNERS # x-pack/platform/test/functional/page_objects/index.ts # x-pack/platform/test/tsconfig.json # x-pack/test/tsconfig.json --- .buildkite/ftr_platform_stateful_configs.yml | 13 +++--- .github/CODEOWNERS | 41 +++++++++--------- package.json | 6 +-- .../collectors/application_usage/schema.ts | 2 +- tsconfig.base.json | 12 ++--- .../functional/page_objects/graph_page.ts | 0 .../test/functional/page_objects/index.ts | 4 ++ .../search_sessions_management_page.ts | 0 .../test/licensing_plugin/config.public.ts | 0 .../test/licensing_plugin/config.ts | 2 +- .../plugins/test_feature_usage/kibana.jsonc | 0 .../test_feature_usage/public/index.ts | 0 .../test_feature_usage/public/plugin.ts | 0 .../plugins/test_feature_usage/tsconfig.json | 2 +- .../licensing_plugin/public/feature_usage.ts | 0 .../test/licensing_plugin/public/index.ts | 0 .../test/licensing_plugin/public/updates.ts | 0 .../test/licensing_plugin/scenario.ts | 0 .../test/licensing_plugin/server/header.ts | 0 .../test/licensing_plugin/server/index.ts | 0 .../test/licensing_plugin/server/info.ts | 0 .../test/licensing_plugin/server/updates.ts | 0 .../test/licensing_plugin/services.ts | 0 .../search_sessions_integration/config.ts | 2 +- .../ftr_provider_context.d.ts | 0 .../dashboard/async_search/async_search.ts | 0 .../apps/dashboard/async_search/index.ts | 0 .../async_search/save_search_session.ts | 0 .../save_search_session_relative_time.ts | 0 .../async_search/search_sessions_tour.ts | 0 .../session_searches_integration.ts | 0 .../async_search/sessions_in_space.ts | 0 .../apps/dashboard/session_sharing/index.ts | 0 .../apps/dashboard/session_sharing/lens.ts | 0 .../tests/apps/discover/async_search.ts | 0 .../tests/apps/discover/index.ts | 0 .../tests/apps/discover/sessions_in_space.ts | 0 .../tests/apps/lens/index.ts | 0 .../tests/apps/lens/search_sessions.ts | 0 .../apps/management/search_sessions/index.ts | 0 .../search_sessions/sessions_management.ts | 0 .../sessions_management_permissions.ts | 0 x-pack/platform/test/tsconfig.json | 7 +++ .../upgrade/apps/canvas/canvas_smoke_tests.ts | 0 .../test/upgrade/apps/canvas/index.ts | 0 .../apps/dashboard/dashboard_smoke_tests.ts | 0 .../test/upgrade/apps/dashboard/index.ts | 0 .../apps/discover/discover_smoke_tests.ts | 0 .../test/upgrade/apps/discover/index.ts | 0 .../upgrade/apps/graph/graph_smoke_tests.ts | 0 .../test/upgrade/apps/graph/index.ts | 0 .../test/upgrade/apps/maps/index.ts | 0 .../upgrade/apps/maps/maps_smoke_tests.ts | 0 .../test/upgrade/apps/reporting/index.ts | 0 .../apps/reporting/reporting_smoke_tests.ts | 0 .../test/upgrade/apps/rules/index.ts | 0 .../upgrade/apps/rules/rules_smoke_tests.ts | 0 x-pack/{ => platform}/test/upgrade/config.ts | 2 +- .../test/upgrade/ftr_provider_context.d.ts | 0 .../baseline/upgrade_ecommerce_map.png | Bin .../baseline/upgrade_flights_map.png | Bin .../baseline/upgrade_web_logs_map.png | Bin .../test/upgrade/services/index.ts | 0 .../upgrade/services/maps_upgrade_services.ts | 0 .../services/rules_upgrade_services.ts | 0 .../test/usage_collection/config.ts | 2 +- .../ftr_provider_context.d.ts | 0 .../test/usage_collection/page_objects.ts | 0 .../application_usage_test/kibana.jsonc | 0 .../application_usage_test/public/index.ts | 0 .../application_usage_test/public/plugin.ts | 0 .../application_usage_test/public/types.ts | 0 .../application_usage_test/tsconfig.json | 2 +- .../stack_management_usage_test/kibana.jsonc | 0 .../public/index.ts | 0 .../public/plugin.ts | 0 .../public/types.ts | 0 .../stack_management_usage_test/tsconfig.json | 2 +- .../test/usage_collection/services.ts | 0 .../test_suites/application_usage/index.ts | 0 .../stack_management_usage/index.ts | 0 x-pack/test/functional/page_objects/index.ts | 4 +- .../global_search/global_search_providers.ts | 1 + x-pack/test/tsconfig.json | 6 +-- yarn.lock | 6 +-- 85 files changed, 63 insertions(+), 53 deletions(-) rename x-pack/{ => platform}/test/functional/page_objects/graph_page.ts (100%) rename x-pack/{ => platform}/test/functional/page_objects/search_sessions_management_page.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/config.public.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/config.ts (96%) rename x-pack/{ => platform}/test/licensing_plugin/plugins/test_feature_usage/kibana.jsonc (100%) rename x-pack/{ => platform}/test/licensing_plugin/plugins/test_feature_usage/public/index.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/plugins/test_feature_usage/public/plugin.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json (80%) rename x-pack/{ => platform}/test/licensing_plugin/public/feature_usage.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/public/index.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/public/updates.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/scenario.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/server/header.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/server/index.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/server/info.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/server/updates.ts (100%) rename x-pack/{ => platform}/test/licensing_plugin/services.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/config.ts (96%) rename x-pack/{ => platform}/test/search_sessions_integration/ftr_provider_context.d.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/async_search.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session_relative_time.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/search_sessions_tour.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/session_searches_integration.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/discover/async_search.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/discover/index.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/lens/index.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/lens/search_sessions.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts (100%) rename x-pack/{ => platform}/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management_permissions.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/canvas/canvas_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/canvas/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/dashboard/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/discover/discover_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/discover/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/graph/graph_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/graph/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/maps/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/maps/maps_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/reporting/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/reporting/reporting_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/rules/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/rules/rules_smoke_tests.ts (100%) rename x-pack/{ => platform}/test/upgrade/config.ts (97%) rename x-pack/{ => platform}/test/upgrade/ftr_provider_context.d.ts (100%) rename x-pack/{ => platform}/test/upgrade/screenshots/baseline/upgrade_ecommerce_map.png (100%) rename x-pack/{ => platform}/test/upgrade/screenshots/baseline/upgrade_flights_map.png (100%) rename x-pack/{ => platform}/test/upgrade/screenshots/baseline/upgrade_web_logs_map.png (100%) rename x-pack/{ => platform}/test/upgrade/services/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/services/maps_upgrade_services.ts (100%) rename x-pack/{ => platform}/test/upgrade/services/rules_upgrade_services.ts (100%) rename x-pack/{ => platform}/test/usage_collection/config.ts (96%) rename x-pack/{ => platform}/test/usage_collection/ftr_provider_context.d.ts (100%) rename x-pack/{ => platform}/test/usage_collection/page_objects.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/application_usage_test/kibana.jsonc (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/application_usage_test/public/index.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/application_usage_test/public/plugin.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/application_usage_test/public/types.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/application_usage_test/tsconfig.json (79%) rename x-pack/{ => platform}/test/usage_collection/plugins/stack_management_usage_test/kibana.jsonc (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/stack_management_usage_test/public/index.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/stack_management_usage_test/public/plugin.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/stack_management_usage_test/public/types.ts (100%) rename x-pack/{ => platform}/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json (79%) rename x-pack/{ => platform}/test/usage_collection/services.ts (100%) rename x-pack/{ => platform}/test/usage_collection/test_suites/application_usage/index.ts (100%) rename x-pack/{ => platform}/test/usage_collection/test_suites/stack_management_usage/index.ts (100%) diff --git a/.buildkite/ftr_platform_stateful_configs.yml b/.buildkite/ftr_platform_stateful_configs.yml index 2e23fba8861cd..5e657a7248e73 100644 --- a/.buildkite/ftr_platform_stateful_configs.yml +++ b/.buildkite/ftr_platform_stateful_configs.yml @@ -20,7 +20,7 @@ disabled: # QA suites that are run out-of-band - x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js - - x-pack/test/upgrade/config.ts + - x-pack/platform/test/upgrade/config.ts - src/platform/test/functional/config.edge.js - x-pack/platform/test/functional/config.edge.ts - x-pack/test/functional/config.edge.js @@ -51,12 +51,12 @@ disabled: # Gen AI suites, running with their own pipeline - x-pack/test/functional_gen_ai/inference/config.ts - defaultQueue: 'n2-4-spot' enabled: - src/platform/test/accessibility/config.ts - src/platform/test/analytics/config.ts - src/platform/test/api_integration/config.js + - src/platform/test/api_integration/apis/unused_urls_task/config.ts - src/platform/test/examples/config.js - src/platform/test/functional/apps/bundles/config.ts - src/platform/test/functional/apps/console/config.ts @@ -269,8 +269,8 @@ enabled: - x-pack/platform/test/functional_cloud/saml.config.ts - x-pack/test/functional_solution_sidenav/config.ts - x-pack/test/kubernetes_security/basic/config.ts - - x-pack/test/licensing_plugin/config.public.ts - - x-pack/test/licensing_plugin/config.ts + - x-pack/platform/test/licensing_plugin/config.public.ts + - x-pack/platform/test/licensing_plugin/config.ts - x-pack/test/plugin_functional/config.ts - x-pack/platform/test/reporting_api_integration/reporting_and_security.config.ts - x-pack/platform/test/reporting_api_integration/reporting_without_security.config.ts @@ -286,7 +286,7 @@ enabled: - x-pack/test/saved_object_tagging/api_integration/tagging_usage_collection/config.ts - x-pack/test/saved_object_tagging/functional/config.ts - x-pack/test/saved_objects_field_count/config.ts - - x-pack/test/search_sessions_integration/config.ts + - x-pack/platform/test/search_sessions_integration/config.ts - x-pack/test/security_api_integration/anonymous_es_anonymous.config.ts - x-pack/test/security_api_integration/anonymous.config.ts - x-pack/test/security_api_integration/api_keys.config.ts @@ -330,7 +330,7 @@ enabled: - x-pack/test/ui_capabilities/security_and_spaces/config.ts - x-pack/test/ui_capabilities/spaces_only/config.ts - x-pack/test/upgrade_assistant_integration/config.ts - - x-pack/test/usage_collection/config.ts + - x-pack/platform/test/usage_collection/config.ts - x-pack/performance/journeys_e2e/aiops_log_rate_analysis.ts - x-pack/performance/journeys_e2e/ecommerce_dashboard.ts - x-pack/performance/journeys_e2e/ecommerce_dashboard_http2.ts @@ -401,4 +401,3 @@ enabled: - x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts - x-pack/platform/test/saved_object_api_integration/low-level/config.ts - x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts - - src/platform/test/api_integration/apis/unused_urls_task/config.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 646fd253cdfff..0b9a07f955aa9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -58,7 +58,7 @@ src/platform/packages/shared/kbn-apm-types-shared @elastic/obs-ux-infra_services src/platform/packages/shared/kbn-apm-ui-shared @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team src/platform/test/plugin_functional/plugins/app_link_test @elastic/kibana-core -x-pack/test/usage_collection/plugins/application_usage_test @elastic/kibana-core +x-pack/platform/test/usage_collection/plugins/application_usage_test @elastic/kibana-core x-pack/test/security_api_integration/plugins/audit_log @elastic/kibana-security src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows src/platform/packages/shared/kbn-axe-config @elastic/appex-qa @@ -976,7 +976,7 @@ src/platform/packages/shared/kbn-sse-utils-client @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-server @elastic/obs-knowledge-team x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops -x-pack/test/usage_collection/plugins/stack_management_usage_test @elastic/kibana-management +x-pack/platform/test/usage_collection/plugins/stack_management_usage_test @elastic/kibana-management examples/state_containers_examples @elastic/appex-sharedux src/platform/test/server_integration/plugins/status_plugin_a @elastic/kibana-core src/platform/test/server_integration/plugins/status_plugin_b @elastic/kibana-core @@ -1007,7 +1007,7 @@ src/platform/test/plugin_functional/plugins/telemetry @elastic/kibana-core src/platform/packages/private/kbn-telemetry-tools @elastic/kibana-core src/platform/packages/shared/kbn-test @elastic/kibana-operations @elastic/appex-qa src/platform/packages/private/kbn-test-eui-helpers @elastic/kibana-visualizations -x-pack/test/licensing_plugin/plugins/test_feature_usage @elastic/kibana-security +x-pack/platform/test/licensing_plugin/plugins/test_feature_usage @elastic/kibana-security src/platform/packages/shared/kbn-test-jest-helpers @elastic/kibana-operations @elastic/appex-qa src/platform/packages/shared/kbn-test-subj-selector @elastic/kibana-operations @elastic/appex-qa x-pack/test_serverless @@ -1124,10 +1124,10 @@ x-pack/test_serverless/api_integration/test_suites/common/platform_security @ela ^/src/platform/test/functional/fixtures/es_archiver/makelogs @elastic/kibana-data-discovery /x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/discover/async_scripted_fields.ts#L35 /x-pack/test/functional/fixtures/kbn_archiver/discover @elastic/kibana-data-discovery -/x-pack/test/search_sessions_integration @elastic/kibana-data-discovery +/x-pack/platform/test/search_sessions_integration @elastic/kibana-data-discovery /x-pack/test/stack_functional_integration/apps/ccs/ccs_discover.js @elastic/kibana-data-discovery /x-pack/test/stack_functional_integration/apps/management/_index_pattern_create.js @elastic/kibana-data-discovery -/x-pack/test/upgrade/apps/discover @elastic/kibana-data-discovery +/x-pack/platform/test/upgrade/apps/discover @elastic/kibana-data-discovery /x-pack/test_serverless/api_integration/test_suites/common/data_views @elastic/kibana-data-discovery /x-pack/test_serverless/api_integration/test_suites/common/data_view_field_editor @elastic/kibana-data-discovery /x-pack/test_serverless/api_integration/test_suites/common/kql_telemetry @elastic/kibana-data-discovery @@ -1171,9 +1171,9 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ ^/src/platform/test/functional/fixtures/kbn_archiver/managed_content.json @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/managed_content/managed_content.ts#L38 ^/src/platform/test/api_integration/fixtures/kbn_archiver/event_annotations/event_annotations.json @elastic/kibana-visualizations ^/src/platform/test/functional/apps/getting_started/*.ts @elastic/kibana-visualizations # Assigned per https://github.com/elastic/kibana/pull/199767#discussion_r1840485031 -/x-pack/test/upgrade/apps/graph @elastic/kibana-visualizations +/x-pack/platform/test/upgrade/apps/graph @elastic/kibana-visualizations /x-pack/platform/test/functional/page_objects/log_wrapper.ts @elastic/kibana-visualizations # Assigned per https://github.com/elastic/kibana/pull/36437 -/x-pack/test/functional/page_objects/graph_page.ts @elastic/kibana-visualizations +/x-pack/platform/test/functional/page_objects/graph_page.ts @elastic/kibana-visualizations /x-pack/test/functional/apps/managed_content @elastic/kibana-visualizations ^/src/platform/test/functional/services/visualizations @elastic/kibana-visualizations ^/src/platform/test/functional/services/renderable.ts @elastic/kibana-visualizations @@ -1489,7 +1489,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions ^/src/platform/test/functional/page_objects/unified_search_page.ts @elastic/kibana-presentation ^/src/platform/test/functional/fixtures/kbn_archiver/dashboard_error_cases.json @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/201648#discussion_r1859020986 /x-pack/test/functional/es_archives/getting_started/shakespeare @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/201648#discussion_r1860319853 -/x-pack/test/upgrade/screenshots @elastic/kibana-presentation +/x-pack/platform/test/upgrade/screenshots @elastic/kibana-presentation /x-pack/test/functional/screenshots @elastic/kibana-presentation ^/src/platform/test/functional/fixtures/kbn_archiver/legacy.json @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/200934#discussion_r1856407606 /x-pack/test/functional/fixtures/kbn_archiver/maps.json @elastic/kibana-presentation @@ -1503,8 +1503,8 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/test/functional/services/canvas_element.ts @elastic/kibana-presentation /x-pack/platform/test/functional/page_objects/canvas_page.ts @elastic/kibana-presentation /x-pack/test/accessibility/apps/group3/canvas.ts @elastic/kibana-presentation -/x-pack/test/upgrade/apps/canvas @elastic/kibana-presentation -/x-pack/test/upgrade/apps/dashboard @elastic/kibana-presentation +/x-pack/platform/test/upgrade/apps/canvas @elastic/kibana-presentation +/x-pack/platform/test/upgrade/apps/dashboard @elastic/kibana-presentation ^/src/platform/test/functional/screenshots/baseline/tsvb_dashboard.png @elastic/kibana-presentation ^/src/platform/test/functional/screenshots/baseline/dashboard_*.png @elastic/kibana-presentation ^/src/platform/test/functional/screenshots/baseline/area_chart.png @elastic/kibana-presentation @@ -1528,11 +1528,11 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions ^/src/platform/test/plugin_functional/test_suites/panel_actions @elastic/kibana-presentation /x-pack/test/functional/es_archives/canvas/logstash_lens @elastic/kibana-presentation #CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-presentation -/x-pack/test/upgrade/services/maps_upgrade_services.ts @elastic/kibana-presentation +/x-pack/platform/test/upgrade/services/maps_upgrade_services.ts @elastic/kibana-presentation /x-pack/test/stack_functional_integration/apps/maps @elastic/kibana-presentation /x-pack/test/functional/page_objects/geo_file_upload.ts @elastic/kibana-presentation /x-pack/platform/test/functional/page_objects/gis_page.ts @elastic/kibana-presentation -/x-pack/test/upgrade/apps/maps @elastic/kibana-presentation +/x-pack/platform/test/upgrade/apps/maps @elastic/kibana-presentation /x-pack/platform/test/api_integration/apis/maps/ @elastic/kibana-presentation /x-pack/test/functional/apps/maps/ @elastic/kibana-presentation /x-pack/test/functional/es_archives/maps/ @elastic/kibana-presentation @@ -1656,9 +1656,9 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/test/plugin_functional/config.ts @elastic/appex-qa /x-pack/test/plugin_functional/ftr_provider_context.d.ts @elastic/appex-qa /x-pack/test/plugin_functional/page_objects.ts @elastic/appex-qa -/x-pack/test/upgrade/services/index.ts @elastic/appex-qa -/x-pack/test/upgrade/ftr_provider_context.d.ts @elastic/appex-qa -/x-pack/test/upgrade/config.ts @elastic/appex-qa +/x-pack/platform/test/upgrade/services/index.ts @elastic/appex-qa +/x-pack/platform/test/upgrade/ftr_provider_context.d.ts @elastic/appex-qa +/x-pack/platform/test/upgrade/config.ts @elastic/appex-qa /x-pack/test/functional_basic/ftr_provider_context.d.ts @elastic/appex-qa /x-pack/test/functional/services/remote_es/remote_es.ts @elastic/appex-qa /x-pack/test/functional/services/random.js @elastic/appex-qa @@ -1868,8 +1868,8 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /src/platform/test/api_integration/apis/saved_objects* @elastic/kibana-core /src/platform/test/api_integration/apis/core/*.ts @elastic/kibana-core /x-pack/test/functional/apps/saved_objects_management @elastic/kibana-core -/x-pack/test/usage_collection @elastic/kibana-core -/x-pack/test/licensing_plugin @elastic/kibana-core +/x-pack/platform/test/usage_collection @elastic/kibana-core +/x-pack/platform/test/licensing_plugin @elastic/kibana-core /x-pack/test/functional_execution_context @elastic/kibana-core /x-pack/platform/test/api_integration/apis/telemetry @elastic/kibana-core /x-pack/platform/test/api_integration/apis/status @elastic/kibana-core @@ -2025,8 +2025,8 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/test/functional/services/actions @elastic/response-ops /x-pack/solutions/security/test/api_integration_basic/apis/security_solution/index.ts @elastic/response-ops @elastic/kibana-cases /x-pack/solutions/security/test/api_integration_basic/apis/security_solution/cases_privileges.ts @elastic/response-ops @elastic/kibana-cases -/x-pack/test/upgrade/services/rules_upgrade_services.ts @elastic/response-ops -/x-pack/test/upgrade/apps/rules @elastic/response-ops +/x-pack/platform/test/upgrade/services/rules_upgrade_services.ts @elastic/response-ops +/x-pack/platform/test/upgrade/apps/rules @elastic/response-ops /x-pack/test/examples/triggers_actions_ui_examples @elastic/response-ops # Assigned per https://github.com/elastic/kibana/blob/main/x-pack/examples/triggers_actions_ui_example/kibana.jsonc#L4 /x-pack/test/functional/services/rules @elastic/response-ops /x-pack/platform/test/plugin_api_integration/plugins/sample_task_plugin @elastic/response-ops @@ -2084,6 +2084,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi ^/src/platform/test/functional/fixtures/es_archiver/search/downsampled @elastic/search-kibana /x-pack/test/functional_solution_sidenav/tests/search_sidenav.ts @elastic/search-kibana /x-pack/test/functional/services/search_sessions.ts @elastic/search-kibana +/x-pack/platform/test/functional/page_objects/search_sessions_management_page.ts @elastic/search-kibana /x-pack/test/functional/page_objects/search_* @elastic/search-kibana /x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/search-kibana /x-pack/test/functional/apps/search_playground @elastic/search-kibana @@ -2723,7 +2724,7 @@ x-pack/solutions/observability/plugins/observability_shared/public/components/pr /x-pack/platform/test/functional/services/user_menu.ts @elastic/appex-sharedux # Assigned per https://github.com/elastic/kibana/pull/179270 /x-pack/test/accessibility/apps/**/config.ts @elastic/appex-sharedux /x-pack/test/accessibility/apps/**/index.ts @elastic/appex-sharedux -/x-pack/test/upgrade/apps/reporting @elastic/appex-sharedux +/x-pack/platform/test/upgrade/apps/reporting @elastic/appex-sharedux /x-pack/test/functional/apps/advanced_settings @elastic/appex-sharedux ^/src/platform/test/functional/services/monaco_editor.ts @elastic/appex-sharedux /x-pack/test/functional/fixtures/kbn_archiver/global_search @elastic/appex-sharedux diff --git a/package.json b/package.json index 1b14cb63d74ad..3cb7afaeb6b29 100644 --- a/package.json +++ b/package.json @@ -206,7 +206,7 @@ "@kbn/apm-ui-shared": "link:src/platform/packages/shared/kbn-apm-ui-shared", "@kbn/apm-utils": "link:src/platform/packages/shared/kbn-apm-utils", "@kbn/app-link-test-plugin": "link:src/platform/test/plugin_functional/plugins/app_link_test", - "@kbn/application-usage-test-plugin": "link:x-pack/test/usage_collection/plugins/application_usage_test", + "@kbn/application-usage-test-plugin": "link:x-pack/platform/test/usage_collection/plugins/application_usage_test", "@kbn/audit-log-plugin": "link:x-pack/test/security_api_integration/plugins/audit_log", "@kbn/avc-banner": "link:src/platform/packages/shared/kbn-avc-banner", "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", @@ -960,7 +960,7 @@ "@kbn/sse-utils-server": "link:src/platform/packages/shared/kbn-sse-utils-server", "@kbn/stack-alerts-plugin": "link:x-pack/platform/plugins/shared/stack_alerts", "@kbn/stack-connectors-plugin": "link:x-pack/platform/plugins/shared/stack_connectors", - "@kbn/stack-management-usage-test-plugin": "link:x-pack/test/usage_collection/plugins/stack_management_usage_test", + "@kbn/stack-management-usage-test-plugin": "link:x-pack/platform/test/usage_collection/plugins/stack_management_usage_test", "@kbn/state-containers-examples-plugin": "link:examples/state_containers_examples", "@kbn/status-plugin-a-plugin": "link:src/platform/test/server_integration/plugins/status_plugin_a", "@kbn/status-plugin-b-plugin": "link:src/platform/test/server_integration/plugins/status_plugin_b", @@ -983,7 +983,7 @@ "@kbn/telemetry-management-section-plugin": "link:src/platform/plugins/shared/telemetry_management_section", "@kbn/telemetry-plugin": "link:src/platform/plugins/shared/telemetry", "@kbn/telemetry-test-plugin": "link:src/platform/test/plugin_functional/plugins/telemetry", - "@kbn/test-feature-usage-plugin": "link:x-pack/test/licensing_plugin/plugins/test_feature_usage", + "@kbn/test-feature-usage-plugin": "link:x-pack/platform/test/licensing_plugin/plugins/test_feature_usage", "@kbn/testing-embedded-lens-plugin": "link:x-pack/examples/testing_embedded_lens", "@kbn/third-party-lens-navigation-prompt-plugin": "link:x-pack/examples/third_party_lens_navigation_prompt", "@kbn/third-party-vis-lens-example-plugin": "link:x-pack/examples/third_party_vis_lens_example", diff --git a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts index 3829a4a919de5..383f85a07bbd7 100644 --- a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts +++ b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts @@ -115,7 +115,7 @@ const commonSchema: MakeSchemaFrom = { }, }; -// There is a test in x-pack/test/usage_collection that validates that the keys in here match all the registered apps +// There is a test in x-pack/platform/test/usage_collection that validates that the keys in here match all the registered apps export const applicationUsageSchema = { // OSS dashboards: commonSchema, diff --git a/tsconfig.base.json b/tsconfig.base.json index b9ea9a99d6082..803a911597ebf 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -110,8 +110,8 @@ "@kbn/apm-utils/*": ["src/platform/packages/shared/kbn-apm-utils/*"], "@kbn/app-link-test-plugin": ["src/platform/test/plugin_functional/plugins/app_link_test"], "@kbn/app-link-test-plugin/*": ["src/platform/test/plugin_functional/plugins/app_link_test/*"], - "@kbn/application-usage-test-plugin": ["x-pack/test/usage_collection/plugins/application_usage_test"], - "@kbn/application-usage-test-plugin/*": ["x-pack/test/usage_collection/plugins/application_usage_test/*"], + "@kbn/application-usage-test-plugin": ["x-pack/platform/test/usage_collection/plugins/application_usage_test"], + "@kbn/application-usage-test-plugin/*": ["x-pack/platform/test/usage_collection/plugins/application_usage_test/*"], "@kbn/audit-log-plugin": ["x-pack/test/security_api_integration/plugins/audit_log"], "@kbn/audit-log-plugin/*": ["x-pack/test/security_api_integration/plugins/audit_log/*"], "@kbn/avc-banner": ["src/platform/packages/shared/kbn-avc-banner"], @@ -1946,8 +1946,8 @@ "@kbn/stack-alerts-plugin/*": ["x-pack/platform/plugins/shared/stack_alerts/*"], "@kbn/stack-connectors-plugin": ["x-pack/platform/plugins/shared/stack_connectors"], "@kbn/stack-connectors-plugin/*": ["x-pack/platform/plugins/shared/stack_connectors/*"], - "@kbn/stack-management-usage-test-plugin": ["x-pack/test/usage_collection/plugins/stack_management_usage_test"], - "@kbn/stack-management-usage-test-plugin/*": ["x-pack/test/usage_collection/plugins/stack_management_usage_test/*"], + "@kbn/stack-management-usage-test-plugin": ["x-pack/platform/test/usage_collection/plugins/stack_management_usage_test"], + "@kbn/stack-management-usage-test-plugin/*": ["x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/*"], "@kbn/state-containers-examples-plugin": ["examples/state_containers_examples"], "@kbn/state-containers-examples-plugin/*": ["examples/state_containers_examples/*"], "@kbn/status-plugin-a-plugin": ["src/platform/test/server_integration/plugins/status_plugin_a"], @@ -2008,8 +2008,8 @@ "@kbn/test/*": ["src/platform/packages/shared/kbn-test/*"], "@kbn/test-eui-helpers": ["src/platform/packages/private/kbn-test-eui-helpers"], "@kbn/test-eui-helpers/*": ["src/platform/packages/private/kbn-test-eui-helpers/*"], - "@kbn/test-feature-usage-plugin": ["x-pack/test/licensing_plugin/plugins/test_feature_usage"], - "@kbn/test-feature-usage-plugin/*": ["x-pack/test/licensing_plugin/plugins/test_feature_usage/*"], + "@kbn/test-feature-usage-plugin": ["x-pack/platform/test/licensing_plugin/plugins/test_feature_usage"], + "@kbn/test-feature-usage-plugin/*": ["x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/*"], "@kbn/test-jest-helpers": ["src/platform/packages/shared/kbn-test-jest-helpers"], "@kbn/test-jest-helpers/*": ["src/platform/packages/shared/kbn-test-jest-helpers/*"], "@kbn/test-subj-selector": ["src/platform/packages/shared/kbn-test-subj-selector"], diff --git a/x-pack/test/functional/page_objects/graph_page.ts b/x-pack/platform/test/functional/page_objects/graph_page.ts similarity index 100% rename from x-pack/test/functional/page_objects/graph_page.ts rename to x-pack/platform/test/functional/page_objects/graph_page.ts diff --git a/x-pack/platform/test/functional/page_objects/index.ts b/x-pack/platform/test/functional/page_objects/index.ts index aab0ea6c38a68..bbea3d5cf5253 100644 --- a/x-pack/platform/test/functional/page_objects/index.ts +++ b/x-pack/platform/test/functional/page_objects/index.ts @@ -20,6 +20,8 @@ import { WatcherPageObject } from './watcher_page'; import { SearchProfilerPageProvider } from './search_profiler_page'; import { UpgradeAssistantFlyoutObject } from './upgrade_assistant_page'; import { UserProfilePageProvider } from './user_profile_page'; +import { SearchSessionsPageProvider } from './search_sessions_management_page'; +import { GraphPageObject } from './graph_page'; // just like services, PageObjects are defined as a map of // names to Providers. Merge in Kibana's or pick specific ones @@ -32,11 +34,13 @@ export const pageObjects = { monitoring: MonitoringPageObject, accountSetting: AccountSettingsPageObject, canvas: CanvasPageProvider, + graph: GraphPageObject, lens: LensPageProvider, maps: GisPageObject, reporting: ReportingPageObject, watcher: WatcherPageObject, searchProfiler: SearchProfilerPageProvider, + searchSessionsManagement: SearchSessionsPageProvider, upgradeAssistant: UpgradeAssistantFlyoutObject, userProfiles: UserProfilePageProvider, }; diff --git a/x-pack/test/functional/page_objects/search_sessions_management_page.ts b/x-pack/platform/test/functional/page_objects/search_sessions_management_page.ts similarity index 100% rename from x-pack/test/functional/page_objects/search_sessions_management_page.ts rename to x-pack/platform/test/functional/page_objects/search_sessions_management_page.ts diff --git a/x-pack/test/licensing_plugin/config.public.ts b/x-pack/platform/test/licensing_plugin/config.public.ts similarity index 100% rename from x-pack/test/licensing_plugin/config.public.ts rename to x-pack/platform/test/licensing_plugin/config.public.ts diff --git a/x-pack/test/licensing_plugin/config.ts b/x-pack/platform/test/licensing_plugin/config.ts similarity index 96% rename from x-pack/test/licensing_plugin/config.ts rename to x-pack/platform/test/licensing_plugin/config.ts index 754d1a044c72d..4c199222a40ea 100644 --- a/x-pack/test/licensing_plugin/config.ts +++ b/x-pack/platform/test/licensing_plugin/config.ts @@ -13,7 +13,7 @@ const license = 'basic'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const functionalTestsConfig = await readConfigFile( - require.resolve('../functional/config.base.js') + require.resolve('../functional/config.base.ts') ); const servers = { diff --git a/x-pack/test/licensing_plugin/plugins/test_feature_usage/kibana.jsonc b/x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/kibana.jsonc similarity index 100% rename from x-pack/test/licensing_plugin/plugins/test_feature_usage/kibana.jsonc rename to x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/kibana.jsonc diff --git a/x-pack/test/licensing_plugin/plugins/test_feature_usage/public/index.ts b/x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/public/index.ts similarity index 100% rename from x-pack/test/licensing_plugin/plugins/test_feature_usage/public/index.ts rename to x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/public/index.ts diff --git a/x-pack/test/licensing_plugin/plugins/test_feature_usage/public/plugin.ts b/x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/public/plugin.ts similarity index 100% rename from x-pack/test/licensing_plugin/plugins/test_feature_usage/public/plugin.ts rename to x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/public/plugin.ts diff --git a/x-pack/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json b/x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json similarity index 80% rename from x-pack/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json rename to x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json index 1685a89d40697..50681507982d6 100644 --- a/x-pack/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json +++ b/x-pack/platform/test/licensing_plugin/plugins/test_feature_usage/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/test/licensing_plugin/public/feature_usage.ts b/x-pack/platform/test/licensing_plugin/public/feature_usage.ts similarity index 100% rename from x-pack/test/licensing_plugin/public/feature_usage.ts rename to x-pack/platform/test/licensing_plugin/public/feature_usage.ts diff --git a/x-pack/test/licensing_plugin/public/index.ts b/x-pack/platform/test/licensing_plugin/public/index.ts similarity index 100% rename from x-pack/test/licensing_plugin/public/index.ts rename to x-pack/platform/test/licensing_plugin/public/index.ts diff --git a/x-pack/test/licensing_plugin/public/updates.ts b/x-pack/platform/test/licensing_plugin/public/updates.ts similarity index 100% rename from x-pack/test/licensing_plugin/public/updates.ts rename to x-pack/platform/test/licensing_plugin/public/updates.ts diff --git a/x-pack/test/licensing_plugin/scenario.ts b/x-pack/platform/test/licensing_plugin/scenario.ts similarity index 100% rename from x-pack/test/licensing_plugin/scenario.ts rename to x-pack/platform/test/licensing_plugin/scenario.ts diff --git a/x-pack/test/licensing_plugin/server/header.ts b/x-pack/platform/test/licensing_plugin/server/header.ts similarity index 100% rename from x-pack/test/licensing_plugin/server/header.ts rename to x-pack/platform/test/licensing_plugin/server/header.ts diff --git a/x-pack/test/licensing_plugin/server/index.ts b/x-pack/platform/test/licensing_plugin/server/index.ts similarity index 100% rename from x-pack/test/licensing_plugin/server/index.ts rename to x-pack/platform/test/licensing_plugin/server/index.ts diff --git a/x-pack/test/licensing_plugin/server/info.ts b/x-pack/platform/test/licensing_plugin/server/info.ts similarity index 100% rename from x-pack/test/licensing_plugin/server/info.ts rename to x-pack/platform/test/licensing_plugin/server/info.ts diff --git a/x-pack/test/licensing_plugin/server/updates.ts b/x-pack/platform/test/licensing_plugin/server/updates.ts similarity index 100% rename from x-pack/test/licensing_plugin/server/updates.ts rename to x-pack/platform/test/licensing_plugin/server/updates.ts diff --git a/x-pack/test/licensing_plugin/services.ts b/x-pack/platform/test/licensing_plugin/services.ts similarity index 100% rename from x-pack/test/licensing_plugin/services.ts rename to x-pack/platform/test/licensing_plugin/services.ts diff --git a/x-pack/test/search_sessions_integration/config.ts b/x-pack/platform/test/search_sessions_integration/config.ts similarity index 96% rename from x-pack/test/search_sessions_integration/config.ts rename to x-pack/platform/test/search_sessions_integration/config.ts index c3c0c3a42ddc9..94e82e20b3ea8 100644 --- a/x-pack/test/search_sessions_integration/config.ts +++ b/x-pack/platform/test/search_sessions_integration/config.ts @@ -11,7 +11,7 @@ import { services } from '../functional/services'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - require.resolve('../functional/config.base.js') + require.resolve('../functional/config.base.ts') ); return { diff --git a/x-pack/test/search_sessions_integration/ftr_provider_context.d.ts b/x-pack/platform/test/search_sessions_integration/ftr_provider_context.d.ts similarity index 100% rename from x-pack/test/search_sessions_integration/ftr_provider_context.d.ts rename to x-pack/platform/test/search_sessions_integration/ftr_provider_context.d.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/async_search.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/async_search.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/async_search.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/async_search.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session_relative_time.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session_relative_time.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session_relative_time.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session_relative_time.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/search_sessions_tour.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/search_sessions_tour.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/search_sessions_tour.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/search_sessions_tour.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/session_searches_integration.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/session_searches_integration.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/session_searches_integration.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/session_searches_integration.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/discover/async_search.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/discover/async_search.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/discover/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/discover/index.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/lens/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/lens/index.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/lens/search_sessions.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/lens/search_sessions.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts diff --git a/x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management_permissions.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management_permissions.ts similarity index 100% rename from x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management_permissions.ts rename to x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management_permissions.ts diff --git a/x-pack/platform/test/tsconfig.json b/x-pack/platform/test/tsconfig.json index 2b8c37da952aa..8667e044ea8cd 100644 --- a/x-pack/platform/test/tsconfig.json +++ b/x-pack/platform/test/tsconfig.json @@ -118,5 +118,12 @@ "@kbn/reporting-export-types-png-common", "@kbn/reporting-server", "@kbn/es-archiver", + "@kbn/lens-plugin", + "@kbn/mock-idp-utils", + "@kbn/es", + "@kbn/licensing-plugin", + "@kbn/core-provider-plugin", + "@kbn/reporting-plugin", + "@kbn/kibana-usage-collection-plugin", ] } diff --git a/x-pack/test/upgrade/apps/canvas/canvas_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/canvas/canvas_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/canvas/canvas_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/canvas/canvas_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/canvas/index.ts b/x-pack/platform/test/upgrade/apps/canvas/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/canvas/index.ts rename to x-pack/platform/test/upgrade/apps/canvas/index.ts diff --git a/x-pack/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/dashboard/index.ts b/x-pack/platform/test/upgrade/apps/dashboard/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/dashboard/index.ts rename to x-pack/platform/test/upgrade/apps/dashboard/index.ts diff --git a/x-pack/test/upgrade/apps/discover/discover_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/discover/discover_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/discover/discover_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/discover/discover_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/discover/index.ts b/x-pack/platform/test/upgrade/apps/discover/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/discover/index.ts rename to x-pack/platform/test/upgrade/apps/discover/index.ts diff --git a/x-pack/test/upgrade/apps/graph/graph_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/graph/graph_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/graph/graph_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/graph/graph_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/graph/index.ts b/x-pack/platform/test/upgrade/apps/graph/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/graph/index.ts rename to x-pack/platform/test/upgrade/apps/graph/index.ts diff --git a/x-pack/test/upgrade/apps/maps/index.ts b/x-pack/platform/test/upgrade/apps/maps/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/maps/index.ts rename to x-pack/platform/test/upgrade/apps/maps/index.ts diff --git a/x-pack/test/upgrade/apps/maps/maps_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/maps/maps_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/maps/maps_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/maps/maps_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/reporting/index.ts b/x-pack/platform/test/upgrade/apps/reporting/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/reporting/index.ts rename to x-pack/platform/test/upgrade/apps/reporting/index.ts diff --git a/x-pack/test/upgrade/apps/reporting/reporting_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/reporting/reporting_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/reporting/reporting_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/reporting/reporting_smoke_tests.ts diff --git a/x-pack/test/upgrade/apps/rules/index.ts b/x-pack/platform/test/upgrade/apps/rules/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/rules/index.ts rename to x-pack/platform/test/upgrade/apps/rules/index.ts diff --git a/x-pack/test/upgrade/apps/rules/rules_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/rules/rules_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/rules/rules_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/rules/rules_smoke_tests.ts diff --git a/x-pack/test/upgrade/config.ts b/x-pack/platform/test/upgrade/config.ts similarity index 97% rename from x-pack/test/upgrade/config.ts rename to x-pack/platform/test/upgrade/config.ts index d6458f087e393..72e0a55618562 100644 --- a/x-pack/test/upgrade/config.ts +++ b/x-pack/platform/test/upgrade/config.ts @@ -14,7 +14,7 @@ import { RulesHelper } from './services/rules_upgrade_services'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const apiConfig = await readConfigFile(require.resolve('../api_integration/config')); - const functionalConfig = await readConfigFile(require.resolve('../functional/config.base.js')); + const functionalConfig = await readConfigFile(require.resolve('../functional/config.base.ts')); return { ...functionalConfig.getAll(), diff --git a/x-pack/test/upgrade/ftr_provider_context.d.ts b/x-pack/platform/test/upgrade/ftr_provider_context.d.ts similarity index 100% rename from x-pack/test/upgrade/ftr_provider_context.d.ts rename to x-pack/platform/test/upgrade/ftr_provider_context.d.ts diff --git a/x-pack/test/upgrade/screenshots/baseline/upgrade_ecommerce_map.png b/x-pack/platform/test/upgrade/screenshots/baseline/upgrade_ecommerce_map.png similarity index 100% rename from x-pack/test/upgrade/screenshots/baseline/upgrade_ecommerce_map.png rename to x-pack/platform/test/upgrade/screenshots/baseline/upgrade_ecommerce_map.png diff --git a/x-pack/test/upgrade/screenshots/baseline/upgrade_flights_map.png b/x-pack/platform/test/upgrade/screenshots/baseline/upgrade_flights_map.png similarity index 100% rename from x-pack/test/upgrade/screenshots/baseline/upgrade_flights_map.png rename to x-pack/platform/test/upgrade/screenshots/baseline/upgrade_flights_map.png diff --git a/x-pack/test/upgrade/screenshots/baseline/upgrade_web_logs_map.png b/x-pack/platform/test/upgrade/screenshots/baseline/upgrade_web_logs_map.png similarity index 100% rename from x-pack/test/upgrade/screenshots/baseline/upgrade_web_logs_map.png rename to x-pack/platform/test/upgrade/screenshots/baseline/upgrade_web_logs_map.png diff --git a/x-pack/test/upgrade/services/index.ts b/x-pack/platform/test/upgrade/services/index.ts similarity index 100% rename from x-pack/test/upgrade/services/index.ts rename to x-pack/platform/test/upgrade/services/index.ts diff --git a/x-pack/test/upgrade/services/maps_upgrade_services.ts b/x-pack/platform/test/upgrade/services/maps_upgrade_services.ts similarity index 100% rename from x-pack/test/upgrade/services/maps_upgrade_services.ts rename to x-pack/platform/test/upgrade/services/maps_upgrade_services.ts diff --git a/x-pack/test/upgrade/services/rules_upgrade_services.ts b/x-pack/platform/test/upgrade/services/rules_upgrade_services.ts similarity index 100% rename from x-pack/test/upgrade/services/rules_upgrade_services.ts rename to x-pack/platform/test/upgrade/services/rules_upgrade_services.ts diff --git a/x-pack/test/usage_collection/config.ts b/x-pack/platform/test/usage_collection/config.ts similarity index 96% rename from x-pack/test/usage_collection/config.ts rename to x-pack/platform/test/usage_collection/config.ts index ef40fb27b16c2..f45d84a06d86d 100644 --- a/x-pack/test/usage_collection/config.ts +++ b/x-pack/platform/test/usage_collection/config.ts @@ -15,7 +15,7 @@ import { pageObjects } from './page_objects'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - require.resolve('../functional/config.base.js') + require.resolve('../functional/config.base.ts') ); return { diff --git a/x-pack/test/usage_collection/ftr_provider_context.d.ts b/x-pack/platform/test/usage_collection/ftr_provider_context.d.ts similarity index 100% rename from x-pack/test/usage_collection/ftr_provider_context.d.ts rename to x-pack/platform/test/usage_collection/ftr_provider_context.d.ts diff --git a/x-pack/test/usage_collection/page_objects.ts b/x-pack/platform/test/usage_collection/page_objects.ts similarity index 100% rename from x-pack/test/usage_collection/page_objects.ts rename to x-pack/platform/test/usage_collection/page_objects.ts diff --git a/x-pack/test/usage_collection/plugins/application_usage_test/kibana.jsonc b/x-pack/platform/test/usage_collection/plugins/application_usage_test/kibana.jsonc similarity index 100% rename from x-pack/test/usage_collection/plugins/application_usage_test/kibana.jsonc rename to x-pack/platform/test/usage_collection/plugins/application_usage_test/kibana.jsonc diff --git a/x-pack/test/usage_collection/plugins/application_usage_test/public/index.ts b/x-pack/platform/test/usage_collection/plugins/application_usage_test/public/index.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/application_usage_test/public/index.ts rename to x-pack/platform/test/usage_collection/plugins/application_usage_test/public/index.ts diff --git a/x-pack/test/usage_collection/plugins/application_usage_test/public/plugin.ts b/x-pack/platform/test/usage_collection/plugins/application_usage_test/public/plugin.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/application_usage_test/public/plugin.ts rename to x-pack/platform/test/usage_collection/plugins/application_usage_test/public/plugin.ts diff --git a/x-pack/test/usage_collection/plugins/application_usage_test/public/types.ts b/x-pack/platform/test/usage_collection/plugins/application_usage_test/public/types.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/application_usage_test/public/types.ts rename to x-pack/platform/test/usage_collection/plugins/application_usage_test/public/types.ts diff --git a/x-pack/test/usage_collection/plugins/application_usage_test/tsconfig.json b/x-pack/platform/test/usage_collection/plugins/application_usage_test/tsconfig.json similarity index 79% rename from x-pack/test/usage_collection/plugins/application_usage_test/tsconfig.json rename to x-pack/platform/test/usage_collection/plugins/application_usage_test/tsconfig.json index cb4b5e34dcf89..9971a1c34bc37 100644 --- a/x-pack/test/usage_collection/plugins/application_usage_test/tsconfig.json +++ b/x-pack/platform/test/usage_collection/plugins/application_usage_test/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/test/usage_collection/plugins/stack_management_usage_test/kibana.jsonc b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/kibana.jsonc similarity index 100% rename from x-pack/test/usage_collection/plugins/stack_management_usage_test/kibana.jsonc rename to x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/kibana.jsonc diff --git a/x-pack/test/usage_collection/plugins/stack_management_usage_test/public/index.ts b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/index.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/stack_management_usage_test/public/index.ts rename to x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/index.ts diff --git a/x-pack/test/usage_collection/plugins/stack_management_usage_test/public/plugin.ts b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/plugin.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/stack_management_usage_test/public/plugin.ts rename to x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/plugin.ts diff --git a/x-pack/test/usage_collection/plugins/stack_management_usage_test/public/types.ts b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/types.ts similarity index 100% rename from x-pack/test/usage_collection/plugins/stack_management_usage_test/public/types.ts rename to x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/public/types.ts diff --git a/x-pack/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json similarity index 79% rename from x-pack/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json rename to x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json index c5a738ee176c1..631a629af0e5e 100644 --- a/x-pack/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json +++ b/x-pack/platform/test/usage_collection/plugins/stack_management_usage_test/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/test/usage_collection/services.ts b/x-pack/platform/test/usage_collection/services.ts similarity index 100% rename from x-pack/test/usage_collection/services.ts rename to x-pack/platform/test/usage_collection/services.ts diff --git a/x-pack/test/usage_collection/test_suites/application_usage/index.ts b/x-pack/platform/test/usage_collection/test_suites/application_usage/index.ts similarity index 100% rename from x-pack/test/usage_collection/test_suites/application_usage/index.ts rename to x-pack/platform/test/usage_collection/test_suites/application_usage/index.ts diff --git a/x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts b/x-pack/platform/test/usage_collection/test_suites/stack_management_usage/index.ts similarity index 100% rename from x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts rename to x-pack/platform/test/usage_collection/test_suites/stack_management_usage/index.ts diff --git a/x-pack/test/functional/page_objects/index.ts b/x-pack/test/functional/page_objects/index.ts index c293adcccde59..9f6c7deed6050 100644 --- a/x-pack/test/functional/page_objects/index.ts +++ b/x-pack/test/functional/page_objects/index.ts @@ -20,6 +20,8 @@ import { GisPageObject } from '@kbn/test-suites-xpack-platform/functional/page_o import { LensPageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/lens_page'; import { UpgradeAssistantFlyoutObject } from '@kbn/test-suites-xpack-platform/functional/page_objects/upgrade_assistant_page'; import { UserProfilePageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/user_profile_page'; +import { SearchSessionsPageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/search_sessions_management_page'; +import { GraphPageObject } from '@kbn/test-suites-xpack-platform/functional/page_objects/graph_page'; import { ApiKeysPageProvider } from './api_keys_page'; import { AssetDetailsProvider } from './asset_details'; import { BannersPageObject } from './banners_page'; @@ -27,7 +29,6 @@ import { CrossClusterReplicationPageProvider } from './cross_cluster_replication import { DetectionsPageObject } from '../../security_solution_ftr/page_objects/detections'; import { EmbeddedConsoleProvider } from './embedded_console'; import { GeoFileUploadPageObject } from './geo_file_upload'; -import { GraphPageObject } from './graph_page'; import { GrokDebuggerPageObject } from './grok_debugger_page'; import { IndexLifecycleManagementPageProvider } from './index_lifecycle_management_page'; import { IndexManagementPageProvider } from './index_management_page'; @@ -47,7 +48,6 @@ import { ObservabilityPageProvider } from './observability_page'; import { AlertControlsProvider } from './alert_controls'; import { RemoteClustersPageProvider } from './remote_clusters_page'; import { RollupPageObject } from './rollup_page'; -import { SearchSessionsPageProvider } from './search_sessions_management_page'; import { ShareSavedObjectsToSpacePageProvider } from './share_saved_objects_to_space_page'; import { SnapshotRestorePageProvider } from './snapshot_restore_page'; import { StatusPageObject } from './status_page'; diff --git a/x-pack/test/plugin_functional/test_suites/global_search/global_search_providers.ts b/x-pack/test/plugin_functional/test_suites/global_search/global_search_providers.ts index 2f197d0a8162c..543a72a29ed88 100644 --- a/x-pack/test/plugin_functional/test_suites/global_search/global_search_providers.ts +++ b/x-pack/test/plugin_functional/test_suites/global_search/global_search_providers.ts @@ -6,6 +6,7 @@ */ import expect from '@kbn/expect'; +import '@kbn/core-provider-plugin/types'; import { GlobalSearchResult } from '@kbn/global-search-plugin/common/types'; import { GlobalSearchTestApi } from '@kbn/global-search-test-plugin/public/types'; import { FtrProviderContext } from '../../ftr_provider_context'; diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index 5f36745b26546..1ca8d33c359a3 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -30,7 +30,6 @@ "@kbn/test-suites-src", "@kbn/core", "@kbn/data-plugin", - "@kbn/kibana-usage-collection-plugin", "@kbn/share-plugin", "@kbn/telemetry-collection-manager-plugin", "@kbn/alerting-plugin", @@ -42,7 +41,6 @@ "@kbn/features-plugin", "@kbn/global-search-plugin", "@kbn/infra-plugin", - "@kbn/licensing-plugin", "@kbn/ml-plugin", "@kbn/observability-plugin", "@kbn/security-plugin", @@ -68,7 +66,6 @@ "@kbn/maps-plugin", "@kbn/test-subj-selector", "@kbn/rison", - "@kbn/reporting-plugin", "@kbn/aiops-plugin", "@kbn/logging", "@kbn/utility-types", @@ -86,7 +83,6 @@ "@kbn/rule-registry-plugin", "@kbn/controls-plugin", "@kbn/core-saved-objects-server", - "@kbn/core-provider-plugin", "@kbn/user-profile-components", "@kbn/apm-synthtrace-client", "@kbn/stdio-dev-helpers", @@ -161,5 +157,7 @@ "@kbn/apm-sources-access-plugin", "@kbn/event-log-plugin", "@kbn/dev-proc-runner", + "@kbn/intercepts-plugin", + "@kbn/core-provider-plugin", ] } diff --git a/yarn.lock b/yarn.lock index 89700c95e91da..a1dfc0aea99c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3911,7 +3911,7 @@ version "0.0.0" uid "" -"@kbn/application-usage-test-plugin@link:x-pack/test/usage_collection/plugins/application_usage_test": +"@kbn/application-usage-test-plugin@link:x-pack/platform/test/usage_collection/plugins/application_usage_test": version "0.0.0" uid "" @@ -7583,7 +7583,7 @@ version "0.0.0" uid "" -"@kbn/stack-management-usage-test-plugin@link:x-pack/test/usage_collection/plugins/stack_management_usage_test": +"@kbn/stack-management-usage-test-plugin@link:x-pack/platform/test/usage_collection/plugins/stack_management_usage_test": version "0.0.0" uid "" @@ -7703,7 +7703,7 @@ version "0.0.0" uid "" -"@kbn/test-feature-usage-plugin@link:x-pack/test/licensing_plugin/plugins/test_feature_usage": +"@kbn/test-feature-usage-plugin@link:x-pack/platform/test/licensing_plugin/plugins/test_feature_usage": version "0.0.0" uid "" From c9b7ef7f04e73da9d3c24270c1c601cb070fe646 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 9 Jul 2025 21:52:39 +0000 Subject: [PATCH 2/6] [CI] Auto-commit changed files from 'node scripts/styled_components_mapping' --- x-pack/platform/test/tsconfig.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/platform/test/tsconfig.json b/x-pack/platform/test/tsconfig.json index 8667e044ea8cd..98cf2c2b49c12 100644 --- a/x-pack/platform/test/tsconfig.json +++ b/x-pack/platform/test/tsconfig.json @@ -119,8 +119,6 @@ "@kbn/reporting-server", "@kbn/es-archiver", "@kbn/lens-plugin", - "@kbn/mock-idp-utils", - "@kbn/es", "@kbn/licensing-plugin", "@kbn/core-provider-plugin", "@kbn/reporting-plugin", From 70509327ed523655a8512288a0bba4a92600d5c6 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 9 Jul 2025 22:09:46 +0000 Subject: [PATCH 3/6] [CI] Auto-commit changed files from 'node scripts/lint_ts_projects --fix' --- x-pack/test/tsconfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index 1ca8d33c359a3..6452c418a152f 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -157,7 +157,6 @@ "@kbn/apm-sources-access-plugin", "@kbn/event-log-plugin", "@kbn/dev-proc-runner", - "@kbn/intercepts-plugin", "@kbn/core-provider-plugin", ] } From 11782476fee38d1c6995040a38cca2d27be3cdee Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Thu, 10 Jul 2025 17:01:18 +0200 Subject: [PATCH 4/6] relocate /logs dir --- x-pack/{ => platform}/test/upgrade/apps/logs/index.ts | 0 x-pack/{ => platform}/test/upgrade/apps/logs/logs_smoke_tests.ts | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename x-pack/{ => platform}/test/upgrade/apps/logs/index.ts (100%) rename x-pack/{ => platform}/test/upgrade/apps/logs/logs_smoke_tests.ts (100%) diff --git a/x-pack/test/upgrade/apps/logs/index.ts b/x-pack/platform/test/upgrade/apps/logs/index.ts similarity index 100% rename from x-pack/test/upgrade/apps/logs/index.ts rename to x-pack/platform/test/upgrade/apps/logs/index.ts diff --git a/x-pack/test/upgrade/apps/logs/logs_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts similarity index 100% rename from x-pack/test/upgrade/apps/logs/logs_smoke_tests.ts rename to x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts From 1bc5cd6234848fb87f881c7016388ba95807fd9a Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Thu, 10 Jul 2025 17:05:24 +0200 Subject: [PATCH 5/6] relocate missing service --- x-pack/platform/test/functional/services/index.ts | 2 ++ .../{ => platform}/test/functional/services/search_sessions.ts | 0 x-pack/test/functional/services/index.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) rename x-pack/{ => platform}/test/functional/services/search_sessions.ts (100%) diff --git a/x-pack/platform/test/functional/services/index.ts b/x-pack/platform/test/functional/services/index.ts index 1b418147b5865..78e5874ae0078 100644 --- a/x-pack/platform/test/functional/services/index.ts +++ b/x-pack/platform/test/functional/services/index.ts @@ -12,6 +12,7 @@ import { UserMenuProvider } from './user_menu'; import { AceEditorProvider } from './ace_editor'; import { SampleDataServiceProvider } from './sample_data'; import { GrokDebuggerProvider } from './grok_debugger'; +import { SearchSessionsService } from './search_sessions'; // define the name and providers for services that should be // available to your tests. If you don't specify anything here @@ -27,4 +28,5 @@ export const services = { aceEditor: AceEditorProvider, sampleData: SampleDataServiceProvider, grokDebugger: GrokDebuggerProvider, + searchSessions: SearchSessionsService, }; diff --git a/x-pack/test/functional/services/search_sessions.ts b/x-pack/platform/test/functional/services/search_sessions.ts similarity index 100% rename from x-pack/test/functional/services/search_sessions.ts rename to x-pack/platform/test/functional/services/search_sessions.ts diff --git a/x-pack/test/functional/services/index.ts b/x-pack/test/functional/services/index.ts index 3ea20c2252c6e..eb0cac586451d 100644 --- a/x-pack/test/functional/services/index.ts +++ b/x-pack/test/functional/services/index.ts @@ -11,6 +11,7 @@ import { AceEditorProvider } from '@kbn/test-suites-xpack-platform/functional/se import { UserMenuProvider } from '@kbn/test-suites-xpack-platform/functional/services/user_menu'; import { SampleDataServiceProvider } from '@kbn/test-suites-xpack-platform/functional/services/sample_data'; import { GrokDebuggerProvider } from '@kbn/test-suites-xpack-platform/functional/services/grok_debugger'; +import { SearchSessionsService } from '@kbn/test-suites-xpack-platform/functional/services/search_sessions'; import { ReportingFunctionalProvider } from '@kbn/test-suites-xpack-platform/reporting_functional/services'; import { services as kibanaXPackApiIntegrationServices } from '../../api_integration/services'; import { services as commonServices } from '../../common/services'; @@ -62,7 +63,6 @@ import { InfraSourceConfigurationFormProvider } from './infra_source_configurati import { LogsUiProvider } from './logs_ui'; import { MachineLearningProvider } from './ml'; import { TransformProvider } from './transform'; -import { SearchSessionsService } from './search_sessions'; import { ObservabilityProvider } from './observability'; import { CasesServiceProvider } from './cases'; import { ActionsServiceProvider } from './actions'; From 623875044846e396015e84c1fde044aa75b63dca Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Fri, 11 Jul 2025 10:02:57 +0200 Subject: [PATCH 6/6] remove old tests, that are not migrating --- .../platform/test/upgrade/apps/logs/index.ts | 14 ------- .../upgrade/apps/logs/logs_smoke_tests.ts | 40 ------------------- x-pack/platform/test/upgrade/config.ts | 1 - 3 files changed, 55 deletions(-) delete mode 100644 x-pack/platform/test/upgrade/apps/logs/index.ts delete mode 100644 x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts diff --git a/x-pack/platform/test/upgrade/apps/logs/index.ts b/x-pack/platform/test/upgrade/apps/logs/index.ts deleted file mode 100644 index ed4181f75d76d..0000000000000 --- a/x-pack/platform/test/upgrade/apps/logs/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { FtrProviderContext } from '../../ftr_provider_context'; - -export default function ({ loadTestFile }: FtrProviderContext) { - describe('upgrade', function () { - loadTestFile(require.resolve('./logs_smoke_tests')); - }); -} diff --git a/x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts b/x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts deleted file mode 100644 index 2cde8de43b62a..0000000000000 --- a/x-pack/platform/test/upgrade/apps/logs/logs_smoke_tests.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../ftr_provider_context'; - -export default function ({ getPageObjects, getService }: FtrProviderContext) { - const PageObjects = getPageObjects(['common', 'header', 'home', 'timePicker']); - const logsUi = getService('logsUi'); - - describe('upgrade logs smoke tests', function describeIndexTests() { - const spaces = [ - { space: 'default', basePath: '' }, - { space: 'automation', basePath: 's/automation' }, - ]; - - spaces.forEach(({ space, basePath }) => { - describe('space: ' + space, () => { - before(async () => { - await PageObjects.common.navigateToActualUrl('home', '/tutorial_directory/sampleData', { - basePath, - }); - await PageObjects.header.waitUntilLoadingHasFinished(); - await PageObjects.home.launchSampleLogs('logs'); - await PageObjects.header.waitUntilLoadingHasFinished(); - await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year'); - }); - - it('should show log streams', async () => { - const logStreamEntries = await logsUi.logStreamPage.getStreamEntries(); - expect(logStreamEntries.length).to.be.greaterThan(100); - }); - }); - }); - }); -} diff --git a/x-pack/platform/test/upgrade/config.ts b/x-pack/platform/test/upgrade/config.ts index 72e0a55618562..00b662f22a217 100644 --- a/x-pack/platform/test/upgrade/config.ts +++ b/x-pack/platform/test/upgrade/config.ts @@ -24,7 +24,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { require.resolve('./apps/dashboard'), require.resolve('./apps/discover'), require.resolve('./apps/graph'), - require.resolve('./apps/logs'), require.resolve('./apps/maps'), require.resolve('./apps/reporting'), require.resolve('./apps/rules'),