diff --git a/.buildkite/ftr_oblt_stateful_configs.yml b/.buildkite/ftr_oblt_stateful_configs.yml index 1904581374086..396453b421553 100644 --- a/.buildkite/ftr_oblt_stateful_configs.yml +++ b/.buildkite/ftr_oblt_stateful_configs.yml @@ -44,6 +44,7 @@ enabled: - x-pack/test/observability_ai_assistant_functional/enterprise/config.ts - x-pack/solutions/observability/test/api_integration/profiling/cloud/config.ts - x-pack/test/functional/apps/apm/config.ts + - x-pack/test/functional_with_es_ssl/apps/config.ts # stateful configs that run deployment-agnostic tests - x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts - x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts diff --git a/.buildkite/ftr_platform_stateful_configs.yml b/.buildkite/ftr_platform_stateful_configs.yml index b193c0f4f19b7..b10510ab98c53 100644 --- a/.buildkite/ftr_platform_stateful_configs.yml +++ b/.buildkite/ftr_platform_stateful_configs.yml @@ -12,7 +12,7 @@ disabled: - x-pack/platform/test/functional/config.base.ts - x-pack/platform/test/localization/config.base.ts - src/platform/test/server_integration/config.base.js - - x-pack/test/functional_with_es_ssl/config.base.ts + - x-pack/platform/test/functional_with_es_ssl/config.base.ts - x-pack/test/api_integration/config.ts - x-pack/platform/test/api_integration/config.ts - x-pack/test/fleet_api_integration/config.base.ts @@ -36,6 +36,7 @@ disabled: - x-pack/platform/test/load/config.ts - x-pack/platform/test/plugin_api_perf/config.ts - x-pack/test/screenshot_creation/config.ts + - x-pack/platform/test/screenshot_creation/config.ts - x-pack/platform/test/fleet_packages/config.ts # Scalability testing config that we run in its own pipeline @@ -190,18 +191,18 @@ enabled: - x-pack/platform/test/functional_cors/config.ts - x-pack/platform/test/functional_embedded/config.ts - x-pack/platform/test/functional_execution_context/config.ts - - x-pack/test/functional_with_es_ssl/apps/cases/group1/config.ts - - x-pack/test/functional_with_es_ssl/apps/cases/group2/config.ts - - x-pack/test/functional_with_es_ssl/apps/cases/basic/config.ts - - x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/config.ts - - x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts - - x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts - - x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts - - x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts - - x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts - - x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts + - x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts - x-pack/test/functional/apps/advanced_settings/config.ts - - x-pack/test/functional/apps/aiops/config.ts + - x-pack/platform/test/functional/apps/aiops/config.ts - x-pack/test/functional/apps/api_keys/config.ts - x-pack/platform/test/functional/apps/canvas/config.ts - x-pack/test/functional/apps/cross_cluster_replication/config.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 938c82cec8ec7..d55136b8da3c1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -992,6 +992,8 @@ x-pack/platform/test/encrypted_saved_objects_api_integration/plugins/api_consume x-pack/platform/test/functional_cors/plugins/kibana_cors_test @elastic/kibana-security x-pack/platform/test/functional_embedded/plugins/iframe_embedded @elastic/kibana-core x-pack/platform/test/functional_execution_context/plugins/alerts @elastic/kibana-core +x-pack/platform/test/functional_with_es_ssl/plugins/alerts @elastic/response-ops +x-pack/platform/test/functional_with_es_ssl/plugins/cases @elastic/response-ops x-pack/platform/test/licensing_plugin/plugins/test_feature_usage @elastic/kibana-security x-pack/platform/test/plugin_api_integration/plugins/elasticsearch_client @elastic/kibana-core x-pack/platform/test/plugin_api_integration/plugins/event_log @elastic/response-ops @@ -1114,8 +1116,6 @@ x-pack/solutions/security/plugins/session_view @elastic/kibana-cloud-security-po x-pack/solutions/security/test x-pack/test x-pack/test_serverless -x-pack/test/functional_with_es_ssl/plugins/alerts @elastic/response-ops -x-pack/test/functional_with_es_ssl/plugins/cases @elastic/response-ops x-pack/test/plugin_functional/plugins/global_search_test @elastic/kibana-core x-pack/test/plugin_functional/plugins/resolver_test @elastic/security-solution x-pack/test/security_api_integration/packages/helpers @elastic/kibana-security @@ -1206,7 +1206,7 @@ x-pack/test_serverless/api_integration/test_suites/common/platform_security @ela /x-pack/test/functional/apps/data_views @elastic/kibana-data-discovery /x-pack/test/functional/apps/discover @elastic/kibana-data-discovery /x-pack/platform/test/functional/apps/saved_query_management @elastic/kibana-data-discovery -/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/discover @elastic/kibana-data-discovery +/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/discover @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 @@ -1240,7 +1240,7 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ # Platform Docs /x-pack/test_serverless/functional/test_suites/security/screenshot_creation/index.ts @elastic/platform-docs /x-pack/test_serverless/functional/test_suites/security/config.screenshots.ts @elastic/platform-docs -/x-pack/test/screenshot_creation @elastic/platform-docs +/x-pack/platform/test/screenshot_creation @elastic/platform-docs # Visualizations /x-pack/test/functional/fixtures/kbn_archiver/rollup @elastic/kibana-visualizations # Assigned per the only uses are in lens and tsvb tests @@ -1523,6 +1523,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # APM /x-pack/test/stack_functional_integration/apps/apm @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team /x-pack/test/common/services/apm_synthtrace_kibana_client.ts @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team +/x-pack/platform/test/api_integration/services/apm_synthtrace_kibana_client.ts @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team /src/platform/test/api_integration/apis/ui_metric/*.ts @elastic/obs-ux-infra_services-team /x-pack/test/functional/apps/apm/ @elastic/obs-ux-infra_services-team /x-pack/solutions/observability/test/api_integration/apm/ @elastic/obs-ux-infra_services-team @@ -1537,7 +1538,9 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Uptime /x-pack/test/functional/page_objects/uptime_page.ts @elastic/obs-ux-management-team -/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/ @elastic/obs-ux-management-team +/x-pack/test/functional_with_es_ssl/apps/uptime/ @elastic/obs-ux-management-team +/x-pack/test/functional_with_es_ssl/apps/config.ts @elastic/obs-ux-management-team +/x-pack/test/functional_with_es_ssl/ftr_provider_context.ts @elastic/obs-ux-management-team /x-pack/test/functional/apps/uptime @elastic/obs-ux-management-team /x-pack/test/functional/es_archives/uptime @elastic/obs-ux-management-team /x-pack/test/functional/services/uptime @elastic/obs-ux-management-team @@ -1615,7 +1618,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /src/platform/test/api_integration/apis/dashboards @elastic/kibana-presentation /src/platform/test/interpreter_functional/snapshots @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/54342 /src/platform/test/functional/services/inspector.ts @elastic/kibana-presentation -/x-pack/test/functional/services/canvas_element.ts @elastic/kibana-presentation +/x-pack/platform/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/platform/test/upgrade/apps/canvas @elastic/kibana-presentation @@ -1665,14 +1668,14 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/api_integration/apis/ml/ @elastic/ml-ui /x-pack/test/functional/apps/ml/ @elastic/ml-ui /x-pack/test/functional/es_archives/ml/ @elastic/ml-ui -/x-pack/test/functional/services/ml/ @elastic/ml-ui +/x-pack/platform/test/functional/services/ml @elastic/ml-ui /x-pack/test/functional_basic/apps/ml/ @elastic/ml-ui -/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/config.ts @elastic/ml-ui -/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/ml/ @elastic/ml-ui +/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts @elastic/ml-ui +/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/ @elastic/ml-ui /x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/ml_rule_types/ @elastic/ml-ui /x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/transform_rule_types/ @elastic/ml-ui @elastic/kibana-management -/x-pack/test/screenshot_creation/apps/ml_docs @elastic/ml-ui -/x-pack/test/screenshot_creation/services/ml_screenshots.ts @elastic/ml-ui +/x-pack/platform/test/screenshot_creation/apps/ml_docs @elastic/ml-ui +/x-pack/platform/test/screenshot_creation/services/ml_screenshots.ts @elastic/ml-ui /x-pack/test_serverless/**/test_suites/**/ml/ @elastic/ml-ui /x-pack/test_serverless/**/test_suites/common/management/transforms/ @elastic/ml-ui @elastic/kibana-management /x-pack/test/api_integration/services/ml.ts @elastic/ml-ui @@ -1689,11 +1692,11 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/test/api_integration_basic/apis/transform/ @elastic/ml-ui @elastic/kibana-management /x-pack/test/api_integration/services/aiops.ts @elastic/ml-ui /x-pack/test/api_integration/services/transform.ts @elastic/ml-ui @elastic/kibana-management -/x-pack/test/functional/apps/aiops @elastic/ml-ui +/x-pack/platform/test/functional/apps/aiops @elastic/ml-ui /x-pack/test/functional/apps/transform/ @elastic/ml-ui @elastic/kibana-management /x-pack/test/functional/es_archives/large_arrays @elastic/ml-ui # Assigned per usages -/x-pack/test/functional/services/transform/ @elastic/ml-ui @elastic/kibana-management -/x-pack/test/functional/services/aiops @elastic/ml-ui +/x-pack/platform/test/functional/services/transform @elastic/ml-ui @elastic/kibana-management +/x-pack/platform/test/functional/services/aiops @elastic/ml-ui /x-pack/test/functional_basic/apps/transform/ @elastic/ml-ui @elastic/kibana-management # Operations @@ -1769,7 +1772,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/test/functional/services/remote_es/remote_es_archiver.ts @elastic/appex-qa /src/platform/test/functional/services/remote_es/remote_es_archiver.ts @elastic/appex-qa /x-pack/test/kibana.jsonc @elastic/appex-qa -/x-pack/test/functional_with_es_ssl/ftr_provider_context.d.ts @elastic/appex-qa +/x-pack/platform/test/functional_with_es_ssl/ftr_provider_context.d.ts @elastic/appex-qa /x-pack/test/stack_functional_integration/apps @elastic/appex-qa /x-pack/test/plugin_functional/config.ts @elastic/appex-qa /x-pack/test/plugin_functional/ftr_provider_context.d.ts @elastic/appex-qa @@ -2142,27 +2145,30 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/platform/test/functional/page_objects/maintenance_windows_page.ts @elastic/response-ops /x-pack/test_serverless/functional/test_suites/observability/screenshot_creation/index.ts @elastic/response-ops /x-pack/test_serverless/functional/test_suites/observability/rules/rules_list.ts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/config.base.ts @elastic/response-ops # Assigned per https://github.com/elastic/kibana/pull/197070 -/x-pack/test/functional_with_es_ssl/lib/alert_api_actions.ts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/lib/get_test_data.ts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/page_objects/index.ts @elastic/response-ops # Assigned per git blame -/x-pack/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/page_objects/rule_details.ts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/lib/object_remover.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/config.base.ts @elastic/response-ops # Assigned per https://github.com/elastic/kibana/pull/197070 +/x-pack/platform/test/functional_with_es_ssl/lib/alert_api_actions.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/lib/get_test_data.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/lib/apm_es_client.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/page_objects/index.ts @elastic/response-ops # Assigned per git blame +/x-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/page_objects/rule_details.ts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/lib/object_remover.ts @elastic/response-ops /x-pack/test/stack_functional_integration/apps/alerts @elastic/response-ops -/x-pack/test/functional/services/actions @elastic/response-ops +/x-pack/platform/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/platform/test/upgrade/services/rules_upgrade_services.ts @elastic/response-ops /x-pack/platform/test/upgrade/apps/rules @elastic/response-ops /x-pack/platform/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/functional/services/rules @elastic/response-ops /x-pack/platform/test/plugin_api_integration/plugins/sample_task_plugin @elastic/response-ops /x-pack/test/functional/fixtures/kbn_archiver/cases @elastic/response-ops @elastic/kibana-cases /x-pack/test/functional/es_archives/cases @elastic/response-ops @elastic/kibana-cases -/x-pack/test/functional_with_es_ssl/plugins/alerts @elastic/response-ops -/x-pack/test/functional_with_es_ssl/platform/plugins/shared/cases @elastic/response-ops @elastic/kibana-cases +/x-pack/platform/test/functional_with_es_ssl/plugins/alerts @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/platform/plugins/shared/cases @elastic/response-ops @elastic/kibana-cases +/x-pack/platform/test/screenshot_creation/apps/response_ops_docs @elastic/response-ops /x-pack/test/screenshot_creation/apps/response_ops_docs @elastic/response-ops +/x-pack/test/screenshot_creation/ @elastic/response-ops /x-pack/test/rule_registry @elastic/response-ops @elastic/obs-ux-management-team /x-pack/test/accessibility/apps/group3/rules_connectors.ts @elastic/response-ops /x-pack/test_serverless/functional/page_objects/svl_triggers_actions_ui_page.ts @elastic/response-ops @@ -2171,15 +2177,15 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/platform/test/alerting_api_integration/ @elastic/response-ops /x-pack/solutions/observability/test/alerting_api_integration/observability @elastic/obs-ux-management-team /x-pack/platform/test/plugin_api_integration/test_suites/task_manager/ @elastic/response-ops -/x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/ @elastic/response-ops -/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/ @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/ @elastic/response-ops +/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/ @elastic/response-ops /x-pack/platform/test/task_manager_claimer_update_by_query/ @elastic/response-ops /docs/user/alerting/ @elastic/response-ops /docs/management/connectors/ @elastic/response-ops /x-pack/platform/test/cases_api_integration/ @elastic/response-ops /x-pack/solutions/security/test/cases_api_integration/ @elastic/response-ops -/x-pack/test/functional/services/cases/ @elastic/response-ops @elastic/kibana-cases -/x-pack/test/functional_with_es_ssl/apps/cases/ @elastic/response-ops @elastic/kibana-cases +/x-pack/platform/test/functional/services/cases/ @elastic/response-ops @elastic/kibana-cases +/x-pack/platform/test/functional_with_es_ssl/apps/cases/ @elastic/response-ops @elastic/kibana-cases /x-pack/test/api_integration/apis/cases/ @elastic/response-ops @elastic/kibana-cases /x-pack/test_serverless/functional/test_suites/observability/cases @elastic/response-ops @elastic/kibana-cases /x-pack/test_serverless/functional/test_suites/search/cases/ @elastic/response-ops @elastic/kibana-cases diff --git a/package.json b/package.json index 07f277b477a52..9d6c8c1aeee60 100644 --- a/package.json +++ b/package.json @@ -187,7 +187,7 @@ "@kbn/alerting-api-integration-test-plugin": "link:x-pack/platform/test/alerting_api_integration/common/plugins/alerts", "@kbn/alerting-comparators": "link:x-pack/platform/packages/shared/kbn-alerting-comparators", "@kbn/alerting-example-plugin": "link:x-pack/examples/alerting_example", - "@kbn/alerting-fixture-plugin": "link:x-pack/test/functional_with_es_ssl/plugins/alerts", + "@kbn/alerting-fixture-plugin": "link:x-pack/platform/test/functional_with_es_ssl/plugins/alerts", "@kbn/alerting-plugin": "link:x-pack/platform/plugins/shared/alerting", "@kbn/alerting-rule-utils": "link:x-pack/platform/packages/shared/alerting-rule-utils", "@kbn/alerting-state-types": "link:x-pack/platform/packages/private/kbn-alerting-state-types", @@ -568,7 +568,7 @@ "@kbn/flot-charts": "link:src/platform/packages/shared/kbn-flot-charts", "@kbn/foo-plugin": "link:x-pack/platform/test/ui_capabilities/common/plugins/foo_plugin", "@kbn/ftr-apis-plugin": "link:src/platform/plugins/private/ftr_apis", - "@kbn/functional-with-es-ssl-cases-test-plugin": "link:x-pack/test/functional_with_es_ssl/plugins/cases", + "@kbn/functional-with-es-ssl-cases-test-plugin": "link:x-pack/platform/test/functional_with_es_ssl/plugins/cases", "@kbn/gen-ai-streaming-response-example-plugin": "link:x-pack/examples/gen_ai_streaming_response_example", "@kbn/generate-csv": "link:src/platform/packages/private/kbn-generate-csv", "@kbn/global-search-bar-plugin": "link:x-pack/platform/plugins/private/global_search_bar", diff --git a/tsconfig.base.json b/tsconfig.base.json index 01833f2bbdf2a..7c819d2dfa34d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -52,8 +52,8 @@ "@kbn/alerting-comparators/*": ["x-pack/platform/packages/shared/kbn-alerting-comparators/*"], "@kbn/alerting-example-plugin": ["x-pack/examples/alerting_example"], "@kbn/alerting-example-plugin/*": ["x-pack/examples/alerting_example/*"], - "@kbn/alerting-fixture-plugin": ["x-pack/test/functional_with_es_ssl/plugins/alerts"], - "@kbn/alerting-fixture-plugin/*": ["x-pack/test/functional_with_es_ssl/plugins/alerts/*"], + "@kbn/alerting-fixture-plugin": ["x-pack/platform/test/functional_with_es_ssl/plugins/alerts"], + "@kbn/alerting-fixture-plugin/*": ["x-pack/platform/test/functional_with_es_ssl/plugins/alerts/*"], "@kbn/alerting-plugin": ["x-pack/platform/plugins/shared/alerting"], "@kbn/alerting-plugin/*": ["x-pack/platform/plugins/shared/alerting/*"], "@kbn/alerting-rule-utils": ["x-pack/platform/packages/shared/alerting-rule-utils"], @@ -1026,8 +1026,8 @@ "@kbn/ftr-common-functional-ui-services/*": ["src/platform/packages/shared/kbn-ftr-common-functional-ui-services/*"], "@kbn/ftr-screenshot-filename": ["src/platform/packages/private/kbn-ftr-screenshot-filename"], "@kbn/ftr-screenshot-filename/*": ["src/platform/packages/private/kbn-ftr-screenshot-filename/*"], - "@kbn/functional-with-es-ssl-cases-test-plugin": ["x-pack/test/functional_with_es_ssl/plugins/cases"], - "@kbn/functional-with-es-ssl-cases-test-plugin/*": ["x-pack/test/functional_with_es_ssl/plugins/cases/*"], + "@kbn/functional-with-es-ssl-cases-test-plugin": ["x-pack/platform/test/functional_with_es_ssl/plugins/cases"], + "@kbn/functional-with-es-ssl-cases-test-plugin/*": ["x-pack/platform/test/functional_with_es_ssl/plugins/cases/*"], "@kbn/gen-ai-functional-testing": ["src/platform/packages/private/kbn-gen-ai-functional-testing"], "@kbn/gen-ai-functional-testing/*": ["src/platform/packages/private/kbn-gen-ai-functional-testing/*"], "@kbn/gen-ai-streaming-response-example-plugin": ["x-pack/examples/gen_ai_streaming_response_example"], diff --git a/x-pack/platform/plugins/shared/ml/readme.md b/x-pack/platform/plugins/shared/ml/readme.md index eda83a0fb96de..68d30c72fc6ec 100644 --- a/x-pack/platform/plugins/shared/ml/readme.md +++ b/x-pack/platform/plugins/shared/ml/readme.md @@ -115,41 +115,41 @@ With PATH_TO_CONFIG and other options as follows. 1. Functional UI tests with `Trial` license: - Group | PATH_TO_CONFIG - ----- | -------------- - anomaly detection jobs | `src/platform/test/functional/apps/ml/anomaly_detection_jobs/config.ts` - anomaly detection result views | `src/platform/test/functional/apps/ml/anomaly_detection_result_views/config.ts` - anomaly detection integrations | `src/platform/test/functional/apps/ml/anomaly_detection_integrations/config.ts` - data frame analytics | `src/platform/test/functional/apps/ml/data_frame_analytics/config.ts` - data visualizer | `src/platform/test/functional/apps/ml/data_visualizer/config.ts` - permissions | `src/platform/test/functional/apps/ml/permissions/config.ts` - stack management jobs | `src/platform/test/functional/apps/ml/stack_management_jobs/config.ts` - short tests | `src/platform/test/functional/apps/ml/short_tests/config.ts` + | Group | PATH_TO_CONFIG | + | ------------------------------ | ------------------------------------------------------------------------------- | + | anomaly detection jobs | `src/platform/test/functional/apps/ml/anomaly_detection_jobs/config.ts` | + | anomaly detection result views | `src/platform/test/functional/apps/ml/anomaly_detection_result_views/config.ts` | + | anomaly detection integrations | `src/platform/test/functional/apps/ml/anomaly_detection_integrations/config.ts` | + | data frame analytics | `src/platform/test/functional/apps/ml/data_frame_analytics/config.ts` | + | data visualizer | `src/platform/test/functional/apps/ml/data_visualizer/config.ts` | + | permissions | `src/platform/test/functional/apps/ml/permissions/config.ts` | + | stack management jobs | `src/platform/test/functional/apps/ml/stack_management_jobs/config.ts` | + | short tests | `src/platform/test/functional/apps/ml/short_tests/config.ts` | - The `short tests` group contains tests for page navigation, model management, - feature controls, settings and notifications. Test files for each group are located - in the directory of their configuration file. + The `short tests` group contains tests for page navigation, model management, + feature controls, settings and notifications. Test files for each group are located + in the directory of their configuration file. -1. Functional UI tests with `Basic` license: +1. Functional UI tests with `Basic` license: - Group | PATH_TO_CONFIG - ----- | -------------- - permissions | `test/functional_basic/apps/ml/permissions/config.ts` - data visualizer group1 (file data viz) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts` - data visualizer group2 (index data viz) | `test/functional_basic/apps/ml/data_visualizer/group2/config.ts` - data visualizer group3 (actions panel, discover grid) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts` + | Group | PATH_TO_CONFIG | + | ----------------------------------------------------- | ---------------------------------------------------------------- | + | permissions | `test/functional_basic/apps/ml/permissions/config.ts` | + | data visualizer group1 (file data viz) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts` | + | data visualizer group2 (index data viz) | `test/functional_basic/apps/ml/data_visualizer/group2/config.ts` | + | data visualizer group3 (actions panel, discover grid) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts` | -1. API integration tests with `Trial` license: +1. API integration tests with `Trial` license: - - PATH_TO_CONFIG: `src/platform/test/api_integration/apis/ml/config.ts` + - PATH_TO_CONFIG: `x-pack/platform/test/api_integration/apis/ml/config.ts` -1. Accessibility tests: +1. Accessibility tests: - We maintain a suite of accessibility tests (you may see them referred to elsewhere as `a11y` tests). These tests render each of our pages and ensure that the inputs and other elements contain the attributes necessary to ensure all users are able to make use of ML (for example, users relying on screen readers). + We maintain a suite of accessibility tests (you may see them referred to elsewhere as `a11y` tests). These tests render each of our pages and ensure that the inputs and other elements contain the attributes necessary to ensure all users are able to make use of ML (for example, users relying on screen readers). - - PATH_TO_CONFIG: `src/platform/test/accessibility/config.ts` - - Add `--grep=ml` to the test runner command - - Tests are located in `x-pack/test/accessibility/apps/group2` + - PATH_TO_CONFIG: `src/platform/test/accessibility/config.ts` + - Add `--grep=ml` to the test runner command + - Tests are located in `x-pack/test/accessibility/apps/group2` ## Generating docs screenshots @@ -164,7 +164,7 @@ and Kibana instance that the tests will be run against. node scripts/functional_test_runner.js --config test/screenshot_creation/config.ts --include-tag ml The generated screenshots are stored in `x-pack/test/functional/screenshots/session/ml_docs`. -ML screenshot generation tests are located in `x-pack/test/screenshot_creation/apps/ml_docs`. +ML screenshot generation tests are located in `x-pack/platform/test/screenshot_creation/apps/ml_docs`. ## Shared functions diff --git a/x-pack/platform/test/api_integration/services/apm_synthtrace_kibana_client.ts b/x-pack/platform/test/api_integration/services/apm_synthtrace_kibana_client.ts new file mode 100644 index 0000000000000..88bd2f615fc46 --- /dev/null +++ b/x-pack/platform/test/api_integration/services/apm_synthtrace_kibana_client.ts @@ -0,0 +1,32 @@ +/* + * 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 url from 'url'; +import { kbnTestConfig } from '@kbn/test'; +import { ApmSynthtraceKibanaClient, createLogger, LogLevel } from '@kbn/apm-synthtrace'; + +const getKibanaServerUrlWithAuth = () => { + const kibanaServerUrl = url.format(kbnTestConfig.getUrlParts() as url.UrlObject); + + const { username, password } = kbnTestConfig.getUrlParts(); + const kibanaServerUrlWithAuth = url + .format({ + ...url.parse(kibanaServerUrl), + auth: `${username}:${password}`, + }) + .slice(0, -1); + return kibanaServerUrlWithAuth; +}; +export function ApmSynthtraceKibanaClientProvider() { + const kibanaServerUrlWithAuth = getKibanaServerUrlWithAuth(); + const kibanaClient = new ApmSynthtraceKibanaClient({ + target: kibanaServerUrlWithAuth, + logger: createLogger(LogLevel.debug), + }); + + return kibanaClient; +} diff --git a/x-pack/platform/test/api_integration/services/index.ts b/x-pack/platform/test/api_integration/services/index.ts index d098bc75dee98..308a82b08ad69 100644 --- a/x-pack/platform/test/api_integration/services/index.ts +++ b/x-pack/platform/test/api_integration/services/index.ts @@ -19,6 +19,7 @@ import { TransformProvider } from './transform'; import { IndexManagementProvider } from './index_management'; import { AlertingApiProvider } from './alerting_api'; import { MachineLearningProvider } from './ml'; +import { ApmSynthtraceKibanaClientProvider } from './apm_synthtrace_kibana_client'; export const services = { ...kibanaApiIntegrationServices, @@ -34,4 +35,5 @@ export const services = { spaces: SpacesServiceProvider, transform: TransformProvider, usageAPI: UsageAPIProvider, + apmSynthtraceKibanaClient: ApmSynthtraceKibanaClientProvider, }; diff --git a/x-pack/test/functional/apps/aiops/change_point_detection.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/change_point_detection.ts rename to x-pack/platform/test/functional/apps/aiops/change_point_detection.ts diff --git a/x-pack/test/functional/apps/aiops/change_point_detection_cases.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts similarity index 97% rename from x-pack/test/functional/apps/aiops/change_point_detection_cases.ts rename to x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts index a6105b2055189..a91d195792fdb 100644 --- a/x-pack/test/functional/apps/aiops/change_point_detection_cases.ts +++ b/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts @@ -6,7 +6,7 @@ */ import { FtrProviderContext } from '../../ftr_provider_context'; -import { USER } from '../../services/ml/security_common'; +import { USER } from '../../../api_integration/services/ml/security_common'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const elasticChart = getService('elasticChart'); diff --git a/x-pack/test/functional/apps/aiops/change_point_detection_dashboard.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/change_point_detection_dashboard.ts rename to x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts diff --git a/x-pack/test/functional/apps/aiops/config.ts b/x-pack/platform/test/functional/apps/aiops/config.ts similarity index 96% rename from x-pack/test/functional/apps/aiops/config.ts rename to x-pack/platform/test/functional/apps/aiops/config.ts index 214d3712ecbf9..a8fd63c4f82e2 100644 --- a/x-pack/test/functional/apps/aiops/config.ts +++ b/x-pack/platform/test/functional/apps/aiops/config.ts @@ -8,7 +8,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { - const functionalConfig = await readConfigFile(require.resolve('../../config.base.js')); + const functionalConfig = await readConfigFile(require.resolve('../../config.base.ts')); return { ...functionalConfig.getAll(), diff --git a/x-pack/test/functional/apps/aiops/index.ts b/x-pack/platform/test/functional/apps/aiops/index.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/index.ts rename to x-pack/platform/test/functional/apps/aiops/index.ts diff --git a/x-pack/test/functional/apps/aiops/log_pattern_analysis.ts b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts similarity index 98% rename from x-pack/test/functional/apps/aiops/log_pattern_analysis.ts rename to x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts index b056b3d6ec8fb..68ddf19fefdbf 100644 --- a/x-pack/test/functional/apps/aiops/log_pattern_analysis.ts +++ b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts @@ -6,7 +6,7 @@ */ import { FtrProviderContext } from '../../ftr_provider_context'; -import { USER } from '../../services/ml/security_common'; +import { USER } from '../../../api_integration/services/ml/security_common'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const elasticChart = getService('elasticChart'); diff --git a/x-pack/test/functional/apps/aiops/log_pattern_analysis_esql_in_discover.ts b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_esql_in_discover.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_pattern_analysis_esql_in_discover.ts rename to x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_esql_in_discover.ts diff --git a/x-pack/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts rename to x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_zerodocsfallback.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_zerodocsfallback.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_zerodocsfallback.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_zerodocsfallback.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/artificial_log_data_view_test_data.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/artificial_log_data_view_test_data.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/artificial_log_data_view_test_data.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/artificial_log_data_view_test_data.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data_with_query.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data_with_query.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data_with_query.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/farequote_data_view_test_data_with_query.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/kibana_logs_data_view_test_data.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/kibana_logs_data_view_test_data.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis/test_data/kibana_logs_data_view_test_data.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis/test_data/kibana_logs_data_view_test_data.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis_cases.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_cases.ts similarity index 97% rename from x-pack/test/functional/apps/aiops/log_rate_analysis_cases.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis_cases.ts index 07c632ea7df0d..438222884f284 100644 --- a/x-pack/test/functional/apps/aiops/log_rate_analysis_cases.ts +++ b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_cases.ts @@ -6,7 +6,7 @@ */ import { FtrProviderContext } from '../../ftr_provider_context'; -import { USER } from '../../services/ml/security_common'; +import { USER } from '../../../api_integration/services/ml/security_common'; import { logRateAnalysisTestData } from './log_rate_analysis_test_data'; export default function ({ getPageObjects, getService }: FtrProviderContext) { diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis_dashboard_embeddable.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_dashboard_embeddable.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis_dashboard_embeddable.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis_dashboard_embeddable.ts diff --git a/x-pack/test/functional/apps/aiops/log_rate_analysis_test_data.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_test_data.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/log_rate_analysis_test_data.ts rename to x-pack/platform/test/functional/apps/aiops/log_rate_analysis_test_data.ts diff --git a/x-pack/test/functional/apps/aiops/types.ts b/x-pack/platform/test/functional/apps/aiops/types.ts similarity index 100% rename from x-pack/test/functional/apps/aiops/types.ts rename to x-pack/platform/test/functional/apps/aiops/types.ts diff --git a/x-pack/test/functional/services/actions/api.ts b/x-pack/platform/test/functional/services/actions/api.ts similarity index 100% rename from x-pack/test/functional/services/actions/api.ts rename to x-pack/platform/test/functional/services/actions/api.ts diff --git a/x-pack/test/functional/services/actions/common.ts b/x-pack/platform/test/functional/services/actions/common.ts similarity index 100% rename from x-pack/test/functional/services/actions/common.ts rename to x-pack/platform/test/functional/services/actions/common.ts diff --git a/x-pack/test/functional/services/actions/index.ts b/x-pack/platform/test/functional/services/actions/index.ts similarity index 100% rename from x-pack/test/functional/services/actions/index.ts rename to x-pack/platform/test/functional/services/actions/index.ts diff --git a/x-pack/test/functional/services/actions/opsgenie.ts b/x-pack/platform/test/functional/services/actions/opsgenie.ts similarity index 100% rename from x-pack/test/functional/services/actions/opsgenie.ts rename to x-pack/platform/test/functional/services/actions/opsgenie.ts diff --git a/x-pack/test/functional/services/actions/slack.ts b/x-pack/platform/test/functional/services/actions/slack.ts similarity index 100% rename from x-pack/test/functional/services/actions/slack.ts rename to x-pack/platform/test/functional/services/actions/slack.ts diff --git a/x-pack/test/functional/services/actions/tines.ts b/x-pack/platform/test/functional/services/actions/tines.ts similarity index 100% rename from x-pack/test/functional/services/actions/tines.ts rename to x-pack/platform/test/functional/services/actions/tines.ts diff --git a/x-pack/test/functional/services/aiops/change_point_detection_page.ts b/x-pack/platform/test/functional/services/aiops/change_point_detection_page.ts similarity index 100% rename from x-pack/test/functional/services/aiops/change_point_detection_page.ts rename to x-pack/platform/test/functional/services/aiops/change_point_detection_page.ts diff --git a/x-pack/test/functional/services/aiops/dashboard_embeddables.ts b/x-pack/platform/test/functional/services/aiops/dashboard_embeddables.ts similarity index 100% rename from x-pack/test/functional/services/aiops/dashboard_embeddables.ts rename to x-pack/platform/test/functional/services/aiops/dashboard_embeddables.ts diff --git a/x-pack/test/functional/services/aiops/index.ts b/x-pack/platform/test/functional/services/aiops/index.ts similarity index 100% rename from x-pack/test/functional/services/aiops/index.ts rename to x-pack/platform/test/functional/services/aiops/index.ts diff --git a/x-pack/test/functional/services/aiops/log_pattern_analysis_page.ts b/x-pack/platform/test/functional/services/aiops/log_pattern_analysis_page.ts similarity index 100% rename from x-pack/test/functional/services/aiops/log_pattern_analysis_page.ts rename to x-pack/platform/test/functional/services/aiops/log_pattern_analysis_page.ts diff --git a/x-pack/test/functional/services/aiops/log_rate_analysis_data_generator.ts b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts similarity index 100% rename from x-pack/test/functional/services/aiops/log_rate_analysis_data_generator.ts rename to x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts diff --git a/x-pack/test/functional/services/aiops/log_rate_analysis_page.ts b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_page.ts similarity index 100% rename from x-pack/test/functional/services/aiops/log_rate_analysis_page.ts rename to x-pack/platform/test/functional/services/aiops/log_rate_analysis_page.ts diff --git a/x-pack/test/functional/services/aiops/log_rate_analysis_results_groups_table.ts b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_results_groups_table.ts similarity index 100% rename from x-pack/test/functional/services/aiops/log_rate_analysis_results_groups_table.ts rename to x-pack/platform/test/functional/services/aiops/log_rate_analysis_results_groups_table.ts diff --git a/x-pack/test/functional/services/aiops/log_rate_analysis_results_table.ts b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_results_table.ts similarity index 100% rename from x-pack/test/functional/services/aiops/log_rate_analysis_results_table.ts rename to x-pack/platform/test/functional/services/aiops/log_rate_analysis_results_table.ts diff --git a/x-pack/test/functional/services/canvas_element.ts b/x-pack/platform/test/functional/services/canvas_element.ts similarity index 100% rename from x-pack/test/functional/services/canvas_element.ts rename to x-pack/platform/test/functional/services/canvas_element.ts diff --git a/x-pack/test/functional/services/cases/api.ts b/x-pack/platform/test/functional/services/cases/api.ts similarity index 94% rename from x-pack/test/functional/services/cases/api.ts rename to x-pack/platform/test/functional/services/cases/api.ts index 31a22a277a465..7a1d4f52108d1 100644 --- a/x-pack/test/functional/services/cases/api.ts +++ b/x-pack/platform/test/functional/services/cases/api.ts @@ -21,12 +21,12 @@ import { getCase, createConfiguration, getConfigurationRequest, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/api'; +} from '../../../cases_api_integration/common/lib/api'; import { loginUsers, suggestUserProfiles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/api/user_profiles'; -import { User } from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication/types'; +} from '../../../cases_api_integration/common/lib/api/user_profiles'; +import { User } from '../../../cases_api_integration/common/lib/authentication/types'; import { FtrProviderContext } from '../../ftr_provider_context'; import { generateRandomCaseWithoutConnector } from './helpers'; diff --git a/x-pack/test/functional/services/cases/common.ts b/x-pack/platform/test/functional/services/cases/common.ts similarity index 100% rename from x-pack/test/functional/services/cases/common.ts rename to x-pack/platform/test/functional/services/cases/common.ts diff --git a/x-pack/test/functional/services/cases/create.ts b/x-pack/platform/test/functional/services/cases/create.ts similarity index 100% rename from x-pack/test/functional/services/cases/create.ts rename to x-pack/platform/test/functional/services/cases/create.ts diff --git a/x-pack/test/functional/services/cases/files.ts b/x-pack/platform/test/functional/services/cases/files.ts similarity index 100% rename from x-pack/test/functional/services/cases/files.ts rename to x-pack/platform/test/functional/services/cases/files.ts diff --git a/x-pack/test/functional/services/cases/helpers.ts b/x-pack/platform/test/functional/services/cases/helpers.ts similarity index 100% rename from x-pack/test/functional/services/cases/helpers.ts rename to x-pack/platform/test/functional/services/cases/helpers.ts diff --git a/x-pack/test/functional/services/cases/index.ts b/x-pack/platform/test/functional/services/cases/index.ts similarity index 100% rename from x-pack/test/functional/services/cases/index.ts rename to x-pack/platform/test/functional/services/cases/index.ts diff --git a/x-pack/test/functional/services/cases/list.ts b/x-pack/platform/test/functional/services/cases/list.ts similarity index 100% rename from x-pack/test/functional/services/cases/list.ts rename to x-pack/platform/test/functional/services/cases/list.ts diff --git a/x-pack/test/functional/services/cases/navigation.ts b/x-pack/platform/test/functional/services/cases/navigation.ts similarity index 100% rename from x-pack/test/functional/services/cases/navigation.ts rename to x-pack/platform/test/functional/services/cases/navigation.ts diff --git a/x-pack/test/functional/services/cases/single_case_view.ts b/x-pack/platform/test/functional/services/cases/single_case_view.ts similarity index 100% rename from x-pack/test/functional/services/cases/single_case_view.ts rename to x-pack/platform/test/functional/services/cases/single_case_view.ts diff --git a/x-pack/test/functional/services/cases/test_resources.ts b/x-pack/platform/test/functional/services/cases/test_resources.ts similarity index 100% rename from x-pack/test/functional/services/cases/test_resources.ts rename to x-pack/platform/test/functional/services/cases/test_resources.ts diff --git a/x-pack/platform/test/functional/services/index.ts b/x-pack/platform/test/functional/services/index.ts index 78e5874ae0078..2901e31dbfc44 100644 --- a/x-pack/platform/test/functional/services/index.ts +++ b/x-pack/platform/test/functional/services/index.ts @@ -13,20 +13,35 @@ import { AceEditorProvider } from './ace_editor'; import { SampleDataServiceProvider } from './sample_data'; import { GrokDebuggerProvider } from './grok_debugger'; import { SearchSessionsService } from './search_sessions'; +import { CasesServiceProvider } from './cases'; +import { ActionsServiceProvider } from './actions'; +import { AiopsProvider } from './aiops'; +import { RulesServiceProvider } from './rules'; +import { CanvasElementProvider } from './canvas_element'; +import { MachineLearningProvider } from './ml'; +import { TransformProvider } from './transform'; // define the name and providers for services that should be // available to your tests. If you don't specify anything here // only the built-in services will be available export const services = { ...kibanaFunctionalServices, + actions: ActionsServiceProvider, + aiops: AiopsProvider, + canvasElement: CanvasElementProvider, + cases: CasesServiceProvider, supertest: kibanaApiIntegrationServices.supertest, supertestWithoutAuth: kibanaXPackApiIntegrationServices.supertestWithoutAuth, esSupertest: kibanaApiIntegrationServices.esSupertest, dataViewApi: kibanaXPackApiIntegrationServices.dataViewApi, spaces: kibanaXPackApiIntegrationServices.spaces, + apmSynthtraceKibanaClient: kibanaXPackApiIntegrationServices.apmSynthtraceKibanaClient, userMenu: UserMenuProvider, aceEditor: AceEditorProvider, + rules: RulesServiceProvider, sampleData: SampleDataServiceProvider, grokDebugger: GrokDebuggerProvider, searchSessions: SearchSessionsService, + ml: MachineLearningProvider, + transform: TransformProvider, }; diff --git a/x-pack/test/functional/services/ml/add_trained_models_flyout.ts b/x-pack/platform/test/functional/services/ml/add_trained_models_flyout.ts similarity index 100% rename from x-pack/test/functional/services/ml/add_trained_models_flyout.ts rename to x-pack/platform/test/functional/services/ml/add_trained_models_flyout.ts diff --git a/x-pack/test/functional/services/ml/alerting.ts b/x-pack/platform/test/functional/services/ml/alerting.ts similarity index 100% rename from x-pack/test/functional/services/ml/alerting.ts rename to x-pack/platform/test/functional/services/ml/alerting.ts diff --git a/x-pack/test/functional/services/ml/anomalies_table.ts b/x-pack/platform/test/functional/services/ml/anomalies_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/anomalies_table.ts rename to x-pack/platform/test/functional/services/ml/anomalies_table.ts diff --git a/x-pack/test/functional/services/ml/anomaly_charts.ts b/x-pack/platform/test/functional/services/ml/anomaly_charts.ts similarity index 100% rename from x-pack/test/functional/services/ml/anomaly_charts.ts rename to x-pack/platform/test/functional/services/ml/anomaly_charts.ts diff --git a/x-pack/test/functional/services/ml/anomaly_explorer.ts b/x-pack/platform/test/functional/services/ml/anomaly_explorer.ts similarity index 100% rename from x-pack/test/functional/services/ml/anomaly_explorer.ts rename to x-pack/platform/test/functional/services/ml/anomaly_explorer.ts index 7f9cc1a7e7b03..cc2b572ad7eb9 100644 --- a/x-pack/test/functional/services/ml/anomaly_explorer.ts +++ b/x-pack/platform/test/functional/services/ml/anomaly_explorer.ts @@ -8,8 +8,8 @@ import expect from '@kbn/expect'; import type { SwimlaneType } from '@kbn/ml-plugin/public/application/explorer/explorer_constants'; -import { FtrProviderContext } from '../../ftr_provider_context'; import type { CreateCaseParams } from '../cases/create'; +import { FtrProviderContext } from '../../ftr_provider_context'; import { MlAnomalyCharts } from './anomaly_charts'; export function MachineLearningAnomalyExplorerProvider( diff --git a/x-pack/test/functional/services/ml/api.ts b/x-pack/platform/test/functional/services/ml/api.ts similarity index 100% rename from x-pack/test/functional/services/ml/api.ts rename to x-pack/platform/test/functional/services/ml/api.ts diff --git a/x-pack/test/functional/services/ml/cases.ts b/x-pack/platform/test/functional/services/ml/cases.ts similarity index 100% rename from x-pack/test/functional/services/ml/cases.ts rename to x-pack/platform/test/functional/services/ml/cases.ts diff --git a/x-pack/test/functional/services/ml/common_api.ts b/x-pack/platform/test/functional/services/ml/common_api.ts similarity index 100% rename from x-pack/test/functional/services/ml/common_api.ts rename to x-pack/platform/test/functional/services/ml/common_api.ts diff --git a/x-pack/test/functional/services/ml/common_config.ts b/x-pack/platform/test/functional/services/ml/common_config.ts similarity index 100% rename from x-pack/test/functional/services/ml/common_config.ts rename to x-pack/platform/test/functional/services/ml/common_config.ts diff --git a/x-pack/test/functional/services/ml/common_data_grid.ts b/x-pack/platform/test/functional/services/ml/common_data_grid.ts similarity index 100% rename from x-pack/test/functional/services/ml/common_data_grid.ts rename to x-pack/platform/test/functional/services/ml/common_data_grid.ts diff --git a/x-pack/test/functional/services/ml/common_table_service.ts b/x-pack/platform/test/functional/services/ml/common_table_service.ts similarity index 100% rename from x-pack/test/functional/services/ml/common_table_service.ts rename to x-pack/platform/test/functional/services/ml/common_table_service.ts diff --git a/x-pack/test/functional/services/ml/common_ui.ts b/x-pack/platform/test/functional/services/ml/common_ui.ts similarity index 100% rename from x-pack/test/functional/services/ml/common_ui.ts rename to x-pack/platform/test/functional/services/ml/common_ui.ts diff --git a/x-pack/test/functional/services/ml/custom_urls.ts b/x-pack/platform/test/functional/services/ml/custom_urls.ts similarity index 100% rename from x-pack/test/functional/services/ml/custom_urls.ts rename to x-pack/platform/test/functional/services/ml/custom_urls.ts diff --git a/x-pack/test/functional/services/ml/dashboard_embeddables.ts b/x-pack/platform/test/functional/services/ml/dashboard_embeddables.ts similarity index 100% rename from x-pack/test/functional/services/ml/dashboard_embeddables.ts rename to x-pack/platform/test/functional/services/ml/dashboard_embeddables.ts diff --git a/x-pack/test/functional/services/ml/dashboard_job_selection_table.ts b/x-pack/platform/test/functional/services/ml/dashboard_job_selection_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/dashboard_job_selection_table.ts rename to x-pack/platform/test/functional/services/ml/dashboard_job_selection_table.ts diff --git a/x-pack/test/functional/services/ml/data_drift.ts b/x-pack/platform/test/functional/services/ml/data_drift.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_drift.ts rename to x-pack/platform/test/functional/services/ml/data_drift.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics_creation.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics_creation.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics_creation.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics_creation.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics_edit.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics_edit.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics_edit.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics_edit.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics_map.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics_map.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics_map.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics_map.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics_results.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics_results.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics_results.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics_results.ts diff --git a/x-pack/test/functional/services/ml/data_frame_analytics_table.ts b/x-pack/platform/test/functional/services/ml/data_frame_analytics_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_frame_analytics_table.ts rename to x-pack/platform/test/functional/services/ml/data_frame_analytics_table.ts diff --git a/x-pack/test/functional/services/ml/data_visualizer.ts b/x-pack/platform/test/functional/services/ml/data_visualizer.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_visualizer.ts rename to x-pack/platform/test/functional/services/ml/data_visualizer.ts diff --git a/x-pack/test/functional/services/ml/data_visualizer_file_based.ts b/x-pack/platform/test/functional/services/ml/data_visualizer_file_based.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_visualizer_file_based.ts rename to x-pack/platform/test/functional/services/ml/data_visualizer_file_based.ts diff --git a/x-pack/test/functional/services/ml/data_visualizer_index_based.ts b/x-pack/platform/test/functional/services/ml/data_visualizer_index_based.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_visualizer_index_based.ts rename to x-pack/platform/test/functional/services/ml/data_visualizer_index_based.ts diff --git a/x-pack/test/functional/services/ml/data_visualizer_index_pattern_management.ts b/x-pack/platform/test/functional/services/ml/data_visualizer_index_pattern_management.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_visualizer_index_pattern_management.ts rename to x-pack/platform/test/functional/services/ml/data_visualizer_index_pattern_management.ts diff --git a/x-pack/test/functional/services/ml/data_visualizer_table.ts b/x-pack/platform/test/functional/services/ml/data_visualizer_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/data_visualizer_table.ts rename to x-pack/platform/test/functional/services/ml/data_visualizer_table.ts diff --git a/x-pack/test/functional/services/ml/deploy_models_flyout.ts b/x-pack/platform/test/functional/services/ml/deploy_models_flyout.ts similarity index 100% rename from x-pack/test/functional/services/ml/deploy_models_flyout.ts rename to x-pack/platform/test/functional/services/ml/deploy_models_flyout.ts diff --git a/x-pack/test/functional/services/ml/field_stats_flyout.ts b/x-pack/platform/test/functional/services/ml/field_stats_flyout.ts similarity index 100% rename from x-pack/test/functional/services/ml/field_stats_flyout.ts rename to x-pack/platform/test/functional/services/ml/field_stats_flyout.ts diff --git a/x-pack/test/functional/services/ml/forecast.ts b/x-pack/platform/test/functional/services/ml/forecast.ts similarity index 100% rename from x-pack/test/functional/services/ml/forecast.ts rename to x-pack/platform/test/functional/services/ml/forecast.ts diff --git a/x-pack/test/functional/services/ml/index.ts b/x-pack/platform/test/functional/services/ml/index.ts similarity index 100% rename from x-pack/test/functional/services/ml/index.ts rename to x-pack/platform/test/functional/services/ml/index.ts diff --git a/x-pack/test/functional/services/ml/job_annotations_table.ts b/x-pack/platform/test/functional/services/ml/job_annotations_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_annotations_table.ts rename to x-pack/platform/test/functional/services/ml/job_annotations_table.ts diff --git a/x-pack/test/functional/services/ml/job_expanded_details.ts b/x-pack/platform/test/functional/services/ml/job_expanded_details.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_expanded_details.ts rename to x-pack/platform/test/functional/services/ml/job_expanded_details.ts diff --git a/x-pack/test/functional/services/ml/job_management.ts b/x-pack/platform/test/functional/services/ml/job_management.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_management.ts rename to x-pack/platform/test/functional/services/ml/job_management.ts diff --git a/x-pack/test/functional/services/ml/job_selection.ts b/x-pack/platform/test/functional/services/ml/job_selection.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_selection.ts rename to x-pack/platform/test/functional/services/ml/job_selection.ts diff --git a/x-pack/test/functional/services/ml/job_source_selection.ts b/x-pack/platform/test/functional/services/ml/job_source_selection.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_source_selection.ts rename to x-pack/platform/test/functional/services/ml/job_source_selection.ts diff --git a/x-pack/test/functional/services/ml/job_table.ts b/x-pack/platform/test/functional/services/ml/job_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_table.ts rename to x-pack/platform/test/functional/services/ml/job_table.ts diff --git a/x-pack/test/functional/services/ml/job_type_selection.ts b/x-pack/platform/test/functional/services/ml/job_type_selection.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_type_selection.ts rename to x-pack/platform/test/functional/services/ml/job_type_selection.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_advanced.ts b/x-pack/platform/test/functional/services/ml/job_wizard_advanced.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_advanced.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_advanced.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_categorization.ts b/x-pack/platform/test/functional/services/ml/job_wizard_categorization.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_categorization.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_categorization.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_common.ts b/x-pack/platform/test/functional/services/ml/job_wizard_common.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_common.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_common.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_geo.ts b/x-pack/platform/test/functional/services/ml/job_wizard_geo.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_geo.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_geo.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_multi_metric.ts b/x-pack/platform/test/functional/services/ml/job_wizard_multi_metric.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_multi_metric.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_multi_metric.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_population.ts b/x-pack/platform/test/functional/services/ml/job_wizard_population.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_population.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_population.ts diff --git a/x-pack/test/functional/services/ml/job_wizard_recognizer.ts b/x-pack/platform/test/functional/services/ml/job_wizard_recognizer.ts similarity index 100% rename from x-pack/test/functional/services/ml/job_wizard_recognizer.ts rename to x-pack/platform/test/functional/services/ml/job_wizard_recognizer.ts diff --git a/x-pack/test/functional/services/ml/lens_visualizations.ts b/x-pack/platform/test/functional/services/ml/lens_visualizations.ts similarity index 100% rename from x-pack/test/functional/services/ml/lens_visualizations.ts rename to x-pack/platform/test/functional/services/ml/lens_visualizations.ts diff --git a/x-pack/test/functional/services/ml/memory_usage.ts b/x-pack/platform/test/functional/services/ml/memory_usage.ts similarity index 100% rename from x-pack/test/functional/services/ml/memory_usage.ts rename to x-pack/platform/test/functional/services/ml/memory_usage.ts diff --git a/x-pack/test/functional/services/ml/ml_nodes_list.ts b/x-pack/platform/test/functional/services/ml/ml_nodes_list.ts similarity index 100% rename from x-pack/test/functional/services/ml/ml_nodes_list.ts rename to x-pack/platform/test/functional/services/ml/ml_nodes_list.ts diff --git a/x-pack/test/functional/services/ml/navigation.ts b/x-pack/platform/test/functional/services/ml/navigation.ts similarity index 100% rename from x-pack/test/functional/services/ml/navigation.ts rename to x-pack/platform/test/functional/services/ml/navigation.ts diff --git a/x-pack/test/functional/services/ml/notifications.ts b/x-pack/platform/test/functional/services/ml/notifications.ts similarity index 100% rename from x-pack/test/functional/services/ml/notifications.ts rename to x-pack/platform/test/functional/services/ml/notifications.ts diff --git a/x-pack/test/functional/services/ml/overview_page.ts b/x-pack/platform/test/functional/services/ml/overview_page.ts similarity index 100% rename from x-pack/test/functional/services/ml/overview_page.ts rename to x-pack/platform/test/functional/services/ml/overview_page.ts diff --git a/x-pack/test/functional/services/ml/security_common.ts b/x-pack/platform/test/functional/services/ml/security_common.ts similarity index 100% rename from x-pack/test/functional/services/ml/security_common.ts rename to x-pack/platform/test/functional/services/ml/security_common.ts diff --git a/x-pack/test/functional/services/ml/security_ui.ts b/x-pack/platform/test/functional/services/ml/security_ui.ts similarity index 100% rename from x-pack/test/functional/services/ml/security_ui.ts rename to x-pack/platform/test/functional/services/ml/security_ui.ts diff --git a/x-pack/test/functional/services/ml/settings.ts b/x-pack/platform/test/functional/services/ml/settings.ts similarity index 100% rename from x-pack/test/functional/services/ml/settings.ts rename to x-pack/platform/test/functional/services/ml/settings.ts diff --git a/x-pack/test/functional/services/ml/settings_calendar.ts b/x-pack/platform/test/functional/services/ml/settings_calendar.ts similarity index 100% rename from x-pack/test/functional/services/ml/settings_calendar.ts rename to x-pack/platform/test/functional/services/ml/settings_calendar.ts diff --git a/x-pack/test/functional/services/ml/settings_filter_list.ts b/x-pack/platform/test/functional/services/ml/settings_filter_list.ts similarity index 100% rename from x-pack/test/functional/services/ml/settings_filter_list.ts rename to x-pack/platform/test/functional/services/ml/settings_filter_list.ts diff --git a/x-pack/test/functional/services/ml/single_metric_viewer.ts b/x-pack/platform/test/functional/services/ml/single_metric_viewer.ts similarity index 100% rename from x-pack/test/functional/services/ml/single_metric_viewer.ts rename to x-pack/platform/test/functional/services/ml/single_metric_viewer.ts diff --git a/x-pack/test/functional/services/ml/stack_management_jobs.ts b/x-pack/platform/test/functional/services/ml/stack_management_jobs.ts similarity index 100% rename from x-pack/test/functional/services/ml/stack_management_jobs.ts rename to x-pack/platform/test/functional/services/ml/stack_management_jobs.ts diff --git a/x-pack/test/functional/services/ml/supplied_configurations.ts b/x-pack/platform/test/functional/services/ml/supplied_configurations.ts similarity index 100% rename from x-pack/test/functional/services/ml/supplied_configurations.ts rename to x-pack/platform/test/functional/services/ml/supplied_configurations.ts diff --git a/x-pack/test/functional/services/ml/swim_lane.ts b/x-pack/platform/test/functional/services/ml/swim_lane.ts similarity index 100% rename from x-pack/test/functional/services/ml/swim_lane.ts rename to x-pack/platform/test/functional/services/ml/swim_lane.ts diff --git a/x-pack/test/functional/services/ml/test_execution.ts b/x-pack/platform/test/functional/services/ml/test_execution.ts similarity index 100% rename from x-pack/test/functional/services/ml/test_execution.ts rename to x-pack/platform/test/functional/services/ml/test_execution.ts diff --git a/x-pack/test/functional/services/ml/test_resources.ts b/x-pack/platform/test/functional/services/ml/test_resources.ts similarity index 100% rename from x-pack/test/functional/services/ml/test_resources.ts rename to x-pack/platform/test/functional/services/ml/test_resources.ts diff --git a/x-pack/test/functional/services/ml/test_resources_data.ts b/x-pack/platform/test/functional/services/ml/test_resources_data.ts similarity index 100% rename from x-pack/test/functional/services/ml/test_resources_data.ts rename to x-pack/platform/test/functional/services/ml/test_resources_data.ts diff --git a/x-pack/test/functional/services/ml/trained_models.ts b/x-pack/platform/test/functional/services/ml/trained_models.ts similarity index 100% rename from x-pack/test/functional/services/ml/trained_models.ts rename to x-pack/platform/test/functional/services/ml/trained_models.ts diff --git a/x-pack/test/functional/services/ml/trained_models_table.ts b/x-pack/platform/test/functional/services/ml/trained_models_table.ts similarity index 100% rename from x-pack/test/functional/services/ml/trained_models_table.ts rename to x-pack/platform/test/functional/services/ml/trained_models_table.ts diff --git a/x-pack/test/functional/services/rules/api.ts b/x-pack/platform/test/functional/services/rules/api.ts similarity index 100% rename from x-pack/test/functional/services/rules/api.ts rename to x-pack/platform/test/functional/services/rules/api.ts diff --git a/x-pack/test/functional/services/rules/common.ts b/x-pack/platform/test/functional/services/rules/common.ts similarity index 100% rename from x-pack/test/functional/services/rules/common.ts rename to x-pack/platform/test/functional/services/rules/common.ts diff --git a/x-pack/test/functional/services/rules/index.ts b/x-pack/platform/test/functional/services/rules/index.ts similarity index 100% rename from x-pack/test/functional/services/rules/index.ts rename to x-pack/platform/test/functional/services/rules/index.ts diff --git a/x-pack/test/functional/services/transform/alerting.ts b/x-pack/platform/test/functional/services/transform/alerting.ts similarity index 100% rename from x-pack/test/functional/services/transform/alerting.ts rename to x-pack/platform/test/functional/services/transform/alerting.ts diff --git a/x-pack/test/functional/services/transform/api.ts b/x-pack/platform/test/functional/services/transform/api.ts similarity index 100% rename from x-pack/test/functional/services/transform/api.ts rename to x-pack/platform/test/functional/services/transform/api.ts diff --git a/x-pack/test/functional/services/transform/date_picker.ts b/x-pack/platform/test/functional/services/transform/date_picker.ts similarity index 100% rename from x-pack/test/functional/services/transform/date_picker.ts rename to x-pack/platform/test/functional/services/transform/date_picker.ts diff --git a/x-pack/test/functional/services/transform/discover.ts b/x-pack/platform/test/functional/services/transform/discover.ts similarity index 100% rename from x-pack/test/functional/services/transform/discover.ts rename to x-pack/platform/test/functional/services/transform/discover.ts diff --git a/x-pack/test/functional/services/transform/edit_flyout.ts b/x-pack/platform/test/functional/services/transform/edit_flyout.ts similarity index 100% rename from x-pack/test/functional/services/transform/edit_flyout.ts rename to x-pack/platform/test/functional/services/transform/edit_flyout.ts diff --git a/x-pack/test/functional/services/transform/index.ts b/x-pack/platform/test/functional/services/transform/index.ts similarity index 100% rename from x-pack/test/functional/services/transform/index.ts rename to x-pack/platform/test/functional/services/transform/index.ts diff --git a/x-pack/test/functional/services/transform/management.ts b/x-pack/platform/test/functional/services/transform/management.ts similarity index 100% rename from x-pack/test/functional/services/transform/management.ts rename to x-pack/platform/test/functional/services/transform/management.ts diff --git a/x-pack/test/functional/services/transform/navigation.ts b/x-pack/platform/test/functional/services/transform/navigation.ts similarity index 100% rename from x-pack/test/functional/services/transform/navigation.ts rename to x-pack/platform/test/functional/services/transform/navigation.ts diff --git a/x-pack/test/functional/services/transform/security_common.ts b/x-pack/platform/test/functional/services/transform/security_common.ts similarity index 100% rename from x-pack/test/functional/services/transform/security_common.ts rename to x-pack/platform/test/functional/services/transform/security_common.ts diff --git a/x-pack/test/functional/services/transform/security_ui.ts b/x-pack/platform/test/functional/services/transform/security_ui.ts similarity index 100% rename from x-pack/test/functional/services/transform/security_ui.ts rename to x-pack/platform/test/functional/services/transform/security_ui.ts diff --git a/x-pack/test/functional/services/transform/source_selection.ts b/x-pack/platform/test/functional/services/transform/source_selection.ts similarity index 100% rename from x-pack/test/functional/services/transform/source_selection.ts rename to x-pack/platform/test/functional/services/transform/source_selection.ts diff --git a/x-pack/test/functional/services/transform/test_execution.ts b/x-pack/platform/test/functional/services/transform/test_execution.ts similarity index 100% rename from x-pack/test/functional/services/transform/test_execution.ts rename to x-pack/platform/test/functional/services/transform/test_execution.ts diff --git a/x-pack/test/functional/services/transform/transform_table.ts b/x-pack/platform/test/functional/services/transform/transform_table.ts similarity index 100% rename from x-pack/test/functional/services/transform/transform_table.ts rename to x-pack/platform/test/functional/services/transform/transform_table.ts diff --git a/x-pack/test/functional/services/transform/wizard.ts b/x-pack/platform/test/functional/services/transform/wizard.ts similarity index 100% rename from x-pack/test/functional/services/transform/wizard.ts rename to x-pack/platform/test/functional/services/transform/wizard.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/basic/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/basic/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/basic/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/basic/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/basic/list_view.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/list_view.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/basic/list_view.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/basic/list_view.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/common/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/common/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/common/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/common/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/common/roles.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/common/roles.ts similarity index 95% rename from x-pack/test/functional_with_es_ssl/apps/cases/common/roles.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/common/roles.ts index f3085399ddba1..8ea678f386de5 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/common/roles.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/common/roles.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Role } from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication/types'; +import { Role } from '../../../../cases_api_integration/common/lib/authentication/types'; /** * Roles for Cases in the stack diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/common/users.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/common/users.ts similarity index 91% rename from x-pack/test/functional_with_es_ssl/apps/cases/common/users.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/common/users.ts index 6a3fd4239ca7c..8964f414662fc 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/common/users.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/common/users.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { User } from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication/types'; +import { User } from '../../../../cases_api_integration/common/lib/authentication/types'; import { casesAll, casesNoDelete, casesReadDelete, casesReadAndEditSettings } from './roles'; /** diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts similarity index 98% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts index dcd7b5c754036..935a5635fd6ff 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/create_case_form.ts @@ -11,7 +11,7 @@ import { CaseSeverity, CustomFieldTypes } from '@kbn/cases-plugin/common/types/d import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { users, roles, casesAllUser, casesAllUser2 } from '../common'; diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/elastic_logo.png b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/elastic_logo.png similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/elastic_logo.png rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/elastic_logo.png diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts similarity index 98% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts index b8ca9583fc444..c6b1ee2e2570b 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/sub_privileges.ts @@ -9,7 +9,7 @@ import expect from '@kbn/expect'; import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { users, diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group1/view_case.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/view_case.ts similarity index 99% rename from x-pack/test/functional_with_es_ssl/apps/cases/group1/view_case.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/view_case.ts index 5cc56ee5eee32..dc9c3d6d09fa2 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group1/view_case.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/view_case.ts @@ -18,7 +18,7 @@ import { setTimeout as setTimeoutAsync } from 'timers/promises'; import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { users, roles, casesAllUser, casesAllUser2 } from '../common'; diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts similarity index 98% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts index 3bd9d28e8560c..09509ea45b88d 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/attachment_framework.ts @@ -21,7 +21,7 @@ import { findAttachments, findCaseUserActions, findCases, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/api'; +} from '../../../../cases_api_integration/common/lib/api'; import { FtrProviderContext } from '../../../ftr_provider_context'; const ADD_TO_EXISTING_CASE_DATA_TEST_SUBJ = 'embeddablePanelAction-embeddable_addToExistingCase'; @@ -93,7 +93,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { /** * Attachment types are being registered in - * x-pack/test/functional_with_es_ssl/plugins/cases/public/plugin.ts + * x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/plugin.ts */ describe('Attachment framework', () => { describe('External reference attachments', () => { @@ -204,7 +204,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); /** - * The UI of the cases fixture plugin is in x-pack/test/functional_with_es_ssl/plugins/cases/public/application.tsx + * The UI of the cases fixture plugin is in x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/application.tsx */ describe('Attachment hooks', () => { const TOTAL_OWNERS = ['cases', 'securitySolution', 'observability']; diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/configure.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/configure.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/configure.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/configure.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/list_view.ts similarity index 99% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/list_view.ts index 0eb5606c319d2..899edffda2e8c 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/list_view.ts @@ -16,7 +16,7 @@ import { UserProfile } from '@kbn/user-profile-components'; import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { users, roles, casesAllUser, casesAllUser2 } from '../common'; diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts similarity index 99% rename from x-pack/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts index c89345286c765..a88f8c617c0a3 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts @@ -9,7 +9,7 @@ import expect from '@kbn/expect'; import { getExternalServiceSimulatorPath, ExternalServiceSimulator, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default ({ getPageObject, getService }: FtrProviderContext) => { diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts similarity index 84% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts index fc51ae51a2be7..464af69aa7f8d 100644 --- a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/config.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts @@ -20,13 +20,9 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { '--uiSettings.overrides.observability:enableLegacyUptimeApp=true', ], }, - testFiles: [ - resolve(__dirname, './discover'), - resolve(__dirname, './uptime'), - resolve(__dirname, './ml'), - ], + testFiles: [resolve(__dirname, './discover'), resolve(__dirname, './ml')], junit: { - reportName: 'Chrome X-Pack UI Functional Tests with ES SSL - Discover, Uptime, ML', + reportName: 'Chrome X-Pack UI Functional Tests with ES SSL - Discover, ML', }, }; } diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/discover/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/discover/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/discover/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/discover/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/discover/search_source_alert.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/discover/search_source_alert.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/discover/search_source_alert.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/discover/search_source_alert.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/ml/alert_flyout.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/ml/alert_flyout.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/ml/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/ml/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/embeddable_alerts_table.ts b/x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/embeddable_alerts_table.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/embeddable_alerts_table.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/embeddable_alerts_table.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/embeddable_alerts_table/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/embeddable_alerts_table/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts similarity index 99% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts index 7496381f65214..bbb888d83913b 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts @@ -10,7 +10,7 @@ import { asyncForEach } from '@kbn/std'; import { omit } from 'lodash'; import { apm, timerange } from '@kbn/apm-synthtrace-client'; import { ApmSynthtraceEsClient } from '@kbn/apm-synthtrace'; -import { getApmSynthtraceEsClient } from '../../../common/utils/synthtrace/apm_es_client'; +import { getApmSynthtraceEsClient } from '../../lib/apm_es_client'; import { FtrProviderContext } from '../../ftr_provider_context'; import { generateUniqueKey } from '../../lib/get_test_data'; diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts similarity index 97% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts index 90e4cd68cdeb0..b82cbd5e52a62 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_deletion.ts @@ -21,7 +21,7 @@ import { inactiveSecurityAlertsOlderThan90, inactiveStackAlertsNewerThan90, inactiveStackAlertsOlderThan90, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/alert_deletion_test_utils'; +} from '../../../alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/alert_deletion_test_utils'; import { FtrProviderContext } from '../../ftr_provider_context'; import { ObjectRemover } from '../../lib/object_remover'; diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/general.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/general.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/general.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/general.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/jira.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/jira.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/jira.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/jira.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/opsgenie.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/opsgenie.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/opsgenie.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/opsgenie.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/slack.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/slack.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/slack.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/slack.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts similarity index 98% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts index 41a00964280b1..5ee8d0e3b4954 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/tines.ts @@ -9,11 +9,11 @@ import expect from '@kbn/expect'; import { tinesAgentWebhook, tinesStory1, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { ExternalServiceSimulator, getExternalServiceSimulatorPath, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { ObjectRemover } from '../../../lib/object_remover'; import { generateUniqueKey } from '../../../lib/get_test_data'; diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/utils.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/utils.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/utils.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/utils.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/webhook.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/webhook.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/webhook.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/webhook_disabled_ssl_pfx/webhook.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/email.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/email.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/email.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/email.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts similarity index 72% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts index a495a27fc7229..e0fe99620cdb0 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_aws_ses_kbn_config/index.ts @@ -5,11 +5,11 @@ * 2.0. */ -import type { FtrProviderContext } from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/ftr_provider_context'; +import type { FtrProviderContext } from '../../../../../alerting_api_integration/common/ftr_provider_context'; import { buildUp, tearDown, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/spaces_only/tests/helpers'; +} from '../../../../../alerting_api_integration/spaces_only/tests/helpers'; export default function actionsTests({ loadTestFile, getService }: FtrProviderContext) { describe('Connectors with AWS SES Kibana config', () => { diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/email.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/email.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/email.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/email.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts similarity index 72% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts index 2918bddabb716..202d434d2e304 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors/with_email_services_enabled_kbn_config/index.ts @@ -5,11 +5,11 @@ * 2.0. */ -import type { FtrProviderContext } from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/ftr_provider_context'; +import type { FtrProviderContext } from '../../../../../alerting_api_integration/common/ftr_provider_context'; import { buildUp, tearDown, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/spaces_only/tests/helpers'; +} from '../../../../../alerting_api_integration/spaces_only/tests/helpers'; export default function actionsTests({ loadTestFile, getService }: FtrProviderContext) { describe('Connectors with email services enabled Kibana config', () => { diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/details.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/details.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/details.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/details.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/email.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/email.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/email.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/email.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts similarity index 93% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts index ff6e1b4249955..3324b392990ad 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/logs_list.ts @@ -6,14 +6,11 @@ */ import expect from '@kbn/expect'; -import { - Role, - User, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication/types'; +import { Role, User } from '../../../cases_api_integration/common/lib/authentication/types'; import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../ftr_provider_context'; const SPACE2 = { diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_create_form.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_create_form.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_create_form.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_create_form.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_update_form.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_update_form.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_update_form.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_window_update_form.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_windows_table.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_windows_table.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_windows_table.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/maintenance_windows_table.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/utils.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/utils.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/utils.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/maintenance_windows/utils.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/bulk_actions.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/bulk_actions.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/bulk_actions.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/bulk_actions.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/rules_list.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/rules_list.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/rules_list.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_list/rules_list.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_settings.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_settings.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_settings.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/rules_settings.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/config.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts similarity index 96% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts index 58b89ba876c6f..865d5d1c8258b 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/global_rule_event_log_list.ts @@ -7,15 +7,12 @@ import expect from '@kbn/expect'; import { asyncForEach } from '@kbn/std'; -import { getUrlPrefix } from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib'; -import { - Role, - User, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication/types'; +import { getUrlPrefix } from '../../../../alerting_api_integration/common/lib'; +import { Role, User } from '../../../../cases_api_integration/common/lib/authentication/types'; import { createUsersAndRoles, deleteUsersAndRoles, -} from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/authentication'; +} from '../../../../cases_api_integration/common/lib/authentication'; import { FtrProviderContext } from '../../../ftr_provider_context'; import { getTestAlertData } from '../../../lib/get_test_data'; diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/index.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/shared/index.ts diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts b/x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts rename to x-pack/platform/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts diff --git a/x-pack/test/functional_with_es_ssl/config.base.ts b/x-pack/platform/test/functional_with_es_ssl/config.base.ts similarity index 94% rename from x-pack/test/functional_with_es_ssl/config.base.ts rename to x-pack/platform/test/functional_with_es_ssl/config.base.ts index 81f530b28f7dc..ca763af19bc13 100644 --- a/x-pack/test/functional_with_es_ssl/config.base.ts +++ b/x-pack/platform/test/functional_with_es_ssl/config.base.ts @@ -9,7 +9,7 @@ import Fs from 'fs'; import { join } from 'path'; import { CA_CERT_PATH } from '@kbn/dev-utils'; import { FtrConfigProviderContext } from '@kbn/test'; -import { getAllExternalServiceSimulatorPaths } from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +import { getAllExternalServiceSimulatorPaths } from '../alerting_api_integration/common/lib/actions_simulations_utils'; import { pageObjects } from './page_objects'; // .server-log is specifically not enabled @@ -36,7 +36,7 @@ const enabledActionTypes = [ export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - require.resolve('../functional/config.base.js') + require.resolve('../functional/config.base.ts') ); const servers = { @@ -79,7 +79,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { `--plugin-path=${join(__dirname, 'plugins/cases')}`, `--plugin-path=${join( __dirname, - '../../platform/test/alerting_api_integration/common/plugins/actions_simulators' + '../alerting_api_integration/common/plugins/actions_simulators' )}`, `--xpack.trigger_actions_ui.enableExperimental=${JSON.stringify([ 'stackAlertsPage', diff --git a/x-pack/test/functional_with_es_ssl/ftr_provider_context.d.ts b/x-pack/platform/test/functional_with_es_ssl/ftr_provider_context.d.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/ftr_provider_context.d.ts rename to x-pack/platform/test/functional_with_es_ssl/ftr_provider_context.d.ts diff --git a/x-pack/test/functional_with_es_ssl/lib/alert_api_actions.ts b/x-pack/platform/test/functional_with_es_ssl/lib/alert_api_actions.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/lib/alert_api_actions.ts rename to x-pack/platform/test/functional_with_es_ssl/lib/alert_api_actions.ts diff --git a/x-pack/platform/test/functional_with_es_ssl/lib/apm_es_client.ts b/x-pack/platform/test/functional_with_es_ssl/lib/apm_es_client.ts new file mode 100644 index 0000000000000..932b55cafd056 --- /dev/null +++ b/x-pack/platform/test/functional_with_es_ssl/lib/apm_es_client.ts @@ -0,0 +1,26 @@ +/* + * 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 { Client } from '@elastic/elasticsearch'; +import { ApmSynthtraceEsClient, createLogger, LogLevel } from '@kbn/apm-synthtrace'; + +interface GetApmSynthtraceEsClientParams { + client: Client; + packageVersion: string; +} + +export function getApmSynthtraceEsClient({ + client, + packageVersion, +}: GetApmSynthtraceEsClientParams) { + return new ApmSynthtraceEsClient({ + client, + logger: createLogger(LogLevel.info), + version: packageVersion, + refreshAfterIndex: true, + }); +} diff --git a/x-pack/test/functional_with_es_ssl/lib/get_test_data.ts b/x-pack/platform/test/functional_with_es_ssl/lib/get_test_data.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/lib/get_test_data.ts rename to x-pack/platform/test/functional_with_es_ssl/lib/get_test_data.ts diff --git a/x-pack/test/functional_with_es_ssl/lib/object_remover.ts b/x-pack/platform/test/functional_with_es_ssl/lib/object_remover.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/lib/object_remover.ts rename to x-pack/platform/test/functional_with_es_ssl/lib/object_remover.ts diff --git a/x-pack/test/functional_with_es_ssl/page_objects/index.ts b/x-pack/platform/test/functional_with_es_ssl/page_objects/index.ts similarity index 79% rename from x-pack/test/functional_with_es_ssl/page_objects/index.ts rename to x-pack/platform/test/functional_with_es_ssl/page_objects/index.ts index 78a55a2d4f458..12438e9d8481a 100644 --- a/x-pack/test/functional_with_es_ssl/page_objects/index.ts +++ b/x-pack/platform/test/functional_with_es_ssl/page_objects/index.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { pageObjects as xpackFunctionalPageObjects } from '../../functional/page_objects'; +import { pageObjects as platformFunctionalPageObjects } from '../../functional/page_objects'; import { TriggersActionsPageProvider } from './triggers_actions_ui_page'; import { RuleDetailsPageProvider } from './rule_details'; export const pageObjects = { - ...xpackFunctionalPageObjects, + ...platformFunctionalPageObjects, triggersActionsUI: TriggersActionsPageProvider, ruleDetailsUI: RuleDetailsPageProvider, }; diff --git a/x-pack/test/functional_with_es_ssl/page_objects/rule_details.ts b/x-pack/platform/test/functional_with_es_ssl/page_objects/rule_details.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/page_objects/rule_details.ts rename to x-pack/platform/test/functional_with_es_ssl/page_objects/rule_details.ts diff --git a/x-pack/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts b/x-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts rename to x-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/kibana.jsonc b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/kibana.jsonc similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/kibana.jsonc rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/kibana.jsonc diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/package.json b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/package.json similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/package.json rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/package.json diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/public/application.tsx b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/application.tsx similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/public/application.tsx rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/application.tsx diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/public/index.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/public/index.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/index.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/public/plugin.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/plugin.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/public/plugin.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/public/plugin.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/server/index.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/server/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/server/index.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/server/index.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/server/plugin.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/server/plugin.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/server/plugin.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/server/plugin.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/alerts/tsconfig.json b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/tsconfig.json similarity index 87% rename from x-pack/test/functional_with_es_ssl/plugins/alerts/tsconfig.json rename to x-pack/platform/test/functional_with_es_ssl/plugins/alerts/tsconfig.json index e42ac17f305f3..fd7ae8469be9f 100644 --- a/x-pack/test/functional_with_es_ssl/plugins/alerts/tsconfig.json +++ b/x-pack/platform/test/functional_with_es_ssl/plugins/alerts/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/kibana.jsonc b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/kibana.jsonc similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/kibana.jsonc rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/kibana.jsonc diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/package.json b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/package.json similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/package.json rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/package.json diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/application.tsx b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/application.tsx similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/application.tsx rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/application.tsx diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/external_reference.tsx b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/external_reference.tsx similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/external_reference.tsx rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/external_reference.tsx diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/external_references_content.tsx b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/external_references_content.tsx similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/external_references_content.tsx rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/external_references_content.tsx diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/persistable_state.tsx b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/persistable_state.tsx similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/attachments/persistable_state.tsx rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/attachments/persistable_state.tsx diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/index.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/index.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/index.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/public/plugin.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/plugin.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/public/plugin.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/public/plugin.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/server/attachments/external_reference.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/attachments/external_reference.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/server/attachments/external_reference.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/attachments/external_reference.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/server/attachments/persistable_state.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/attachments/persistable_state.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/server/attachments/persistable_state.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/attachments/persistable_state.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/server/index.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/index.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/server/index.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/index.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/server/plugin.ts b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/plugin.ts similarity index 100% rename from x-pack/test/functional_with_es_ssl/plugins/cases/server/plugin.ts rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/server/plugin.ts diff --git a/x-pack/test/functional_with_es_ssl/plugins/cases/tsconfig.json b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/tsconfig.json similarity index 86% rename from x-pack/test/functional_with_es_ssl/plugins/cases/tsconfig.json rename to x-pack/platform/test/functional_with_es_ssl/plugins/cases/tsconfig.json index 0c412af65efe5..4d86c4b1f436f 100644 --- a/x-pack/test/functional_with_es_ssl/plugins/cases/tsconfig.json +++ b/x-pack/platform/test/functional_with_es_ssl/plugins/cases/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/platform/test/screenshot_creation/apps/index.ts b/x-pack/platform/test/screenshot_creation/apps/index.ts new file mode 100644 index 0000000000000..763fe31c9d9e0 --- /dev/null +++ b/x-pack/platform/test/screenshot_creation/apps/index.ts @@ -0,0 +1,16 @@ +/* + * 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('apps', function () { + loadTestFile(require.resolve('./ml_docs')); + loadTestFile(require.resolve('./response_ops_docs')); + loadTestFile(require.resolve('./transform_docs')); + }); +} diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/custom_urls.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/custom_urls.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/custom_urls.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/custom_urls.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/finding_anomalies.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/finding_anomalies.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/finding_anomalies.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/finding_anomalies.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/generate_anomaly_alerts.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/generate_anomaly_alerts.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/generate_anomaly_alerts.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/generate_anomaly_alerts.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/geographic_data.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/geographic_data.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/geographic_data.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/geographic_data.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/index.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/index.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/index.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/influencers.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/influencers.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/influencers.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/influencers.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/mapping_anomalies.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/mapping_anomalies.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/mapping_anomalies.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/anomaly_detection/mapping_anomalies.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/classification.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/classification.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/classification.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/classification.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/index.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/index.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/index.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/outlier_detection.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/outlier_detection.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/outlier_detection.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/outlier_detection.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/regression.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/regression.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/data_frame_analytics/regression.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/data_frame_analytics/regression.ts diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/index.ts b/x-pack/platform/test/screenshot_creation/apps/ml_docs/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/ml_docs/index.ts rename to x-pack/platform/test/screenshot_creation/apps/ml_docs/index.ts diff --git a/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/index.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/index.ts new file mode 100644 index 0000000000000..a8fbc13282f14 --- /dev/null +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/index.ts @@ -0,0 +1,47 @@ +/* + * 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 { esTestConfig } from '@kbn/test'; +import { FtrProviderContext } from '../../ftr_provider_context'; + +export const ECOMMERCE_INDEX_PATTERN = 'kibana_sample_data_ecommerce'; +export const FLIGHTS_INDEX_PATTERN = 'kibana_sample_data_flights'; +export const LOGS_INDEX_PATTERN = 'kibana_sample_data_logs'; + +export default function ({ getPageObject, getService, loadTestFile }: FtrProviderContext) { + const browser = getService('browser'); + const ml = getService('ml'); + const sampleData = getService('sampleData'); + const securityPage = getPageObject('security'); + + describe('response ops docs', function () { + this.tags(['responseOps']); + + before(async () => { + await sampleData.testResources.installAllKibanaSampleData(); + await ml.testResources.setKibanaTimeZoneToUTC(); + await ml.testResources.disableKibanaAnnouncements(); + await browser.setWindowSize(1920, 1080); + await securityPage.login( + esTestConfig.getUrlParts().username, + esTestConfig.getUrlParts().password + ); + }); + + after(async () => { + await securityPage.forceLogout(); + await sampleData.testResources.removeAllKibanaSampleData(); + await ml.testResources.resetKibanaTimeZone(); + await ml.testResources.resetKibanaAnnouncements(); + }); + + loadTestFile(require.resolve('./stack_alerting')); + loadTestFile(require.resolve('./stack_cases')); + loadTestFile(require.resolve('./stack_connectors')); + loadTestFile(require.resolve('./maintenance_windows')); + }); +} diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/create_window.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/create_window.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/create_window.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/create_window.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/index.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/index.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/maintenance_windows/index.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/es_query_rule.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/es_query_rule.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/es_query_rule.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/es_query_rule.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index_threshold_rule.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index_threshold_rule.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index_threshold_rule.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/index_threshold_rule.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/list_view.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/list_view.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/list_view.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/list_view.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/tracking_containment_rule.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/tracking_containment_rule.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_alerting/tracking_containment_rule.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_alerting/tracking_containment_rule.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/details_view.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/details_view.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/details_view.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/details_view.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts similarity index 87% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts index de37610e0ecaf..e9ebb8e9b2bcf 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/index.ts @@ -6,8 +6,8 @@ */ import { AttachmentType } from '@kbn/cases-plugin/common/types/domain'; -import { createAndUploadFile } from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/api'; -import { CASES_FILE_KIND } from '@kbn/test-suites-xpack-platform/cases_api_integration/common/lib/constants'; +import { createAndUploadFile } from '../../../../cases_api_integration/common/lib/api'; +import { CASES_FILE_KIND } from '../../../../cases_api_integration/common/lib/constants'; import { FtrProviderContext } from '../../../ftr_provider_context'; export const caseTitle = 'Web transactions'; diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/list_view.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/list_view.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/list_view.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/list_view.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/settings.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/settings.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/settings.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_cases/settings.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/bedrock_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/bedrock_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/bedrock_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/bedrock_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/cases_webhook_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/cases_webhook_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/cases_webhook_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/cases_webhook_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/connectors.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/connectors.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/connectors.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/connectors.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts similarity index 95% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts index 9217c94cee73f..678d20aada795 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/crowdstrike_connector.ts @@ -8,7 +8,7 @@ import { ExternalServiceSimulator, getExternalServiceSimulatorPath, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/email_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/email_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/email_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/email_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/generative_ai_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/generative_ai_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/generative_ai_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/generative_ai_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts similarity index 96% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts index 017075136ba1b..51e4ec394e79d 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/ibm_resilient_connector.ts @@ -8,7 +8,7 @@ import { getExternalServiceSimulatorPath, ExternalServiceSimulator, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/index_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/jira_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/jira_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/jira_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/jira_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/microsoft_teams_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/microsoft_teams_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/microsoft_teams_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/microsoft_teams_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/opsgenie_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/opsgenie_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/opsgenie_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/opsgenie_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/pagerduty_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/pagerduty_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/pagerduty_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/pagerduty_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts similarity index 95% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts index b6933443b9d6b..63464fb50a743 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/sentinelone_connector.ts @@ -8,7 +8,7 @@ import { ExternalServiceSimulator, getExternalServiceSimulatorPath, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/server_log_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/server_log_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/server_log_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/server_log_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itom_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itom_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itom_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itom_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itsm_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itsm_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itsm_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itsm_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_sir_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_sir_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_sir_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_sir_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts similarity index 95% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts index d055ee4624242..60d6f6598914e 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/thehive_connector.ts @@ -8,7 +8,7 @@ import { ExternalServiceSimulator, getExternalServiceSimulatorPath, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts similarity index 95% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts index a123e4578107d..0cc455cd97b2f 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts +++ b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/tines_connector.ts @@ -8,7 +8,7 @@ import { ExternalServiceSimulator, getExternalServiceSimulatorPath, -} from '@kbn/test-suites-xpack-platform/alerting_api_integration/common/lib/actions_simulations_utils'; +} from '../../../../alerting_api_integration/common/lib/actions_simulations_utils'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/webhook_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/webhook_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/webhook_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/webhook_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/xmatters_connector.ts b/x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/xmatters_connector.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/xmatters_connector.ts rename to x-pack/platform/test/screenshot_creation/apps/response_ops_docs/stack_connectors/xmatters_connector.ts diff --git a/x-pack/test/screenshot_creation/apps/transform_docs/index.ts b/x-pack/platform/test/screenshot_creation/apps/transform_docs/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/transform_docs/index.ts rename to x-pack/platform/test/screenshot_creation/apps/transform_docs/index.ts diff --git a/x-pack/test/screenshot_creation/apps/transform_docs/transform_alerts.ts b/x-pack/platform/test/screenshot_creation/apps/transform_docs/transform_alerts.ts similarity index 100% rename from x-pack/test/screenshot_creation/apps/transform_docs/transform_alerts.ts rename to x-pack/platform/test/screenshot_creation/apps/transform_docs/transform_alerts.ts diff --git a/x-pack/platform/test/screenshot_creation/config.ts b/x-pack/platform/test/screenshot_creation/config.ts new file mode 100644 index 0000000000000..cc2534e8a9e7e --- /dev/null +++ b/x-pack/platform/test/screenshot_creation/config.ts @@ -0,0 +1,53 @@ +/* + * 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 Fs from 'fs'; +import { CA_CERT_PATH } from '@kbn/dev-utils'; +import { FtrConfigProviderContext } from '@kbn/test'; +import { pageObjects } from './page_objects'; +import { services } from './services'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const xpackFunctionalConfig = await readConfigFile( + require.resolve('../functional/config.base.ts') + ); + + const servers = { + ...xpackFunctionalConfig.get('servers'), + elasticsearch: { + ...xpackFunctionalConfig.get('servers.elasticsearch'), + protocol: 'https', + certificateAuthorities: [Fs.readFileSync(CA_CERT_PATH)], + }, + }; + + return { + // default to the xpack functional config + ...xpackFunctionalConfig.getAll(), + servers, + pageObjects, + services, + testFiles: [require.resolve('./apps')], + junit: { + ...xpackFunctionalConfig.get('junit'), + reportName: 'Chrome X-Pack UI Screenshot Creation', + }, + esTestCluster: { + ...xpackFunctionalConfig.get('esTestCluster'), + ssl: true, + }, + kbnTestServer: { + ...xpackFunctionalConfig.get('kbnTestServer'), + serverArgs: [ + ...xpackFunctionalConfig.get('kbnTestServer.serverArgs'), + `--elasticsearch.hosts=https://${servers.elasticsearch.hostname}:${servers.elasticsearch.port}`, + `--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`, + `--xpack.alerting.rules.minimumScheduleInterval.value="2s"`, + ], + }, + }; +} diff --git a/x-pack/platform/test/screenshot_creation/ftr_provider_context.d.ts b/x-pack/platform/test/screenshot_creation/ftr_provider_context.d.ts new file mode 100644 index 0000000000000..24f5087ef7fe2 --- /dev/null +++ b/x-pack/platform/test/screenshot_creation/ftr_provider_context.d.ts @@ -0,0 +1,13 @@ +/* + * 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 { GenericFtrProviderContext } from '@kbn/test'; + +import { pageObjects } from './page_objects'; +import { services } from './services'; + +export type FtrProviderContext = GenericFtrProviderContext; diff --git a/x-pack/test/screenshot_creation/page_objects/index.ts b/x-pack/platform/test/screenshot_creation/page_objects/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/page_objects/index.ts rename to x-pack/platform/test/screenshot_creation/page_objects/index.ts diff --git a/x-pack/test/screenshot_creation/services/common_screenshots.ts b/x-pack/platform/test/screenshot_creation/services/common_screenshots.ts similarity index 100% rename from x-pack/test/screenshot_creation/services/common_screenshots.ts rename to x-pack/platform/test/screenshot_creation/services/common_screenshots.ts diff --git a/x-pack/test/screenshot_creation/services/index.ts b/x-pack/platform/test/screenshot_creation/services/index.ts similarity index 100% rename from x-pack/test/screenshot_creation/services/index.ts rename to x-pack/platform/test/screenshot_creation/services/index.ts diff --git a/x-pack/platform/test/tsconfig.json b/x-pack/platform/test/tsconfig.json index 358f61587b6c0..61bf43003a3e3 100644 --- a/x-pack/platform/test/tsconfig.json +++ b/x-pack/platform/test/tsconfig.json @@ -127,6 +127,13 @@ "@kbn/core-provider-plugin", "@kbn/reporting-plugin", "@kbn/kibana-usage-collection-plugin", + "@kbn/aiops-change-point-detection", + "@kbn/aiops-plugin", + "@kbn/ml-category-validator", + "@kbn/response-ops-alerts-filters-form", + "@kbn/embeddable-alerts-table-plugin", + "@kbn/apm-synthtrace-client", + "@kbn/apm-synthtrace", "@kbn/cloud-integration-saml-provider-plugin", "@kbn/ci-stats-reporter", ] diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/model_and_inference.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/model_and_inference.ts index a2ebb2c906572..5acfe03d4c61a 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/model_and_inference.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/model_and_inference.ts @@ -10,8 +10,8 @@ import { ToolingLog } from '@kbn/tooling-log'; import { InferenceTaskType } from '@elastic/elasticsearch/lib/api/types'; import pRetry, { AbortError } from 'p-retry'; import pTimeout, { TimeoutError } from 'p-timeout'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { DeploymentAgnosticFtrProviderContext } from '../../../../ftr_provider_context'; -import { SUPPORTED_TRAINED_MODELS } from '../../../../../../functional/services/ml/api'; import { setupKnowledgeBase, waitForKnowledgeBaseReady } from './knowledge_base'; // tiny models diff --git a/x-pack/test/api_integration/services/aiops.ts b/x-pack/test/api_integration/services/aiops.ts deleted file mode 100644 index a7e6a7cc98304..0000000000000 --- a/x-pack/test/api_integration/services/aiops.ts +++ /dev/null @@ -1,18 +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 '../../functional/ftr_provider_context'; - -import { LogRateAnalysisDataGeneratorProvider } from '../../functional/services/aiops/log_rate_analysis_data_generator'; - -export function AiopsProvider(context: FtrProviderContext) { - const logRateAnalysisDataGenerator = LogRateAnalysisDataGeneratorProvider(context); - - return { - logRateAnalysisDataGenerator, - }; -} diff --git a/x-pack/test/api_integration/services/index.ts b/x-pack/test/api_integration/services/index.ts index df9386a729080..c3deadfe3ad0d 100644 --- a/x-pack/test/api_integration/services/index.ts +++ b/x-pack/test/api_integration/services/index.ts @@ -14,10 +14,8 @@ import { EsSupertestWithoutAuthProvider } from './es_supertest_without_auth'; import { UsageAPIProvider } from './usage_api'; -import { AiopsProvider } from './aiops'; import { InfraOpsSourceConfigurationProvider } from './infraops_source_configuration'; import { IngestManagerProvider } from '../../common/services/ingest_manager'; -import { TransformProvider } from './transform'; import { IngestPipelinesProvider } from './ingest_pipelines'; import { DataViewApiProvider } from './data_view_api'; import { SloApiProvider } from './slo'; @@ -30,14 +28,12 @@ export const services = { esSupertest: kibanaApiIntegrationServices.esSupertest, supertest: kibanaApiIntegrationServices.supertest, - aiops: AiopsProvider, dataViewApi: DataViewApiProvider, esSupertestWithoutAuth: EsSupertestWithoutAuthProvider, infraOpsSourceConfiguration: InfraOpsSourceConfigurationProvider, usageAPI: UsageAPIProvider, ml: MachineLearningProvider, ingestManager: IngestManagerProvider, - transform: TransformProvider, ingestPipelines: IngestPipelinesProvider, slo: SloApiProvider, securitySolutionApi: SecuritySolutionApiProvider, diff --git a/x-pack/test/api_integration/services/transform.ts b/x-pack/test/api_integration/services/transform.ts deleted file mode 100644 index 16876413b1239..0000000000000 --- a/x-pack/test/api_integration/services/transform.ts +++ /dev/null @@ -1,26 +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 '../../functional/ftr_provider_context'; - -import { TransformAPIProvider } from '../../functional/services/transform/api'; -import { TransformSecurityCommonProvider } from '../../functional/services/transform/security_common'; -import { MachineLearningAPIProvider } from '../../functional/services/ml/api'; -import { MachineLearningTestResourcesProvider } from '../../functional/services/ml/test_resources'; - -export function TransformProvider(context: FtrProviderContext) { - const api = TransformAPIProvider(context); - const mlApi = MachineLearningAPIProvider(context); - const securityCommon = TransformSecurityCommonProvider(context); - const testResources = MachineLearningTestResourcesProvider(context, mlApi); - - return { - api, - securityCommon, - testResources, - }; -} diff --git a/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/ml_job_helper.ts b/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/ml_job_helper.ts index 7c6dcc9b5575f..887dbaa659d56 100644 --- a/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/ml_job_helper.ts +++ b/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/ml_job_helper.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MlApi } from '../../../../services/ml/api'; +import { MlApi } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { MlJob } from './ml_job_configs'; export function createMlJobHelper(ml: MlApi) { diff --git a/x-pack/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts b/x-pack/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts index d7aae9042351f..7d8e3b67f0d4a 100644 --- a/x-pack/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts +++ b/x-pack/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts @@ -7,12 +7,12 @@ import { Job, Datafeed } from '@kbn/ml-plugin/common/types/anomaly_detection_jobs'; import { TIME_RANGE_TYPE } from '@kbn/ml-plugin/public/application/components/custom_urls/custom_url_editor/constants'; -import { FtrProviderContext } from '../../../ftr_provider_context'; import type { DiscoverUrlConfig, DashboardUrlConfig, OtherUrlConfig, -} from '../../../services/ml/job_table'; +} from '@kbn/test-suites-xpack-platform/functional/services/ml/job_table'; +import { FtrProviderContext } from '../../../ftr_provider_context'; // @ts-expect-error doesn't implement the full interface const JOB_CONFIG: Job = { diff --git a/x-pack/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts b/x-pack/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts index 5283350638d9c..d65990d90ff6d 100644 --- a/x-pack/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts +++ b/x-pack/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts @@ -7,8 +7,8 @@ import { Job } from '@kbn/ml-plugin/common/types/anomaly_detection_jobs'; import { JOB_STATE } from '@kbn/ml-plugin/common'; +import { QuickFilterButtonTypes } from '@kbn/test-suites-xpack-platform/functional/services/ml/job_table'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { QuickFilterButtonTypes } from '../../../services/ml/job_table'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts b/x-pack/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts index 0bbba73a84656..fb698719a8fb8 100644 --- a/x-pack/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts +++ b/x-pack/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts @@ -8,8 +8,8 @@ import type { Job, Datafeed } from '@kbn/ml-plugin/common/types/anomaly_detection_jobs'; import type { AnomalySwimLaneEmbeddableState } from '@kbn/ml-plugin/public'; import { stringHash } from '@kbn/ml-string-hash'; +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import type { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../services/ml/security_common'; // @ts-expect-error not full interface const JOB_CONFIG: Job = { diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts index b0a7f3374dde8..c6555bd0fe2ed 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts @@ -6,14 +6,14 @@ */ import { TIME_RANGE_TYPE } from '@kbn/ml-plugin/public/application/components/custom_urls/custom_url_editor/constants'; -import type { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; -import type { FtrProviderContext } from '../../../ftr_provider_context'; -import type { FieldStatsType } from '../common/types'; +import type { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import { type DiscoverUrlConfig, type DashboardUrlConfig, type OtherUrlConfig, -} from '../../../services/ml/data_frame_analytics_edit'; +} from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_edit'; +import type { FtrProviderContext } from '../../../ftr_provider_context'; +import type { FieldStatsType } from '../common/types'; const testDiscoverCustomUrl: DiscoverUrlConfig = { label: 'Show data', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts index 915a4992d3106..066c356f5bd8a 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; +import type { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import type { FtrProviderContext } from '../../../ftr_provider_context'; import type { FieldStatsType } from '../common/types'; diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/custom_urls.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/custom_urls.ts index eb202d648bdcf..6a7fbcbb13890 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/custom_urls.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/custom_urls.ts @@ -6,12 +6,12 @@ */ import { TIME_RANGE_TYPE } from '@kbn/ml-plugin/public/application/components/custom_urls/custom_url_editor/constants'; -import { FtrProviderContext } from '../../../ftr_provider_context'; import { type DiscoverUrlConfig, type DashboardUrlConfig, type OtherUrlConfig, -} from '../../../services/ml/data_frame_analytics_edit'; +} from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_edit'; +import { FtrProviderContext } from '../../../ftr_provider_context'; const testDiscoverCustomUrl: DiscoverUrlConfig = { label: 'Show data', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts index 6679a6b8fc951..24349a966faa7 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts @@ -6,14 +6,14 @@ */ import { TIME_RANGE_TYPE } from '@kbn/ml-plugin/public/application/components/custom_urls/custom_url_editor/constants'; -import type { FtrProviderContext } from '../../../ftr_provider_context'; -import type { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; -import type { FieldStatsType } from '../common/types'; +import type { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import { type DiscoverUrlConfig, type DashboardUrlConfig, type OtherUrlConfig, -} from '../../../services/ml/data_frame_analytics_edit'; +} from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_edit'; +import type { FtrProviderContext } from '../../../ftr_provider_context'; +import type { FieldStatsType } from '../common/types'; const testDiscoverCustomUrl: DiscoverUrlConfig = { label: 'Show data', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts index 6c55bfc1078d7..a4e3774849363 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; +import { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts index ba9adacd1c030..237be06a9381d 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts @@ -6,14 +6,14 @@ */ import { TIME_RANGE_TYPE } from '@kbn/ml-plugin/public/application/components/custom_urls/custom_url_editor/constants'; -import type { FtrProviderContext } from '../../../ftr_provider_context'; -import type { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; -import type { FieldStatsType } from '../common/types'; +import type { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import { type DiscoverUrlConfig, type DashboardUrlConfig, type OtherUrlConfig, -} from '../../../services/ml/data_frame_analytics_edit'; +} from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_edit'; +import type { FtrProviderContext } from '../../../ftr_provider_context'; +import type { FieldStatsType } from '../common/types'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts index f6addae51ecb9..5817ed426b425 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnalyticsTableRowDetails } from '../../../services/ml/data_frame_analytics_table'; +import { AnalyticsTableRowDetails } from '@kbn/test-suites-xpack-platform/functional/services/ml/data_frame_analytics_table'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test/functional/apps/ml/permissions/full_ml_access.ts b/x-pack/test/functional/apps/ml/permissions/full_ml_access.ts index f82f8132603e8..0b7f8954f5755 100644 --- a/x-pack/test/functional/apps/ml/permissions/full_ml_access.ts +++ b/x-pack/test/functional/apps/ml/permissions/full_ml_access.ts @@ -5,10 +5,9 @@ * 2.0. */ +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../services/ml/security_common'; - export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const ml = getService('ml'); diff --git a/x-pack/test/functional/apps/ml/permissions/no_ml_access.ts b/x-pack/test/functional/apps/ml/permissions/no_ml_access.ts index f2606b3c16cfa..ead214f136a4c 100644 --- a/x-pack/test/functional/apps/ml/permissions/no_ml_access.ts +++ b/x-pack/test/functional/apps/ml/permissions/no_ml_access.ts @@ -5,10 +5,9 @@ * 2.0. */ +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../services/ml/security_common'; - export default function ({ getPageObjects, getService }: FtrProviderContext) { const PageObjects = getPageObjects(['common', 'error', 'dashboard']); const ml = getService('ml'); diff --git a/x-pack/test/functional/apps/ml/permissions/read_ml_access.ts b/x-pack/test/functional/apps/ml/permissions/read_ml_access.ts index ede92ffe028c9..7a61e10c19eb8 100644 --- a/x-pack/test/functional/apps/ml/permissions/read_ml_access.ts +++ b/x-pack/test/functional/apps/ml/permissions/read_ml_access.ts @@ -5,10 +5,9 @@ * 2.0. */ +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../services/ml/security_common'; - export default function ({ getService, getPageObjects }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const ml = getService('ml'); diff --git a/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts b/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts index c0d4af068832e..011ffe4fce2f1 100644 --- a/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts +++ b/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts @@ -6,8 +6,8 @@ */ import { getDefaultOnFailureConfiguration } from '@kbn/ml-plugin/public/application/components/ml_inference/state'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { FtrProviderContext } from '../../../../ftr_provider_context'; -import { SUPPORTED_TRAINED_MODELS } from '../../../../services/ml/api'; export default function ({ getService }: FtrProviderContext) { const ml = getService('ml'); diff --git a/x-pack/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts b/x-pack/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts index 8ec8ef4599023..ba92cab3f927b 100644 --- a/x-pack/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts +++ b/x-pack/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts @@ -5,8 +5,8 @@ * 2.0. */ +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../services/ml/security_common'; export default function ({ getService }: FtrProviderContext) { const browser = getService('browser'); diff --git a/x-pack/test/functional/apps/search_playground/playground_overview.ess.ts b/x-pack/test/functional/apps/search_playground/playground_overview.ess.ts index 419bed905f9a2..7da6b85d0241a 100644 --- a/x-pack/test/functional/apps/search_playground/playground_overview.ess.ts +++ b/x-pack/test/functional/apps/search_playground/playground_overview.ess.ts @@ -5,15 +5,34 @@ * 2.0. */ +import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import { FtrProviderContext } from '../../ftr_provider_context'; import { createOpenAIConnector } from './utils/create_openai_connector'; -import { MachineLearningCommonAPIProvider } from '../../services/ml/common_api'; import { createLlmProxy, LlmProxy, } from '../../../api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/create_llm_proxy'; +const COMMON_REQUEST_HEADERS = { + 'kbn-xsrf': 'some-xsrf-token', + 'x-elastic-internal-origin': 'Kibana', +}; + +export function MachineLearningCommonAPIProvider({}: FtrProviderContext) { + return { + getCommonRequestHeader, + }; +} + +export function getCommonRequestHeader(apiVersion?: string) { + if (apiVersion === undefined) { + return COMMON_REQUEST_HEADERS; + } + + return Object.assign(COMMON_REQUEST_HEADERS, { [ELASTIC_HTTP_VERSION_HEADER]: apiVersion }); +} + const esArchiveIndex = 'src/platform/test/api_integration/fixtures/es_archiver/index_patterns/basic_index'; diff --git a/x-pack/test/functional/apps/transform/actions/reauthorizing.ts b/x-pack/test/functional/apps/transform/actions/reauthorizing.ts index 878a351410396..29885e4b1095c 100644 --- a/x-pack/test/functional/apps/transform/actions/reauthorizing.ts +++ b/x-pack/test/functional/apps/transform/actions/reauthorizing.ts @@ -11,10 +11,10 @@ import type { TransformPivotConfig, } from '@kbn/transform-plugin/common/types/transform'; import type { SecurityCreateApiKeyResponse } from '@elastic/elasticsearch/lib/api/types'; +import { getCommonRequestHeader } from '@kbn/test-suites-xpack-platform/functional/services/ml/common_api'; +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/transform/security_common'; import type { FtrProviderContext } from '../../../ftr_provider_context'; import { getLatestTransformConfig, getPivotTransformConfig } from '../helpers'; -import { USER } from '../../../services/transform/security_common'; -import { getCommonRequestHeader } from '../../../services/ml/common_api'; interface TestDataPivot { suiteTitle: string; diff --git a/x-pack/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts b/x-pack/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts index afe977a5a07a9..d851ce209ec03 100644 --- a/x-pack/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts +++ b/x-pack/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts @@ -7,10 +7,9 @@ import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants'; +import type { HistogramCharts } from '@kbn/test-suites-xpack-platform/functional/services/transform/wizard'; import { FtrProviderContext } from '../../../../ftr_provider_context'; -import type { HistogramCharts } from '../../../../services/transform/wizard'; - import { GroupByEntry, isLatestTransformTestData, diff --git a/x-pack/test/functional/services/index.ts b/x-pack/test/functional/services/index.ts index eb0cac586451d..6e7f8225d4edb 100644 --- a/x-pack/test/functional/services/index.ts +++ b/x-pack/test/functional/services/index.ts @@ -12,6 +12,13 @@ import { UserMenuProvider } from '@kbn/test-suites-xpack-platform/functional/ser 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 { CasesServiceProvider } from '@kbn/test-suites-xpack-platform/functional/services/cases'; +import { ActionsServiceProvider } from '@kbn/test-suites-xpack-platform/functional/services/actions'; +import { AiopsProvider } from '@kbn/test-suites-xpack-platform/functional/services/aiops'; +import { RulesServiceProvider } from '@kbn/test-suites-xpack-platform/functional/services/rules'; +import { MachineLearningProvider } from '@kbn/test-suites-xpack-platform/functional/services/ml'; +import { CanvasElementProvider } from '@kbn/test-suites-xpack-platform/functional/services/canvas_element'; +import { TransformProvider } from '@kbn/test-suites-xpack-platform/functional/services/transform'; 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'; @@ -55,19 +62,10 @@ import { PipelineEditorProvider } from './pipeline_editor'; // @ts-ignore not ts yet import { RandomProvider } from './random'; // @ts-ignore not ts yet -import { CanvasElementProvider } from './canvas_element'; -// @ts-ignore not ts yet -// @ts-ignore not ts yet import { UptimeProvider } from './uptime'; import { InfraSourceConfigurationFormProvider } from './infra_source_configuration_form'; import { LogsUiProvider } from './logs_ui'; -import { MachineLearningProvider } from './ml'; -import { TransformProvider } from './transform'; import { ObservabilityProvider } from './observability'; -import { CasesServiceProvider } from './cases'; -import { ActionsServiceProvider } from './actions'; -import { RulesServiceProvider } from './rules'; -import { AiopsProvider } from './aiops'; import { DataStreamProvider } from './data_stream'; import { SloUiServiceProvider } from './slo'; // define the name and providers for services that should be diff --git a/x-pack/test/functional_basic/apps/ml/permissions/full_ml_access.ts b/x-pack/test/functional_basic/apps/ml/permissions/full_ml_access.ts index 5ba637d629708..8a72c2b8854b5 100644 --- a/x-pack/test/functional_basic/apps/ml/permissions/full_ml_access.ts +++ b/x-pack/test/functional_basic/apps/ml/permissions/full_ml_access.ts @@ -6,8 +6,8 @@ */ import expect from '@kbn/expect'; +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../../functional/services/ml/security_common'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/functional_basic/apps/ml/permissions/no_ml_access.ts b/x-pack/test/functional_basic/apps/ml/permissions/no_ml_access.ts index feb251cc26e1d..ed416acc783a1 100644 --- a/x-pack/test/functional_basic/apps/ml/permissions/no_ml_access.ts +++ b/x-pack/test/functional_basic/apps/ml/permissions/no_ml_access.ts @@ -5,10 +5,9 @@ * 2.0. */ +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../../functional/services/ml/security_common'; - export default function ({ getPageObjects, getService }: FtrProviderContext) { const PageObjects = getPageObjects(['common', 'error']); const ml = getService('ml'); diff --git a/x-pack/test/functional_basic/apps/ml/permissions/read_ml_access.ts b/x-pack/test/functional_basic/apps/ml/permissions/read_ml_access.ts index 3b124f7605dbc..5ccd68c9fa237 100644 --- a/x-pack/test/functional_basic/apps/ml/permissions/read_ml_access.ts +++ b/x-pack/test/functional_basic/apps/ml/permissions/read_ml_access.ts @@ -6,8 +6,8 @@ */ import expect from '@kbn/expect'; +import { USER } from '@kbn/test-suites-xpack-platform/functional/services/ml/security_common'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { USER } from '../../../../functional/services/ml/security_common'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/functional_with_es_ssl/apps/config.ts b/x-pack/test/functional_with_es_ssl/apps/config.ts new file mode 100644 index 0000000000000..cfc7e119963e7 --- /dev/null +++ b/x-pack/test/functional_with_es_ssl/apps/config.ts @@ -0,0 +1,33 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; +import { resolve } from 'path'; +import { pageObjects, services } from '../ftr_provider_context'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseConfig = await readConfigFile( + require.resolve('@kbn/test-suites-xpack-platform/functional_with_es_ssl/config.base') + ); + + return { + ...baseConfig.getAll(), + kbnTestServer: { + ...baseConfig.get('kbnTestServer'), + serverArgs: [ + ...baseConfig.get('kbnTestServer.serverArgs'), + '--uiSettings.overrides.observability:enableLegacyUptimeApp=true', + ], + }, + testFiles: [resolve(__dirname, './uptime')], + pageObjects, + services, + junit: { + reportName: 'Chrome X-Pack UI Functional Tests with ES SSL - Uptime', + }, + }; +} diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/alert_flyout.ts b/x-pack/test/functional_with_es_ssl/apps/uptime/alert_flyout.ts similarity index 99% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/alert_flyout.ts rename to x-pack/test/functional_with_es_ssl/apps/uptime/alert_flyout.ts index 8126a3e42d815..0f0176c1d1ac3 100644 --- a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/alert_flyout.ts +++ b/x-pack/test/functional_with_es_ssl/apps/uptime/alert_flyout.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { setTimeout as setTimeoutAsync } from 'timers/promises'; -import { FtrProviderContext } from '../../../ftr_provider_context'; +import { FtrProviderContext } from '../../ftr_provider_context'; export default ({ getPageObjects, getService }: FtrProviderContext) => { describe('uptime alerts', () => { diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/index.ts b/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts similarity index 93% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/index.ts rename to x-pack/test/functional_with_es_ssl/apps/uptime/index.ts index 80d91ef96a904..2c39ef045972f 100644 --- a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/index.ts +++ b/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { FtrProviderContext } from '../../../ftr_provider_context'; +import { FtrProviderContext } from '../../ftr_provider_context'; const ARCHIVE = 'x-pack/test/functional/es_archives/uptime/full_heartbeat'; diff --git a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/simple_down_alert.ts b/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts similarity index 96% rename from x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/simple_down_alert.ts rename to x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts index d1c4c2c7742fd..9df1d406134d8 100644 --- a/x-pack/test/functional_with_es_ssl/apps/discover_ml_uptime/uptime/simple_down_alert.ts +++ b/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts @@ -7,8 +7,8 @@ import expect from '@kbn/expect'; import { MonitorStatusTranslations } from '@kbn/uptime-plugin/common/rules/legacy_uptime/translations'; -import { FtrProviderContext } from '../../../ftr_provider_context'; -import { deleteUptimeSettingsObject } from '../../../../functional/apps/uptime'; +import { FtrProviderContext } from '../../ftr_provider_context'; +import { deleteUptimeSettingsObject } from '../../../functional/apps/uptime'; export default ({ getPageObjects, getService }: FtrProviderContext) => { describe('uptime simple status alert', () => { diff --git a/x-pack/test/functional_with_es_ssl/ftr_provider_context.ts b/x-pack/test/functional_with_es_ssl/ftr_provider_context.ts new file mode 100644 index 0000000000000..8185c6ff68c7d --- /dev/null +++ b/x-pack/test/functional_with_es_ssl/ftr_provider_context.ts @@ -0,0 +1,27 @@ +/* + * 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 { GenericFtrProviderContext, GenericFtrService } from '@kbn/test'; + +import { pageObjects as platformPageObjects } from '@kbn/test-suites-xpack-platform/functional_with_es_ssl/page_objects'; +import { services as platformServices } from '../functional/services'; +import { UptimePageObject } from '../functional/page_objects/uptime_page'; +import { InfraLogsPageProvider } from '../functional/page_objects/infra_logs_page'; +import { UptimeProvider } from '../functional/services/uptime'; + +export const pageObjects = { + ...platformPageObjects, + infraLogs: InfraLogsPageProvider, + uptime: UptimePageObject, +}; + +export const services = { + ...platformServices, + uptime: UptimeProvider, +}; +export type FtrProviderContext = GenericFtrProviderContext; +export class FtrService extends GenericFtrService {} diff --git a/x-pack/test/observability_functional/apps/observability/pages/alerts/rule_stats.ts b/x-pack/test/observability_functional/apps/observability/pages/alerts/rule_stats.ts index 10ca054265052..9b45d3b6181d3 100644 --- a/x-pack/test/observability_functional/apps/observability/pages/alerts/rule_stats.ts +++ b/x-pack/test/observability_functional/apps/observability/pages/alerts/rule_stats.ts @@ -6,14 +6,14 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../ftr_provider_context'; -import { ObjectRemover } from '../../../../../functional_with_es_ssl/lib/object_remover'; +import { ObjectRemover } from '@kbn/test-suites-xpack-platform/functional_with_es_ssl/lib/object_remover'; import { createAlert as createRule, disableAlert as disableRule, muteAlert as muteRule, -} from '../../../../../functional_with_es_ssl/lib/alert_api_actions'; -import { generateUniqueKey } from '../../../../../functional_with_es_ssl/lib/get_test_data'; +} from '@kbn/test-suites-xpack-platform/functional_with_es_ssl/lib/alert_api_actions'; +import { generateUniqueKey } from '@kbn/test-suites-xpack-platform/functional_with_es_ssl/lib/get_test_data'; +import { FtrProviderContext } from '../../../../ftr_provider_context'; import { asyncForEach } from '../../helpers'; export default ({ getService }: FtrProviderContext) => { diff --git a/x-pack/test/observability_functional/with_rac_write.config.ts b/x-pack/test/observability_functional/with_rac_write.config.ts index 6ca4262b3ea42..b739b9b6ae048 100644 --- a/x-pack/test/observability_functional/with_rac_write.config.ts +++ b/x-pack/test/observability_functional/with_rac_write.config.ts @@ -57,7 +57,10 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { '--xpack.spaces.allowSolutionVisibility=true', `--elasticsearch.hosts=https://${servers.elasticsearch.hostname}:${servers.elasticsearch.port}`, `--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`, - `--plugin-path=${resolve(__dirname, '../functional_with_es_ssl/plugins/alerts')}`, + `--plugin-path=${resolve( + __dirname, + '../../platform/test/functional_with_es_ssl/plugins/alerts' + )}`, `--xpack.actions.enabledActionTypes=${JSON.stringify(enabledActionTypes)}`, `--xpack.actions.preconfiguredAlertHistoryEsIndex=false`, `--xpack.actions.preconfigured=${JSON.stringify({ diff --git a/x-pack/test/screenshot_creation/apps/index.ts b/x-pack/test/screenshot_creation/apps/index.ts index 763fe31c9d9e0..dc2d900b323ca 100644 --- a/x-pack/test/screenshot_creation/apps/index.ts +++ b/x-pack/test/screenshot_creation/apps/index.ts @@ -9,8 +9,6 @@ import { FtrProviderContext } from '../ftr_provider_context'; export default function ({ loadTestFile }: FtrProviderContext) { describe('apps', function () { - loadTestFile(require.resolve('./ml_docs')); loadTestFile(require.resolve('./response_ops_docs')); - loadTestFile(require.resolve('./transform_docs')); }); } diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/index.ts b/x-pack/test/screenshot_creation/apps/response_ops_docs/index.ts index 160b48aa48a87..105e4d0ed21e5 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/index.ts +++ b/x-pack/test/screenshot_creation/apps/response_ops_docs/index.ts @@ -39,10 +39,6 @@ export default function ({ getPageObject, getService, loadTestFile }: FtrProvide await ml.testResources.resetKibanaAnnouncements(); }); - loadTestFile(require.resolve('./stack_alerting')); - loadTestFile(require.resolve('./stack_cases')); - loadTestFile(require.resolve('./stack_connectors')); - loadTestFile(require.resolve('./maintenance_windows')); loadTestFile(require.resolve('./observability_alerting')); loadTestFile(require.resolve('./observability_cases')); loadTestFile(require.resolve('./security_cases')); diff --git a/x-pack/test/screenshot_creation/config.ts b/x-pack/test/screenshot_creation/config.ts index 5464806c20726..a65a0ed3c0416 100644 --- a/x-pack/test/screenshot_creation/config.ts +++ b/x-pack/test/screenshot_creation/config.ts @@ -5,49 +5,21 @@ * 2.0. */ -import Fs from 'fs'; -import { CA_CERT_PATH } from '@kbn/dev-utils'; import { FtrConfigProviderContext } from '@kbn/test'; -import { pageObjects } from './page_objects'; -import { services } from './services'; +import { services } from './ftr_provider_context'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - require.resolve('../functional/config.base.js') + require.resolve('@kbn/test-suites-xpack-platform/screenshot_creation/config') ); - const servers = { - ...xpackFunctionalConfig.get('servers'), - elasticsearch: { - ...xpackFunctionalConfig.get('servers.elasticsearch'), - protocol: 'https', - certificateAuthorities: [Fs.readFileSync(CA_CERT_PATH)], - }, - }; - return { - // default to the xpack functional config ...xpackFunctionalConfig.getAll(), - servers, - pageObjects, - services, testFiles: [require.resolve('./apps')], + services, junit: { ...xpackFunctionalConfig.get('junit'), reportName: 'Chrome X-Pack UI Screenshot Creation', }, - esTestCluster: { - ...xpackFunctionalConfig.get('esTestCluster'), - ssl: true, - }, - kbnTestServer: { - ...xpackFunctionalConfig.get('kbnTestServer'), - serverArgs: [ - ...xpackFunctionalConfig.get('kbnTestServer.serverArgs'), - `--elasticsearch.hosts=https://${servers.elasticsearch.hostname}:${servers.elasticsearch.port}`, - `--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`, - `--xpack.alerting.rules.minimumScheduleInterval.value="2s"`, - ], - }, }; } diff --git a/x-pack/test/screenshot_creation/ftr_provider_context.d.ts b/x-pack/test/screenshot_creation/ftr_provider_context.d.ts index 24f5087ef7fe2..9b02d6b96869f 100644 --- a/x-pack/test/screenshot_creation/ftr_provider_context.d.ts +++ b/x-pack/test/screenshot_creation/ftr_provider_context.d.ts @@ -7,7 +7,13 @@ import { GenericFtrProviderContext } from '@kbn/test'; -import { pageObjects } from './page_objects'; -import { services } from './services'; +import { pageObjects } from '@kbn/test-suites-xpack-platform/screenshot_creation/page_objects'; +import { services as platformServices } from '@kbn/test-suites-xpack-platform/screenshot_creation/services'; +import { ObservabilityProvider } from '../functional/services/observability'; + +export const services = { + ...platformServices, + observability: ObservabilityProvider, +}; export type FtrProviderContext = GenericFtrProviderContext; diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/machine_learning/machine_learning_setup.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/machine_learning/machine_learning_setup.ts index bd8214e63e4d1..dffbda88bc3d3 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/machine_learning/machine_learning_setup.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/machine_learning/machine_learning_setup.ts @@ -8,7 +8,7 @@ import type SuperTest from 'supertest'; import { RetryService } from '@kbn/ftr-common-functional-services'; import { ML_GROUP_ID } from '@kbn/security-solution-plugin/common/constants'; -import { getCommonRequestHeader } from '../../../../../functional/services/ml/common_api'; +import { getCommonRequestHeader } from '@kbn/test-suites-xpack-platform/functional/services/ml/common_api'; interface ModuleJob { id: string; diff --git a/x-pack/test/security_solution_api_integration/test_suites/genai/evaluations/trial_license_complete_tier/evaluations.ts b/x-pack/test/security_solution_api_integration/test_suites/genai/evaluations/trial_license_complete_tier/evaluations.ts index 043d83d765a87..c4a780f01eb61 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/genai/evaluations/trial_license_complete_tier/evaluations.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/genai/evaluations/trial_license_complete_tier/evaluations.ts @@ -12,6 +12,7 @@ import { } from '@kbn/elastic-assistant-common'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import os from 'os'; +import { MachineLearningProvider } from '@kbn/test-suites-xpack-platform/functional/services/ml'; import { getSecurityGenAIConfigFromEnvVar } from '../../../../scripts/genai/vault/manage_secrets'; import { FtrProviderContext } from '../../../../ftr_provider_context'; @@ -22,7 +23,6 @@ import { setupKnowledgeBase, } from '../../knowledge_base/entries/utils/helpers'; -import { MachineLearningProvider } from '../../../../../functional/services/ml'; import { routeWithNamespace } from '../../../../../common/utils/security_solution'; import { loadEvalKnowledgeBaseEntries } from '../data/kb_entries'; import { waitForEvaluationComplete } from './utils'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/trial_license_complete_tier/entries.ts b/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/trial_license_complete_tier/entries.ts index 4d29063c291b0..d2bef9c649629 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/trial_license_complete_tier/entries.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/trial_license_complete_tier/entries.ts @@ -7,6 +7,7 @@ import expect from 'expect'; import { KNOWLEDGE_BASE_ENTRIES_TABLE_MAX_PAGE_SIZE } from '@kbn/elastic-assistant-plugin/common/constants'; +import { MachineLearningProvider } from '@kbn/test-suites-xpack-platform/functional/services/ml'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; import { createEntry, createEntryForUser } from '../utils/create_entry'; import { findEntries } from '../utils/find_entry'; @@ -17,7 +18,6 @@ import { setupKnowledgeBase, } from '../utils/helpers'; import { removeServerGeneratedProperties } from '../utils/remove_server_generated_properties'; -import { MachineLearningProvider } from '../../../../../../functional/services/ml'; import { documentEntry, indexEntry, globalDocumentEntry } from './mocks/entries'; import { secOnlySpacesAll, secOnlySpacesAllAssistantMinimalAll } from '../utils/auth/users'; import { diff --git a/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/utils/helpers.ts b/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/utils/helpers.ts index 9698dfbb18a16..916cb632894b4 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/utils/helpers.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/genai/knowledge_base/entries/utils/helpers.ts @@ -17,8 +17,8 @@ import { import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import type { ToolingLog } from '@kbn/tooling-log'; import type SuperTest from 'supertest'; -import { MachineLearningProvider } from '../../../../../../functional/services/ml'; -import { SUPPORTED_TRAINED_MODELS } from '../../../../../../functional/services/ml/api'; +import { MachineLearningProvider } from '@kbn/test-suites-xpack-platform/functional/services/ml'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { routeWithNamespace } from '../../../../../../common/utils/security_solution'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/genai/nlp_cleanup_task/basic_license_essentials_tier/task_execution.ts b/x-pack/test/security_solution_api_integration/test_suites/genai/nlp_cleanup_task/basic_license_essentials_tier/task_execution.ts index 1e018646dd610..7f4acf99f897d 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/genai/nlp_cleanup_task/basic_license_essentials_tier/task_execution.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/genai/nlp_cleanup_task/basic_license_essentials_tier/task_execution.ts @@ -8,9 +8,9 @@ import expect from '@kbn/expect'; import { TaskStatus } from '@kbn/task-manager-plugin/server'; import type { MlGetTrainedModelsResponse } from '@elastic/elasticsearch/lib/api/types'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { FtrProviderContext } from '../../../../ftr_provider_context'; import { waitFor } from '../../../../../common/utils/security_solution'; -import { SUPPORTED_TRAINED_MODELS } from '../../../../../functional/services/ml/api'; export default ({ getService }: FtrProviderContext): void => { const esSupertest = getService('esSupertest'); diff --git a/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js b/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js index 5ac62b7d7abf8..fe927810c2ec1 100644 --- a/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js +++ b/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js @@ -11,7 +11,7 @@ import { ToolingLog } from '@kbn/tooling-log'; import { REPO_ROOT } from '@kbn/repo-info'; import chalk from 'chalk'; import { esTestConfig, kbnTestConfig } from '@kbn/test'; -import { TriggersActionsPageProvider } from '../../functional_with_es_ssl/page_objects/triggers_actions_ui_page'; +import { TriggersActionsPageProvider } from '@kbn/test-suites-xpack-platform/functional_with_es_ssl/page_objects/triggers_actions_ui_page'; const log = new ToolingLog({ level: 'info', diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index d352d4a519fcb..ea7cc5550a9fc 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -62,7 +62,6 @@ "@kbn/maps-plugin", "@kbn/test-subj-selector", "@kbn/rison", - "@kbn/aiops-plugin", "@kbn/logging", "@kbn/utility-types", "@kbn/data-views-plugin", @@ -71,14 +70,12 @@ "@kbn/config-schema", "@kbn/es-query", "@kbn/session-view-plugin", - "@kbn/ml-is-populated-object", "@kbn/ml-string-hash", "@kbn/data-visualizer-plugin", "@kbn/visualizations-plugin", "@kbn/rule-registry-plugin", "@kbn/controls-plugin", "@kbn/core-saved-objects-server", - "@kbn/user-profile-components", "@kbn/apm-synthtrace-client", "@kbn/security-api-integration-helpers", "@kbn/alerts-as-data-utils", @@ -106,9 +103,7 @@ "@kbn/ftr-common-functional-ui-services", "@kbn/infra-forge", "@kbn/slo-plugin", - "@kbn/aiops-test-utils", "@kbn/observability-ai-assistant-app-plugin", - "@kbn/aiops-log-rate-analysis", "@kbn/apm-data-view", "@kbn/search-types", "@kbn/alerting-comparators", @@ -133,17 +128,13 @@ "@kbn/scout-info", "@kbn/inference-common", "@kbn/apm-sources-access-plugin", - "@kbn/aiops-change-point-detection", "@kbn/es-errors", "@kbn/content-packs-schema", - "@kbn/response-ops-alerts-filters-form", - "@kbn/embeddable-alerts-table-plugin", "@kbn/lock-manager", "@kbn/alerts-ui-shared", "@kbn/test-suites-xpack-observability", "@kbn/test-suites-xpack-platform", "@kbn/core-chrome-browser", - "@kbn/event-log-plugin", "@kbn/management-settings-ids", "@kbn/core-provider-plugin", ] diff --git a/x-pack/test_serverless/functional/test_suites/search/ml/trained_models_list.ts b/x-pack/test_serverless/functional/test_suites/search/ml/trained_models_list.ts index d09171c81a6b3..418c68305d95d 100644 --- a/x-pack/test_serverless/functional/test_suites/search/ml/trained_models_list.ts +++ b/x-pack/test_serverless/functional/test_suites/search/ml/trained_models_list.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack/functional/services/ml/api'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects, getPageObject }: FtrProviderContext) { diff --git a/x-pack/test_serverless/functional/test_suites/security/ml/trained_models_list.ts b/x-pack/test_serverless/functional/test_suites/security/ml/trained_models_list.ts index df31bd2ce7141..91d78840fe1c4 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ml/trained_models_list.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ml/trained_models_list.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack/functional/services/ml/api'; +import { SUPPORTED_TRAINED_MODELS } from '@kbn/test-suites-xpack-platform/functional/services/ml/api'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/yarn.lock b/yarn.lock index b40ce4eed3941..1d5a0154da56d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3885,7 +3885,7 @@ version "0.0.0" uid "" -"@kbn/alerting-fixture-plugin@link:x-pack/test/functional_with_es_ssl/plugins/alerts": +"@kbn/alerting-fixture-plugin@link:x-pack/platform/test/functional_with_es_ssl/plugins/alerts": version "0.0.0" uid "" @@ -5833,7 +5833,7 @@ version "0.0.0" uid "" -"@kbn/functional-with-es-ssl-cases-test-plugin@link:x-pack/test/functional_with_es_ssl/plugins/cases": +"@kbn/functional-with-es-ssl-cases-test-plugin@link:x-pack/platform/test/functional_with_es_ssl/plugins/cases": version "0.0.0" uid ""