diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1d9e8fd6b4999..7c43c582d61a2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1245,11 +1245,11 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ # Visualizations /x-pack/test/functional/fixtures/kbn_archiver/rollup @elastic/kibana-visualizations # Assigned per the only uses are in lens and tsvb tests /x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts#L20 -/x-pack/test/functional/es_archives/pre_calculated_histogram @elastic/kibana-visualizations # Assigned per usages -/x-pack/test/functional/es_archives/hybrid/rollup @elastic/kibana-visualizations @elastic/search-kibana # Assigned per usage -/x-pack/test/functional/es_archives/hybrid/logstash @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts#L22 -/x-pack/test/functional/es_archives/graph @elastic/kibana-visualizations -/x-pack/test/functional/es_archives/visualize @elastic/kibana-visualizations +/x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram @elastic/kibana-visualizations # Assigned per usages +/x-pack/platform/test/fixtures/es_archives/hybrid/rollup @elastic/kibana-visualizations @elastic/search-kibana # Assigned per usage +/x-pack/platform/test/fixtures/es_archives/hybrid/logstash @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts#L22 +/x-pack/platform/test/fixtures/es_archives/graph @elastic/kibana-visualizations +/x-pack/platform/test/fixtures/es_archives/visualize @elastic/kibana-visualizations /src/platform/test/functional/fixtures/kbn_archiver/visualize.json @elastic/kibana-visualizations /src/platform/test/functional/fixtures/kbn_archiver/managed_content.json @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/functional/apps/managed_content/managed_content.ts#L38 /src/platform/test/api_integration/fixtures/kbn_archiver/event_annotations/event_annotations.json @elastic/kibana-visualizations @@ -1267,7 +1267,7 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ /src/platform/test/functional/page_objects/time_to_visualize_page.ts @elastic/kibana-visualizations /src/platform/test/functional/page_objects/tag_cloud_page.ts @elastic/kibana-visualizations /x-pack/platform/test/functional/page_objects/lens_page.ts @elastic/kibana-visualizations -/x-pack/test/functional/es_archives/lens @elastic/kibana-visualizations +/x-pack/platform/test/fixtures/es_archives/lens @elastic/kibana-visualizations /x-pack/platform/test/examples/embedded_lens @elastic/kibana-visualizations /x-pack/test/api_integration/fixtures/kbn_archiver/lens/ @elastic/kibana-visualizations /x-pack/platform/test/api_integration/apis/lens @elastic/kibana-visualizations @@ -1305,8 +1305,8 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/functional/apps/reporting/ @elastic/response-ops /x-pack/platform/test/functional/apps/reporting_management/ @elastic/response-ops /x-pack/platform/test/examples/screenshotting/ @elastic/response-ops -/x-pack/test/functional/es_archives/lens/reporting/ @elastic/response-ops -/x-pack/test/functional/es_archives/reporting/ @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/lens/reporting/ @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/reporting/ @elastic/response-ops /x-pack/test/functional/fixtures/kbn_archiver/reporting/ @elastic/response-ops /x-pack/platform/test/reporting_api_integration/ @elastic/response-ops /x-pack/platform/test/reporting_functional/ @elastic/response-ops @@ -1508,7 +1508,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Elastic Stack Monitoring /x-pack/platform/test/monitoring_api_integration @elastic/stack-monitoring /x-pack/platform/test/functional/page_objects/monitoring_page.ts @elastic/stack-monitoring -/x-pack/test/functional/es_archives/monitoring @elastic/stack-monitoring +/x-pack/platform/test/fixtures/es_archives/monitoring @elastic/stack-monitoring /x-pack/platform/test/functional/services/monitoring @elastic/stack-monitoring /x-pack/platform/test/functional/apps/monitoring @elastic/stack-monitoring /x-pack/platform/test/api_integration/apis/monitoring @elastic/stack-monitoring @@ -1518,7 +1518,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Fleet /x-pack/platform/test/api_integration/services/ingest_manager.ts @elastic/fleet -/x-pack/test/functional/es_archives/fleet @elastic/fleet +/x-pack/platform/test/fixtures/es_archives/fleet @elastic/fleet /x-pack/platform/test/api_integration/services/fleet_and_agents.ts @elastic/fleet /x-pack/solutions/security/test/fleet_api_integration @elastic/fleet /x-pack/platform/test/fleet_api_integration @elastic/fleet @@ -1626,13 +1626,13 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Presentation /src/platform/test/functional/page_objects/unified_search_page.ts @elastic/kibana-presentation /src/platform/test/functional/fixtures/kbn_archiver/dashboard_error_cases.json @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/201648#discussion_r1859020986 -/x-pack/test/functional/es_archives/getting_started/shakespeare @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/201648#discussion_r1860319853 +/x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/201648#discussion_r1860319853 /x-pack/platform/test/upgrade/screenshots @elastic/kibana-presentation /x-pack/platform/test/functional/screenshots @elastic/kibana-presentation /src/platform/test/functional/fixtures/kbn_archiver/legacy.json @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/200934#discussion_r1856407606 /x-pack/test/functional/fixtures/kbn_archiver/maps.json @elastic/kibana-presentation /x-pack/test/functional/fixtures/kbn_archiver/canvas @elastic/kibana-presentation -/x-pack/test/functional/es_archives/dashboard/async_search @elastic/kibana-presentation +/x-pack/platform/test/fixtures/es_archives/dashboard/async_search @elastic/kibana-presentation /src/platform/test/functional/fixtures/kbn_archiver/dashboard @elastic/kibana-presentation /src/platform/test/functional/fixtures/kbn_archiver/canvas @elastic/kibana-presentation /src/platform/test/api_integration/apis/dashboards @elastic/kibana-presentation @@ -1665,7 +1665,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/functional/apps/canvas/ @elastic/kibana-presentation /x-pack/test_serverless/functional/test_suites/search/dashboards/ @elastic/kibana-presentation /src/platform/test/plugin_functional/test_suites/panel_actions @elastic/kibana-presentation -/x-pack/test/functional/es_archives/canvas/logstash_lens @elastic/kibana-presentation +/x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens @elastic/kibana-presentation #CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-presentation /x-pack/platform/test/upgrade/services/maps_upgrade_services.ts @elastic/kibana-presentation /x-pack/platform/test/stack_functional_integration/apps/maps @elastic/kibana-presentation @@ -1674,7 +1674,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/upgrade/apps/maps @elastic/kibana-presentation /x-pack/platform/test/api_integration/apis/maps/ @elastic/kibana-presentation /x-pack/platform/test/functional/apps/maps/ @elastic/kibana-presentation -/x-pack/test/functional/es_archives/maps/ @elastic/kibana-presentation +/x-pack/platform/test/fixtures/es_archives/maps/ @elastic/kibana-presentation /x-pack/platform/plugins/shared/stack_alerts/server/rule_types/geo_containment @elastic/kibana-presentation /x-pack/platform/plugins/shared/stack_alerts/public/rule_types/geo_containment @elastic/kibana-presentation @@ -1688,7 +1688,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/accessibility/apps/group3/ml_embeddables_in_dashboard.ts @elastic/ml-ui /x-pack/platform/test/api_integration/apis/ml/ @elastic/ml-ui /x-pack/platform/test/functional/apps/ml/ @elastic/ml-ui -/x-pack/test/functional/es_archives/ml/ @elastic/ml-ui +/x-pack/platform/test/fixtures/es_archives/ml/ @elastic/ml-ui /x-pack/platform/test/functional/services/ml @elastic/ml-ui /x-pack/platform/test/functional_basic/apps/ml/ @elastic/ml-ui /x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/config.ts @elastic/ml-ui @@ -1715,7 +1715,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/test/api_integration/services/transform.ts @elastic/ml-ui @elastic/kibana-management /x-pack/platform/test/functional/apps/aiops @elastic/ml-ui /x-pack/platform/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/platform/test/fixtures/es_archives/large_arrays @elastic/ml-ui # Assigned per usages /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/platform/test/functional_basic/apps/transform/ @elastic/ml-ui @elastic/kibana-management @@ -1766,11 +1766,9 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/plugins/private/painless_lab/test/scout @elastic/appex-qa # temporarily /x-pack/test/functional/fixtures/package_registry_config.yml @elastic/appex-qa # No usages found /x-pack/test/functional/fixtures/kbn_archiver/packaging.json @elastic/appex-qa # No usages found -/x-pack/test/functional/es_archives/filebeat @elastic/appex-qa -/x-pack/test/functional/es_archives/logstash_functional @elastic/appex-qa -/x-pack/test/functional/es_archives/event_log_legacy_ids @elastic/appex-qa -/x-pack/test/functional/es_archives/dlstest @elastic/appex-qa # No usages found -/x-pack/test/functional/es_archives/beats/list/data.json @elastic/appex-qa # No usages found +/x-pack/platform/test/fixtures/es_archives/filebeat @elastic/appex-qa +/x-pack/platform/test/fixtures/es_archives/logstash_functional @elastic/appex-qa +/x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids @elastic/appex-qa /src/platform/test/functional/fixtures/kbn_archiver/stress_test.json @elastic/appex-qa /src/platform/test/functional/fixtures/kbn_archiver/many_fields_data_view.json @elastic/appex-qa /src/platform/test/functional/fixtures/kbn_archiver/long_window_logstash_index_pattern.json @elastic/appex-qa @@ -1947,7 +1945,6 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security # Core /src/platform/test/api_integration/fixtures/kbn_archiver/management/saved_objects/relationships.json @elastic/kibana-core @elastic/kibana-data-discovery -/x-pack/test/functional/es_archives/lists @elastic/kibana-core /src/platform/test/functional/fixtures/kbn_archiver/saved_search.json @elastic/kibana-core # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/interpreter_functional/test_suites/run_pipeline/esaggs.ts#L100 /src/platform/test/functional/fixtures/kbn_archiver/saved_objects_management/show_relationships.json @elastic/kibana-core # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/saved_objects_management/show_relationships.ts#L20 /src/platform/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_from_http_apis.json @elastic/kibana-core @@ -2051,7 +2048,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/test/serverless/**/test_suites/saved_objects_management/ @elastic/kibana-core /x-pack/platform/test/serverless/api_integration/test_suites/core/ @elastic/kibana-core /x-pack/platform/test/serverless/api_integration/test_suites/telemetry/ @elastic/kibana-core -/x-pack/test/functional/es_archives/cases/migrations/8.8.0 @elastic/kibana-cases +/x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0 @elastic/kibana-cases #CC# /src/core/server/csp/ @elastic/kibana-core #CC# /src/plugins/saved_objects/ @elastic/kibana-core @@ -2084,7 +2081,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi # Kibana Platform Security # security -/x-pack/test/functional/es_archives/security @elastic/kibana-security +/x-pack/platform/test/fixtures/es_archives/security @elastic/kibana-security /x-pack/test/functional/fixtures/kbn_archiver/spaces @elastic/kibana-security /x-pack/test/functional/fixtures/kbn_archiver/security @elastic/kibana-security /x-pack/platform/test/ftr_apis/common/lib @elastic/kibana-security @@ -2164,9 +2161,9 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi #CC# /x-pack/platform/plugins/shared/security/ @elastic/kibana-security # Response Ops team -/x-pack/test/functional/es_archives/rule_registry @elastic/response-ops -/x-pack/test/functional/es_archives/event_log_multiple_indicies @elastic/response-ops -/x-pack/test/functional/es_archives/task_manager* @elastic/response-ops # Assigned per https://github.com/elastic/kibana/blob/assign-response-ops/x-pack/platform/test/plugin_api_perf/plugins/task_manager_performance/kibana.jsonc#L4 +/x-pack/platform/test/fixtures/es_archives/rule_registry @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/task_manager* @elastic/response-ops # Assigned per https://github.com/elastic/kibana/blob/assign-response-ops/x-pack/platform/test/plugin_api_perf/plugins/task_manager_performance/kibana.jsonc#L4 /x-pack/platform/test/plugin_api_perf @elastic/response-ops # Assigned per https://github.com/elastic/kibana/blob/assign-response-ops/x-pack/platform/test/plugin_api_perf/plugins/task_manager_performance/kibana.jsonc#L4 /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 @@ -2189,7 +2186,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /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/kibana-cases -/x-pack/test/functional/es_archives/cases @elastic/kibana-cases +/x-pack/platform/test/fixtures/es_archives/cases @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/kibana-cases /x-pack/platform/test/screenshot_creation/apps/response_ops_docs @elastic/response-ops @@ -2225,21 +2222,20 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/test_serverless/functional/test_suites/security/screenshot_creation/response_ops_docs @elastic/response-ops /x-pack/test_serverless/functional/test_suites/observability/screenshot_creation/response_ops_docs @elastic/response-ops /x-pack/platform/test/serverless/api_integration/test_suites/alerting/ @elastic/response-ops -/x-pack/test/functional/es_archives/action_task_params @elastic/response-ops -/x-pack/test/functional/es_archives/actions @elastic/response-ops -/x-pack/test/functional/es_archives/alerting @elastic/response-ops -/x-pack/test/functional/es_archives/alerts @elastic/response-ops -/x-pack/test/functional/es_archives/alerts_legacy @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/action_task_params @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/actions @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/alerting @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/alerts @elastic/response-ops /x-pack/test/functional/es_archives/observability/alerts @elastic/response-ops -/x-pack/test/functional/es_archives/actions @elastic/response-ops -/x-pack/test/functional/es_archives/rules_scheduled_task_id @elastic/response-ops -/x-pack/test/functional/es_archives/alerting/8_2_0 @elastic/response-ops -/x-pack/test/functional/es_archives/cases/signals/default @elastic/kibana-cases -/x-pack/test/functional/es_archives/cases/signals/hosts_users @elastic/kibana-cases +/x-pack/platform/test/fixtures/es_archives/actions @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/alerting/8_2_0 @elastic/response-ops +/x-pack/platform/test/fixtures/es_archives/cases/signals/default @elastic/kibana-cases +/x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users @elastic/kibana-cases # Enterprise Search # search -/x-pack/test/functional/es_archives/data/search_sessions @elastic/search-kibana +/x-pack/platform/test/fixtures/es_archives/data/search_sessions @elastic/search-kibana /x-pack/test/common/services/search_secure.ts @elastic/search-kibana /src/platform/test/functional/fixtures/kbn_archiver/ccs @elastic/search-kibana /src/platform/test/functional/fixtures/kbn_archiver/annotation_listing_page_search.json @elastic/search-kibana @@ -2275,7 +2271,7 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se # Management Experience - Deployment Management /src/platform/test/functional/fixtures/kbn_archiver/management.json @elastic/kibana-management @elastic/kibana-data-discovery # Assigned per 2 uses: test/functional/apps/management/_import_objects.ts && test/functional/apps/management/data_views/_scripted_fields_filter.ts /x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json @elastic/kibana-management -/x-pack/test/functional/es_archives/upgrade_assistant @elastic/kibana-management +/x-pack/platform/test/fixtures/es_archives/upgrade_assistant @elastic/kibana-management /x-pack/platform/test/functional/services/ace_editor.ts @elastic/kibana-management /x-pack/platform/test/functional/page_objects/remote_clusters_page.ts @elastic/kibana-management /x-pack/platform/test/stack_functional_integration/apps/ccs @elastic/kibana-management @@ -2387,14 +2383,14 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se /x-pack/platform/test/plugin_functional/test_suites/resolver/ @elastic/security-solution /x-pack/test/security_solution_api_integration @elastic/security-solution /x-pack/test/api_integration/apis/security_solution @elastic/security-solution -/x-pack/test/functional/es_archives/auditbeat/default @elastic/security-solution +/x-pack/platform/test/fixtures/es_archives/auditbeat/default @elastic/security-solution /x-pack/test_serverless/functional/test_suites/security/constants.ts @elastic/security-solution /x-pack/test_serverless/api_integration/test_suites/security @elastic/security-solution /x-pack/test_serverless/**/test_suites/security/platform_security/ @elastic/kibana-security #CC# /x-pack/solutions/security/plugins/security_solution/ @elastic/security-solution -/x-pack/test/functional/es_archives/cases/signals/duplicate_ids @elastic/kibana-cases +/x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids @elastic/kibana-cases # Security Solution OpenAPI bundles /x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_detections_api_* @elastic/security-detection-rule-management @@ -2585,7 +2581,7 @@ x-pack/test_serverless/functional/test_suites/security/config.context_awareness. /x-pack/test/security_solution_cypress/cypress/tasks/expandable_flyout @elastic/security-threat-hunting-investigations /x-pack/test/security_solution_cypress/cypress/e2e/sourcerer/sourcerer_timeline.cy.ts @elastic/security-threat-hunting-investigations -/x-pack/test/functional/es_archives/auditbeat/overview @elastic/security-threat-hunting-investigations +/x-pack/platform/test/fixtures/es_archives/auditbeat/overview @elastic/security-threat-hunting-investigations x-pack/test/security_solution_api_integration/test_suites/investigations @elastic/security-threat-hunting-investigations @@ -2789,9 +2785,9 @@ x-pack/test/security_solution_cypress/cypress/screens/users @elastic/security-en x-pack/test/security_solution_cypress/cypress/tasks/hosts @elastic/security-entity-analytics x-pack/test/security_solution_cypress/cypress/tasks/network @elastic/security-entity-analytics x-pack/test/security_solution_cypress/cypress/tasks/users @elastic/security-entity-analytics -x-pack/test/functional/es_archives/auditbeat/hosts @elastic/security-entity-analytics -x-pack/test/functional/es_archives/auditbeat/uncommon_processes @elastic/security-entity-analytics -x-pack/test/functional/es_archives/auditbeat/users @elastic/security-entity-analytics +x-pack/platform/test/fixtures/es_archives/auditbeat/hosts @elastic/security-entity-analytics +x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes @elastic/security-entity-analytics +x-pack/platform/test/fixtures/es_archives/auditbeat/users @elastic/security-entity-analytics x-pack/test/security_solution_api_integration/test_suites/entity_analytics @elastic/security-entity-analytics x-pack/test/security_solution_api_integration/test_suites/explore @elastic/security-entity-analytics @@ -2871,7 +2867,7 @@ x-pack/solutions/security/plugins/security_solution/server/lib/security_integrat /x-pack/solutions/security/plugins/security_solution_serverless/**/*.scss @elastic/security-design # Logstash -/x-pack/test/functional/es_archives/logstash/example_pipelines @elastic/logstash +/x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines @elastic/logstash /x-pack/test/functional/services/pipeline_* @elastic/logstash /x-pack/platform/test/functional/page_objects/logstash_page.ts @elastic/logstash /x-pack/platform/test/functional/apps/logstash @elastic/logstash diff --git a/scripts/archive_migration_functions.sh b/scripts/archive_migration_functions.sh index 4c8b34c210d0f..6d4b58ca07f9b 100755 --- a/scripts/archive_migration_functions.sh +++ b/scripts/archive_migration_functions.sh @@ -350,7 +350,7 @@ migrate() { load_logstash() { set -x - node scripts/es_archiver.js load x-pack/test/functional/es_archives/logstash_functional --config "$test_config" + node scripts/es_archiver.js load x-pack/platform/test/fixtures/es_archives/logstash_functional --config "$test_config" set +x } diff --git a/src/platform/packages/shared/kbn-es-archiver/README.mdx b/src/platform/packages/shared/kbn-es-archiver/README.mdx index 97133bc348762..b7afe9ac4277b 100644 --- a/src/platform/packages/shared/kbn-es-archiver/README.mdx +++ b/src/platform/packages/shared/kbn-es-archiver/README.mdx @@ -1,10 +1,21 @@ --- id: kibDevDocsOpsEsArchiver slug: /kibana-dev-docs/ops/es-archiver -title: "ES Archiver" +title: 'ES Archiver' description: A tool which helps developers capture and restore ES indexes date: 2024-01-11 -tags: ['kibana', 'dev', 'contributor', 'operations', 'ci', 'es-archiver', 'load', 'es-archiver-load-action', 'performance'] +tags: + [ + 'kibana', + 'dev', + 'contributor', + 'operations', + 'ci', + 'es-archiver', + 'load', + 'es-archiver-load-action', + 'performance', + ] --- The ES Archiver is a service primarily used by the Functional Tests to load up ES indexes using the bulk API which makes the archives more resilient to ES upgrades and easier to inspect/edit locally because they are just plain text files containing newline-delimited JSON (though they are sometimes compressed). @@ -19,26 +30,25 @@ Additional information about what functionality the CLI provides can be found by ## Performance Option Parameter -We now have a performance parameter for the es-archiver#load(), entry-point +We now have a performance parameter for the es-archiver#load(), entry-point function. This parameter is optional, with defaults: - - Batch size: 5000 - - Concurrency (maximum number of bulk requests that can be active in parallel): 4 +- Batch size: 5000 +- Concurrency (maximum number of bulk requests that can be active in parallel): 4 -According to our benchmarks, these default settings are giving the best results in terms of loading time for -the majority of the archives. +According to our benchmarks, these default settings are giving the best results in terms of loading time for +the majority of the archives. However, there might be cases where different settings are needed, so they can be overridden when loading an archive. - ### How to override the default performance settings in test files To control the batch size and concurrency -#### Example +#### Example ```typescript -await esArchiver.load('x-pack/test/functional/es_archives/getting_started/shakespeare', { +await esArchiver.load('x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare', { performance: { batchSize: 300, concurrency: 1, diff --git a/src/platform/packages/shared/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json b/src/platform/packages/shared/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json index be5cc4c893c10..747d6efdeb301 100644 --- a/src/platform/packages/shared/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json +++ b/src/platform/packages/shared/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json @@ -1,17 +1,15 @@ [ - "x-pack/test/functional/es_archives/action_task_params", - "x-pack/test/functional/es_archives/actions", - "x-pack/test/functional/es_archives/alerting/8_2_0", - "x-pack/test/functional/es_archives/alerts", - "x-pack/test/functional/es_archives/alerts_legacy/rules", - "x-pack/test/functional/es_archives/alerts_legacy/tasks", - "x-pack/test/functional/es_archives/cases/default", - "x-pack/test/functional/es_archives/cases/migrations/7.11.1", - "x-pack/test/functional/es_archives/cases/migrations/7.13.2", - "x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions", - "x-pack/test/functional/es_archives/cases/migrations/7.16.0_space", - "x-pack/test/functional/es_archives/cases/migrations/8.8.0", - "x-pack/test/functional/es_archives/data/search_sessions", + "x-pack/platform/test/fixtures/es_archives/action_task_params", + "x-pack/platform/test/fixtures/es_archives/actions", + "x-pack/platform/test/fixtures/es_archives/alerting/8_2_0", + "x-pack/platform/test/fixtures/es_archives/alerts", + "x-pack/platform/test/fixtures/es_archives/cases/default", + "x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1", + "x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2", + "x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions", + "x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space", + "x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0", + "x-pack/platform/test/fixtures/es_archives/data/search_sessions", "x-pack/test/functional/es_archives/endpoint/telemetry/agent_only", "x-pack/test/functional/es_archives/endpoint/telemetry/cloned_endpoint_different_states", "x-pack/test/functional/es_archives/endpoint/telemetry/cloned_endpoint_installed", @@ -19,17 +17,16 @@ "x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_malware_disabled", "x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_malware_enabled", "x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_uninstalled", - "x-pack/test/functional/es_archives/event_log_legacy_ids", - "x-pack/test/functional/es_archives/event_log_multiple_indicies", - "x-pack/test/functional/es_archives/fleet/agents", - "x-pack/test/functional/es_archives/lists", - "x-pack/test/functional/es_archives/rules_scheduled_task_id/rules", - "x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks", + "x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids", + "x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies", + "x-pack/platform/test/fixtures/es_archives/fleet/agents", + "x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules", + "x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks", "x-pack/test/functional/es_archives/security_solution/import_rule_connector", "x-pack/test/functional/es_archives/security_solution/migrations", "x-pack/test/functional/es_archives/security_solution/resolve_read_rules/7_14", "x-pack/test/functional/es_archives/security_solution/timelines/7.15.0", "x-pack/test/functional/es_archives/security_solution/timelines/7.15.0_space", - "x-pack/test/functional/es_archives/task_manager_removed_types", - "x-pack/test/functional/es_archives/task_manager_tasks" + "x-pack/platform/test/fixtures/es_archives/task_manager_removed_types", + "x-pack/platform/test/fixtures/es_archives/task_manager_tasks" ] diff --git a/src/platform/test/examples/discover_customization_examples/customizations.ts b/src/platform/test/examples/discover_customization_examples/customizations.ts index 0a2754529ad0e..47e7dbc458f1b 100644 --- a/src/platform/test/examples/discover_customization_examples/customizations.ts +++ b/src/platform/test/examples/discover_customization_examples/customizations.ts @@ -26,7 +26,9 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { describe('Customizations', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); @@ -46,7 +48,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/src/platform/test/examples/unified_field_list_examples/field_stats.ts b/src/platform/test/examples/unified_field_list_examples/field_stats.ts index 181d2280a12d2..be6054657b9da 100644 --- a/src/platform/test/examples/unified_field_list_examples/field_stats.ts +++ b/src/platform/test/examples/unified_field_list_examples/field_stats.ts @@ -27,11 +27,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { describe('Field stats', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/pre_calculated_histogram'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram' + ); await PageObjects.common.navigateToApp('unifiedFieldListExamples'); await PageObjects.header.waitUntilLoadingHasFinished(); await retry.waitFor('combobox is ready', async () => { @@ -47,8 +51,8 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); - await esArchiver.unload('x-pack/test/functional/es_archives/pre_calculated_histogram'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram'); await kibanaServer.savedObjects.cleanStandardList(); await PageObjects.unifiedFieldList.cleanSidebarLocalStorage(); }); diff --git a/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts b/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts index d0e8598a3d67a..8485dbb9cebda 100644 --- a/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts +++ b/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts @@ -47,7 +47,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/src/platform/test/functional/apps/discover/group4/_adhoc_data_views.ts b/src/platform/test/functional/apps/discover/group4/_adhoc_data_views.ts index 2e7cf0db098f0..60668cd2c9c6a 100644 --- a/src/platform/test/functional/apps/discover/group4/_adhoc_data_views.ts +++ b/src/platform/test/functional/apps/discover/group4/_adhoc_data_views.ts @@ -58,7 +58,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('should navigate back correctly from to surrounding and single views', async () => { diff --git a/src/platform/test/functional/apps/discover/group4/_data_view_edit.ts b/src/platform/test/functional/apps/discover/group4/_data_view_edit.ts index f08782cdfef45..218e060bc4dec 100644 --- a/src/platform/test/functional/apps/discover/group4/_data_view_edit.ts +++ b/src/platform/test/functional/apps/discover/group4/_data_view_edit.ts @@ -43,7 +43,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await es.transport.request({ path: '/data-view-index-000001', method: 'DELETE', diff --git a/src/platform/test/functional/apps/discover/group4/_field_list_new_fields.ts b/src/platform/test/functional/apps/discover/group4/_field_list_new_fields.ts index a28e4aecbeded..abf2f8eaa76da 100644 --- a/src/platform/test/functional/apps/discover/group4/_field_list_new_fields.ts +++ b/src/platform/test/functional/apps/discover/group4/_field_list_new_fields.ts @@ -41,7 +41,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await es.transport.request({ path: '/my-index-000001', method: 'DELETE', diff --git a/x-pack/performance/journeys_e2e/aiops_log_rate_analysis.ts b/x-pack/performance/journeys_e2e/aiops_log_rate_analysis.ts index 888a4802e6a51..f7c72a6d3835f 100644 --- a/x-pack/performance/journeys_e2e/aiops_log_rate_analysis.ts +++ b/x-pack/performance/journeys_e2e/aiops_log_rate_analysis.ts @@ -12,7 +12,7 @@ import dataView from '../kbn_archives/large_arrays_data_view.json'; export const journey = new Journey({ kbnArchives: ['x-pack/performance/kbn_archives/large_arrays_data_view'], - esArchives: ['x-pack/test/functional/es_archives/large_arrays'], + esArchives: ['x-pack/platform/test/fixtures/es_archives/large_arrays'], }) .step('Go to AIOps Log Rate Analysis', async ({ page, kbnUrl, kibanaPage }) => { // Navigate to Log Rate Analysis with just a prepopulated time range. diff --git a/x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/fixtures/constants.ts b/x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/fixtures/constants.ts index a570a816bcd3d..5bf7fd4489e2a 100644 --- a/x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/fixtures/constants.ts +++ b/x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/fixtures/constants.ts @@ -39,10 +39,10 @@ export const LOGSTASH_IN_RANGE_DATES = { }; export const ES_ARCHIVES = { - LOGSTASH: 'x-pack/test/functional/es_archives/logstash_functional', + LOGSTASH: 'x-pack/platform/test/fixtures/es_archives/logstash_functional', NO_TIME_FIELD: 'src/platform/test/functional/fixtures/es_archiver/index_pattern_without_timefield', - ECOMMERCE: 'x-pack/test/functional/es_archives/reporting/ecommerce', + ECOMMERCE: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', }; export const KBN_ARCHIVES = { diff --git a/x-pack/platform/test/accessibility/apps/group1/roles.ts b/x-pack/platform/test/accessibility/apps/group1/roles.ts index 8a9fe187ba35b..1d560194eb5ad 100644 --- a/x-pack/platform/test/accessibility/apps/group1/roles.ts +++ b/x-pack/platform/test/accessibility/apps/group1/roles.ts @@ -20,7 +20,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Kibana roles page Accessibility', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.update({ defaultIndex: 'logstash-*', }); @@ -28,7 +30,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('a11y test for Roles main page', async () => { diff --git a/x-pack/platform/test/accessibility/apps/group1/search_profiler.ts b/x-pack/platform/test/accessibility/apps/group1/search_profiler.ts index fbd3649120ea1..1356ccbb1efad 100644 --- a/x-pack/platform/test/accessibility/apps/group1/search_profiler.ts +++ b/x-pack/platform/test/accessibility/apps/group1/search_profiler.ts @@ -17,14 +17,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Search Profiler Editor Accessibility', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await PageObjects.common.navigateToApp('searchProfiler'); await a11y.testAppSnapshot(); expect(await testSubjects.exists('searchProfilerEditor')).to.be(true); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('input the JSON in the editor', async () => { diff --git a/x-pack/platform/test/accessibility/apps/group2/lens.ts b/x-pack/platform/test/accessibility/apps/group2/lens.ts index e3a60b3935716..9e1c5a4011e29 100644 --- a/x-pack/platform/test/accessibility/apps/group2/lens.ts +++ b/x-pack/platform/test/accessibility/apps/group2/lens.ts @@ -31,14 +31,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Lens Accessibility', () => { const lensChartName = 'MyLensChart'; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/accessibility/apps/group2/ml.ts b/x-pack/platform/test/accessibility/apps/group2/ml.ts index 1494b9d8e5724..c0611c2f4f440 100644 --- a/x-pack/platform/test/accessibility/apps/group2/ml.ts +++ b/x-pack/platform/test/accessibility/apps/group2/ml.ts @@ -72,11 +72,15 @@ export default function ({ getService }: FtrProviderContext) { ); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/egs_regression'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/egs_regression' + ); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await ml.testResources.createDataViewIfNeeded(ihpIndexName); await ml.testResources.createDataViewIfNeeded(egsIndexName); @@ -97,10 +101,12 @@ export default function ({ getService }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle(egsIndexName); await ml.testResources.deleteDataViewByTitle(bmIndexName); await ml.testResources.deleteDataViewByTitle(ecIndexName); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/egs_regression'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/bm_classification'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/accessibility/apps/group2/ml_anomaly_detection.ts b/x-pack/platform/test/accessibility/apps/group2/ml_anomaly_detection.ts index a52d018d4bbfc..1e1d303d236ba 100644 --- a/x-pack/platform/test/accessibility/apps/group2/ml_anomaly_detection.ts +++ b/x-pack/platform/test/accessibility/apps/group2/ml_anomaly_detection.ts @@ -199,12 +199,12 @@ export default function ({ getService }: FtrProviderContext) { }; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/categorization_small' + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' ); await ml.testResources.createDataViewIfNeeded(fqIndexName, '@timestamp'); await ml.testResources.createDataViewIfNeeded(ecIndexName, 'order_date'); @@ -243,9 +243,13 @@ export default function ({ getService }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle(fqIndexName); await ml.testResources.deleteDataViewByTitle(ecIndexName); await ml.testResources.deleteDataViewByTitle(categorizationIndexName); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization_small'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/accessibility/apps/group2/transform.ts b/x-pack/platform/test/accessibility/apps/group2/transform.ts index dac3f8545001b..fffef7ef9b128 100644 --- a/x-pack/platform/test/accessibility/apps/group2/transform.ts +++ b/x-pack/platform/test/accessibility/apps/group2/transform.ts @@ -84,7 +84,7 @@ export default function ({ getService }: FtrProviderContext) { const latestTransformDestinationIndex = `user-${latestTransformId}`; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded(ecIndexName, 'order_date'); await transform.testResources.setKibanaTimeZoneToUTC(); }); @@ -96,7 +96,7 @@ export default function ({ getService }: FtrProviderContext) { await transform.testResources.deleteDataViewByTitle(pivotTransformDestinationIndex); await transform.testResources.deleteDataViewByTitle(latestTransformDestinationIndex); await transform.testResources.deleteDataViewByTitle(ecIndexName); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/accessibility/apps/group3/ml_embeddables_in_dashboard.ts b/x-pack/platform/test/accessibility/apps/group3/ml_embeddables_in_dashboard.ts index 998fe73a98403..d3f5c8796bdcc 100644 --- a/x-pack/platform/test/accessibility/apps/group3/ml_embeddables_in_dashboard.ts +++ b/x-pack/platform/test/accessibility/apps/group3/ml_embeddables_in_dashboard.ts @@ -65,7 +65,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await ml.securityCommon.createMlRoles(); await ml.securityCommon.createMlUsers(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); @@ -77,7 +77,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); }); for (const testData of testDataList) { diff --git a/x-pack/platform/test/accessibility/apps/group3/search_sessions.ts b/x-pack/platform/test/accessibility/apps/group3/search_sessions.ts index eed2d74a70967..dec7336292ba6 100644 --- a/x-pack/platform/test/accessibility/apps/group3/search_sessions.ts +++ b/x-pack/platform/test/accessibility/apps/group3/search_sessions.ts @@ -17,12 +17,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Search sessions Accessibility', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/data/search_sessions'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/data/search_sessions'); await searchSessionsManagement.goTo(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/data/search_sessions'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/data/search_sessions'); }); it('Search sessions management page populated with search sessions meets a11y requirements', async () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts index 84606bc67b059..7fd66c4eee353 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts @@ -17,11 +17,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/action_task_params'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/action_task_params'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/action_task_params'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/action_task_params'); }); it('7.16.0 migrates action_task_params to use references array', async () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts index 207b24c4e1cb6..c3554ffa3e55b 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts @@ -16,11 +16,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/actions'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/actions'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/actions'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/actions'); }); it('7.10.0 migrates the `casesConfiguration` to be the `incidentConfiguration` in `config`, then 7.11.0 removes `incidentConfiguration`', async () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts index 936e6d2a712d5..d53682e7dc71e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts @@ -17,8 +17,8 @@ export default function typeNotEnabledTests({ getService }: FtrProviderContext) describe('connectorType not enabled', () => { // loads connector PREWRITTEN_CONNECTOR_ID with connectorType DISABLED_CONNECTOR_TYPE - before(() => esArchiver.load('x-pack/test/functional/es_archives/actions')); - after(() => esArchiver.unload('x-pack/test/functional/es_archives/actions')); + before(() => esArchiver.load('x-pack/platform/test/fixtures/es_archives/actions')); + after(() => esArchiver.unload('x-pack/platform/test/fixtures/es_archives/actions')); it('should handle create connector with disabled connector type request appropriately', async () => { const response = await supertest.post(`/api/actions/connector`).set('kbn-xsrf', 'foo').send({ diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts index 02c0ac7f98ec9..2213ef760cccf 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts @@ -91,7 +91,7 @@ export default function ruleTests({ getService }: FtrProviderContext) { await esTestIndexToolAAD.removeAll(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); connectorId = await createConnector(); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts index 8f3960f37bc42..0496ec2e1f32e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts @@ -22,11 +22,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/alerts'); }); it('7.10.0 migrates the `alerting` consumer to be the `alerts`', async () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts index 94bb74c0bcd7c..155a34ea934ac 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts @@ -21,11 +21,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { let testStart: null | number = null; before(async () => { testStart = Date.now(); - await esArchiver.load('x-pack/test/functional/es_archives/alerting/8_2_0'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/alerting/8_2_0'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/alerting/8_2_0'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/alerting/8_2_0'); }); describe('rule with null snoozeEndTime value', () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts index fc396836bf9f9..84774874b845f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts @@ -24,8 +24,12 @@ export default function createRunSoonTests({ getService }: FtrProviderContext) { // Not 100% sure why, seems the rules need to be loaded separately to avoid the task // failing to load the rule during execution and deleting itself. Otherwise // we have flakiness - await esArchiver.load('x-pack/test/functional/es_archives/rules_scheduled_task_id/rules'); - await esArchiver.load('x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules' + ); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks' + ); }); afterEach(async () => { @@ -33,8 +37,12 @@ export default function createRunSoonTests({ getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks'); - await esArchiver.unload('x-pack/test/functional/es_archives/rules_scheduled_task_id/rules'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules' + ); }); it('should successfully run rule where scheduled task id is different than rule id', async () => { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts index 574bcca944c8f..a863dd18de9d4 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts @@ -34,13 +34,21 @@ export default function createScheduledTaskIdTests({ getService }: FtrProviderCo // Not 100% sure why, seems the rules need to be loaded separately to avoid the task // failing to load the rule during execution and deleting itself. Otherwise // we have flakiness - await esArchiver.load('x-pack/test/functional/es_archives/rules_scheduled_task_id/rules'); - await esArchiver.load('x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules' + ); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks' + ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks'); - await esArchiver.unload('x-pack/test/functional/es_archives/rules_scheduled_task_id/rules'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules' + ); }); it('cannot create rule with same ID as a scheduled task ID used by another rule', async () => { diff --git a/x-pack/platform/test/api_integration/apis/aiops/test_data.ts b/x-pack/platform/test/api_integration/apis/aiops/test_data.ts index 37fe9ca625716..d6a2aff7079a2 100644 --- a/x-pack/platform/test/api_integration/apis/aiops/test_data.ts +++ b/x-pack/platform/test/api_integration/apis/aiops/test_data.ts @@ -72,7 +72,7 @@ const expectedArtificialLogsFieldCandidatesWithTextfield = { export const getLogRateAnalysisTestData = (): Array> => [ { testName: 'ecommerce', - esArchive: 'x-pack/test/functional/es_archives/ml/ecommerce', + esArchive: 'x-pack/platform/test/fixtures/es_archives/ml/ecommerce', requestBody: { baselineMax: 1687949483292, baselineMin: 1687184547006, diff --git a/x-pack/platform/test/api_integration/apis/file_upload/index_exists.ts b/x-pack/platform/test/api_integration/apis/file_upload/index_exists.ts index ee281942b82e7..d15ff3a75bf5d 100644 --- a/x-pack/platform/test/api_integration/apis/file_upload/index_exists.ts +++ b/x-pack/platform/test/api_integration/apis/file_upload/index_exists.ts @@ -15,11 +15,13 @@ export default ({ getService }: FtrProviderContext) => { describe('POST /internal/file_upload/index_exists', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('should return true when index exists', async () => { diff --git a/x-pack/platform/test/api_integration/apis/logstash/pipeline/load.ts b/x-pack/platform/test/api_integration/apis/logstash/pipeline/load.ts index c08acb3d9cf21..8d97f0f457e85 100644 --- a/x-pack/platform/test/api_integration/apis/logstash/pipeline/load.ts +++ b/x-pack/platform/test/api_integration/apis/logstash/pipeline/load.ts @@ -14,7 +14,7 @@ export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); describe('list', () => { - const archive = 'x-pack/test/functional/es_archives/logstash/example_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines'; before('load pipelines archive', () => { return esArchiver.load(archive); diff --git a/x-pack/platform/test/api_integration/apis/logstash/pipelines/delete.ts b/x-pack/platform/test/api_integration/apis/logstash/pipelines/delete.ts index 9a18f197c13f3..6f51087ba81f7 100644 --- a/x-pack/platform/test/api_integration/apis/logstash/pipelines/delete.ts +++ b/x-pack/platform/test/api_integration/apis/logstash/pipelines/delete.ts @@ -11,7 +11,7 @@ export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); describe('delete', () => { - const archive = 'x-pack/test/functional/es_archives/logstash/example_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines'; before('load pipelines archive', async () => { await esArchiver.load(archive); diff --git a/x-pack/platform/test/api_integration/apis/logstash/pipelines/list.ts b/x-pack/platform/test/api_integration/apis/logstash/pipelines/list.ts index 0734795e00cb0..c00700a2885ac 100644 --- a/x-pack/platform/test/api_integration/apis/logstash/pipelines/list.ts +++ b/x-pack/platform/test/api_integration/apis/logstash/pipelines/list.ts @@ -14,7 +14,7 @@ export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); // Failing: See https://github.com/elastic/kibana/issues/151350 describe.skip('list', () => { - const archive = 'x-pack/test/functional/es_archives/logstash/example_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines'; before('load pipelines archive', () => { return esArchiver.load(archive); diff --git a/x-pack/platform/test/api_integration/apis/maps/index.ts b/x-pack/platform/test/api_integration/apis/maps/index.ts index 0badec47992f5..27b4d826ef2d8 100644 --- a/x-pack/platform/test/api_integration/apis/maps/index.ts +++ b/x-pack/platform/test/api_integration/apis/maps/index.ts @@ -13,16 +13,18 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { describe('Maps endpoints', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); - await esArchiver.load('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); diff --git a/x-pack/platform/test/api_integration/apis/ml/annotations/create_annotations.ts b/x-pack/platform/test/api_integration/apis/ml/annotations/create_annotations.ts index 7ef4b703aab91..4532213c93675 100644 --- a/x-pack/platform/test/api_integration/apis/ml/annotations/create_annotations.ts +++ b/x-pack/platform/test/api_integration/apis/ml/annotations/create_annotations.ts @@ -23,7 +23,7 @@ export default ({ getService }: FtrProviderContext) => { describe('create_annotations', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); // @ts-expect-error not full interface await ml.api.createAnomalyDetectionJob(testJobConfig); diff --git a/x-pack/platform/test/api_integration/apis/ml/annotations/delete_annotations.ts b/x-pack/platform/test/api_integration/apis/ml/annotations/delete_annotations.ts index 3757fae714eaf..c3ec3cd898ec6 100644 --- a/x-pack/platform/test/api_integration/apis/ml/annotations/delete_annotations.ts +++ b/x-pack/platform/test/api_integration/apis/ml/annotations/delete_annotations.ts @@ -18,7 +18,7 @@ export default ({ getService }: FtrProviderContext) => { describe('delete_annotations', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); // generate one annotation for each job diff --git a/x-pack/platform/test/api_integration/apis/ml/annotations/get_annotations.ts b/x-pack/platform/test/api_integration/apis/ml/annotations/get_annotations.ts index a8e6d25fd1487..618abeb0b8fdb 100644 --- a/x-pack/platform/test/api_integration/apis/ml/annotations/get_annotations.ts +++ b/x-pack/platform/test/api_integration/apis/ml/annotations/get_annotations.ts @@ -19,7 +19,7 @@ export default ({ getService }: FtrProviderContext) => { describe('get_annotations', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); // generate one annotation for each job diff --git a/x-pack/platform/test/api_integration/apis/ml/annotations/update_annotations.ts b/x-pack/platform/test/api_integration/apis/ml/annotations/update_annotations.ts index af139d965bdae..5955a5816578b 100644 --- a/x-pack/platform/test/api_integration/apis/ml/annotations/update_annotations.ts +++ b/x-pack/platform/test/api_integration/apis/ml/annotations/update_annotations.ts @@ -31,7 +31,7 @@ export default ({ getService }: FtrProviderContext) => { describe('update_annotations', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); // generate one annotation for each job diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create.ts index 4c2749717e191..f4d758eee5c5f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create.ts @@ -99,7 +99,7 @@ export default ({ getService }: FtrProviderContext) => { describe('create', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create_with_datafeed.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create_with_datafeed.ts index 5d6ab6e08b14d..c95967b81032f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create_with_datafeed.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/create_with_datafeed.ts @@ -65,7 +65,7 @@ export default ({ getService }: FtrProviderContext) => { describe('PUT anomaly_detectors which contain a datafeed config', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/forecast_with_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/forecast_with_spaces.ts index caefe5f38c613..48e8480be1012 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/forecast_with_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/forecast_with_spaces.ts @@ -64,7 +64,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST anomaly_detectors _forecast with spaces', function () { let forecastId: string; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get.ts index 65c54b73b0bc7..400e856052752 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get.ts @@ -59,7 +59,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET anomaly_detectors', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(); diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_buckets.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_buckets.ts index eab3594685a4e..28c6bc7fef784 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_buckets.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_buckets.ts @@ -44,7 +44,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST anomaly_detectors results buckets', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); const jobConfig = ml.commonConfig.getADFqSingleMetricJobConfig(jobId); diff --git a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_overall_buckets.ts b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_overall_buckets.ts index fda005f203f1b..3fe2a721b894f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_overall_buckets.ts +++ b/x-pack/platform/test/api_integration/apis/ml/anomaly_detectors/get_overall_buckets.ts @@ -57,7 +57,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST anomaly_detectors results overall_buckets', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const jobId of [jobId1, jobId2]) { diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/create_job.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/create_job.ts index 52f39722cb827..76f7aecae3f5f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/create_job.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/create_job.ts @@ -81,7 +81,9 @@ export default ({ getService }: FtrProviderContext) => { describe('PUT data_frame/analytics/{analyticsId}', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete.ts index 5c7b267f3160d..d5170331a3b9a 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete.ts @@ -65,7 +65,9 @@ export default ({ getService }: FtrProviderContext) => { describe('DELETE data_frame/analytics', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(testJobConfigs); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete_spaces.ts index 4e31444036247..15cde055f2c00 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/delete_spaces.ts @@ -36,7 +36,7 @@ export default ({ getService }: FtrProviderContext) => { describe('DELETE data_frame/analytics with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/evaluate.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/evaluate.ts index 6ca6e3a0cc626..e3e901630e995 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/evaluate.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/evaluate.ts @@ -113,8 +113,10 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/_evaluate', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/egs_regression'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(testJobConfigs); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/explain.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/explain.ts index ccecdc49f3e55..7c8d0409f6cb0 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/explain.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/explain.ts @@ -77,9 +77,11 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/_explain', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/egs_regression'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get.ts index e010d5722e99e..e3d0e9126130d 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get.ts @@ -83,7 +83,9 @@ export default ({ getService }: FtrProviderContext) => { describe('GET data_frame/analytics', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get_spaces.ts index 76cc017b47166..35b37cc04065b 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/get_spaces.ts @@ -60,7 +60,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET data_frame/analytics with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/jobs_exist_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/jobs_exist_spaces.ts index 2e0a7e1c47a67..f0a163bb2cc5e 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/jobs_exist_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/jobs_exist_spaces.ts @@ -45,7 +45,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/jobs_exist with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/new_job_caps.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/new_job_caps.ts index 0b30bcf3ff6b9..da9e7c2be0ec6 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/new_job_caps.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/new_job_caps.ts @@ -36,7 +36,9 @@ export default ({ getService }: FtrProviderContext) => { describe('GET data_frame/analytics/new_job_caps', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start.ts index ebe19cf551cff..324e9d36bdae6 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start.ts @@ -65,7 +65,9 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/{analyticsId}/_start', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(testJobConfigs); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start_spaces.ts index 37e41851aff0f..e5d8b2297fe08 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/start_spaces.ts @@ -43,7 +43,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/{analyticsId}/_start with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop.ts index 9724aec7d8d14..20aa684d54c81 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop.ts @@ -22,7 +22,9 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/{analyticsId}/_stop', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); // job config with high training percent so it takes longer to run const slowRunningConfig = ml.commonConfig.getDFABmClassificationJobConfig(analyticsId); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts index 740378557a08a..6a7b48a8d75eb 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts @@ -43,7 +43,9 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/{analyticsId}/_stop with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await spacesService.create({ id: idSpace3, name: 'space_three', disabledFeatures: [] }); await spacesService.create({ id: idSpace4, name: 'space_four', disabledFeatures: [] }); // job config with high training percent so it takes longer to run diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update.ts index 88cc702dad651..8e0be9a27c088 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update.ts @@ -79,7 +79,9 @@ export default ({ getService }: FtrProviderContext) => { describe('UPDATE data_frame/analytics', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await createJobs(testJobConfigs); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update_spaces.ts index f9177eef17049..dbec7a9eb06e3 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/update_spaces.ts @@ -46,7 +46,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics _update with spaces', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/validate.ts b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/validate.ts index dc6d7fafc7144..70d16bcc49934 100644 --- a/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/validate.ts +++ b/x-pack/platform/test/api_integration/apis/ml/data_frame_analytics/validate.ts @@ -77,7 +77,9 @@ export default ({ getService }: FtrProviderContext) => { describe('POST data_frame/analytics/validate', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/datafeeds/preview.ts b/x-pack/platform/test/api_integration/apis/ml/datafeeds/preview.ts index 02d305d2a75de..28150fcd96bcd 100644 --- a/x-pack/platform/test/api_integration/apis/ml/datafeeds/preview.ts +++ b/x-pack/platform/test/api_integration/apis/ml/datafeeds/preview.ts @@ -42,7 +42,7 @@ export default ({ getService }: FtrProviderContext) => { before(async () => { await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); const jobConfig = ml.commonConfig.getADFqSingleMetricJobConfig(jobIdSpace1); await ml.api.createAnomalyDetectionJob(jobConfig, idSpace1); diff --git a/x-pack/platform/test/api_integration/apis/ml/fields_service/field_cardinality.ts b/x-pack/platform/test/api_integration/apis/ml/fields_service/field_cardinality.ts index 118c081195407..af85b8edff4b7 100644 --- a/x-pack/platform/test/api_integration/apis/ml/fields_service/field_cardinality.ts +++ b/x-pack/platform/test/api_integration/apis/ml/fields_service/field_cardinality.ts @@ -90,7 +90,7 @@ export default ({ getService }: FtrProviderContext) => { describe('field_cardinality', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/fields_service/time_field_range.ts b/x-pack/platform/test/api_integration/apis/ml/fields_service/time_field_range.ts index dc982f892a9bf..d262cf0a89bb5 100644 --- a/x-pack/platform/test/api_integration/apis/ml/fields_service/time_field_range.ts +++ b/x-pack/platform/test/api_integration/apis/ml/fields_service/time_field_range.ts @@ -78,7 +78,7 @@ export default ({ getService }: FtrProviderContext) => { describe('time_field_range', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/index.ts b/x-pack/platform/test/api_integration/apis/ml/index.ts index cccc5ee561984..469d0866adf19 100644 --- a/x-pack/platform/test/api_integration/apis/ml/index.ts +++ b/x-pack/platform/test/api_integration/apis/ml/index.ts @@ -28,29 +28,47 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization_small'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_apache'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_auditbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_apm_transaction'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_heartbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_logs'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_nginx'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_logs'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_security_endpoint'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_security_auditbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_security_packetbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_security_winlogbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_metricbeat'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_security_cloudtrail'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_metrics_ui'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_apache_data_stream'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_nginx_data_stream'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/categorization'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/categorization_small'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_apache'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction' + ); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_logs'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_nginx'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat' + ); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/bm_classification'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail' + ); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream' + ); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/clear_messages.ts b/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/clear_messages.ts index 3c17e74b07f5e..cb6a8d448d7dd 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/clear_messages.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/clear_messages.ts @@ -22,7 +22,7 @@ export default ({ getService }: FtrProviderContext) => { describe('clear_messages', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const jobConfig of getJobConfig(2)) { diff --git a/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/get_job_audit_messages.ts b/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/get_job_audit_messages.ts index 1b3f7f3c3506a..3dec73b9b28d3 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/get_job_audit_messages.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_audit_messages/get_job_audit_messages.ts @@ -20,7 +20,7 @@ export default ({ getService }: FtrProviderContext) => { describe('get_job_audit_messages', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const jobConfig of getJobConfig(2)) { diff --git a/x-pack/platform/test/api_integration/apis/ml/job_validation/bucket_span_estimator.ts b/x-pack/platform/test/api_integration/apis/ml/job_validation/bucket_span_estimator.ts index 1713518395aa5..992ee1a819046 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_validation/bucket_span_estimator.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_validation/bucket_span_estimator.ts @@ -88,7 +88,7 @@ export default ({ getService }: FtrProviderContext) => { describe('bucket span estimator', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/job_validation/calculate_model_memory_limit.ts b/x-pack/platform/test/api_integration/apis/ml/job_validation/calculate_model_memory_limit.ts index f3d8ff5d29f01..196d0b5ae560d 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_validation/calculate_model_memory_limit.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_validation/calculate_model_memory_limit.ts @@ -145,7 +145,7 @@ export default ({ getService }: FtrProviderContext) => { describe('calculate model memory limit', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/job_validation/cardinality.ts b/x-pack/platform/test/api_integration/apis/ml/job_validation/cardinality.ts index b66f41ef4a2de..783d045b6e62b 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_validation/cardinality.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_validation/cardinality.ts @@ -19,7 +19,7 @@ export default ({ getService }: FtrProviderContext) => { describe('ValidateCardinality', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/job_validation/datafeed_preview_validation.ts b/x-pack/platform/test/api_integration/apis/ml/job_validation/datafeed_preview_validation.ts index 34d8f95884e08..c7addbc902756 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_validation/datafeed_preview_validation.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_validation/datafeed_preview_validation.ts @@ -87,7 +87,7 @@ export default ({ getService }: FtrProviderContext) => { describe('Validate datafeed preview', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createIndex('farequote_empty', farequoteMappings); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/job_validation/validate.ts b/x-pack/platform/test/api_integration/apis/ml/job_validation/validate.ts index af4a8b33cb2ac..858da085b17ba 100644 --- a/x-pack/platform/test/api_integration/apis/ml/job_validation/validate.ts +++ b/x-pack/platform/test/api_integration/apis/ml/job_validation/validate.ts @@ -22,7 +22,7 @@ export default ({ getService }: FtrProviderContext) => { describe('Validate job', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/all_jobs_and_group_ids.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/all_jobs_and_group_ids.ts index 903a74dd31333..4c97ef7c8d423 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/all_jobs_and_group_ids.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/all_jobs_and_group_ids.ts @@ -53,7 +53,7 @@ export default ({ getService }: FtrProviderContext) => { describe('get all job and group IDs', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const job of testSetupJobConfigs) { diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/bulk_create_jobs.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/bulk_create_jobs.ts index a06d5a20ea97d..d5ae1a3b61f44 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/bulk_create_jobs.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/bulk_create_jobs.ts @@ -52,7 +52,7 @@ export default ({ getService }: FtrProviderContext) => { describe('bulk create jobs', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/categorization_field_examples.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/categorization_field_examples.ts index 529f84df377fb..afd2bb7fff0fd 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/categorization_field_examples.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/categorization_field_examples.ts @@ -286,7 +286,9 @@ export default ({ getService }: FtrProviderContext) => { describe('Categorization example endpoint - ', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/category_results.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/category_results.ts index 08e331ec708c2..744b6dd394461 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/category_results.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/category_results.ts @@ -203,7 +203,9 @@ export default ({ getService }: FtrProviderContext) => { describe('Categorization job results', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createAnomalyDetectionJob(job); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/close_jobs.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/close_jobs.ts index 3f65a255c90dd..1f162eeb172f4 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/close_jobs.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/close_jobs.ts @@ -45,7 +45,7 @@ export default ({ getService }: FtrProviderContext) => { describe('close_jobs', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/datafeed_preview.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/datafeed_preview.ts index 4db19311edfaf..0e19eac201f79 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/datafeed_preview.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/datafeed_preview.ts @@ -40,7 +40,7 @@ export default ({ getService }: FtrProviderContext) => { describe('Datafeed preview', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/delete_jobs.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/delete_jobs.ts index acf7188dbb00e..dd68dec441793 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/delete_jobs.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/delete_jobs.ts @@ -80,7 +80,7 @@ export default ({ getService }: FtrProviderContext) => { describe('delete_jobs', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts index 39e435b363186..3abb003c3fd21 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts @@ -113,7 +113,7 @@ export default ({ getService }: FtrProviderContext) => { describe('force_start_datafeeds', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const job of testSetupJobConfigs) { diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts index 4fb636874d34a..a9e877eb34d80 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts @@ -52,7 +52,7 @@ export default ({ getService }: FtrProviderContext) => { await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/get_groups.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/get_groups.ts index 6600bf6a2c4ee..4241847522103 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/get_groups.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/get_groups.ts @@ -77,7 +77,7 @@ export default ({ getService }: FtrProviderContext) => { describe('get groups', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const job of testSetupJobConfigs) { diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs.ts index 891bc5dd7a0bb..a4392732b7565 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs.ts @@ -94,7 +94,7 @@ export default ({ getService }: FtrProviderContext) => { describe('get combined jobs with stats', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_exist.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_exist.ts index b05b0cbd90dc5..e919315fd7454 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_exist.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_exist.ts @@ -82,7 +82,7 @@ export default ({ getService }: FtrProviderContext) => { describe('jobs_exist', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_summary.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_summary.ts index 4ded58671c9e2..16d6c3c2a7d61 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_summary.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_summary.ts @@ -199,7 +199,7 @@ export default ({ getService }: FtrProviderContext) => { describe('jobs_summary', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_with_time_range.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_with_time_range.ts index 2044a4b79bf93..3e3974a6ebde7 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_with_time_range.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/jobs_with_time_range.ts @@ -48,7 +48,7 @@ export default ({ getService }: FtrProviderContext) => { describe('jobs with time range', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); const job = SINGLE_METRIC_JOB_CONFIG; const jobId = job.job_id; diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/reset.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/reset.ts index a26780463f64e..2fb97e08bcdcd 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/reset.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/reset.ts @@ -54,7 +54,7 @@ export default ({ getService }: FtrProviderContext) => { describe('reset_jobs', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds.ts index bdb1f7fcc952b..799c260095413 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds.ts @@ -107,7 +107,7 @@ export default ({ getService }: FtrProviderContext) => { describe('stop_datafeeds', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const job of testSetupJobConfigs) { diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds_spaces.ts index 6eca325081ef9..a5a5c5570b09b 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/stop_datafeeds_spaces.ts @@ -48,7 +48,7 @@ export default ({ getService }: FtrProviderContext) => { await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/jobs/update_groups.ts b/x-pack/platform/test/api_integration/apis/ml/jobs/update_groups.ts index 6824cf06d23e2..50570a81a0529 100644 --- a/x-pack/platform/test/api_integration/apis/ml/jobs/update_groups.ts +++ b/x-pack/platform/test/api_integration/apis/ml/jobs/update_groups.ts @@ -60,7 +60,7 @@ export default ({ getService }: FtrProviderContext) => { // Failing: See https://github.com/elastic/kibana/issues/161324 describe.skip('update groups', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); for (const job of testSetupJobConfigs) { diff --git a/x-pack/platform/test/api_integration/apis/ml/management/get_list.ts b/x-pack/platform/test/api_integration/apis/ml/management/get_list.ts index 061aaf03093bf..2cc46782989b5 100644 --- a/x-pack/platform/test/api_integration/apis/ml/management/get_list.ts +++ b/x-pack/platform/test/api_integration/apis/ml/management/get_list.ts @@ -44,7 +44,9 @@ export default ({ getService }: FtrProviderContext) => { describe('get management list', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/model_management/memory_usage.ts b/x-pack/platform/test/api_integration/apis/ml/model_management/memory_usage.ts index 24ea509d53627..c8bf5affb42f4 100644 --- a/x-pack/platform/test/api_integration/apis/ml/model_management/memory_usage.ts +++ b/x-pack/platform/test/api_integration/apis/ml/model_management/memory_usage.ts @@ -55,7 +55,7 @@ export default ({ getService }: FtrProviderContext) => { before(async () => { await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createTestTrainedModels('regression', 2); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/model_management/nodes_overview.ts b/x-pack/platform/test/api_integration/apis/ml/model_management/nodes_overview.ts index 918a3f3be52d0..8747525178c74 100644 --- a/x-pack/platform/test/api_integration/apis/ml/model_management/nodes_overview.ts +++ b/x-pack/platform/test/api_integration/apis/ml/model_management/nodes_overview.ts @@ -55,7 +55,7 @@ export default ({ getService }: FtrProviderContext) => { before(async () => { await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createTestTrainedModels('regression', 2); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/modules/jobs_exist.ts b/x-pack/platform/test/api_integration/apis/ml/modules/jobs_exist.ts index 947ef4be3dd6a..acb540daacfea 100644 --- a/x-pack/platform/test/api_integration/apis/ml/modules/jobs_exist.ts +++ b/x-pack/platform/test/api_integration/apis/ml/modules/jobs_exist.ts @@ -17,7 +17,7 @@ export default ({ getService }: FtrProviderContext) => { const ml = getService('ml'); const idSpace1 = 'space1'; - const sourceDataArchive = 'x-pack/test/functional/es_archives/ml/module_sample_logs'; + const sourceDataArchive = 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs'; const moduleInfo = { moduleId: 'sample_data_weblogs', jobIds: ['low_request_rate', 'response_code_rates', 'url_scanning'], diff --git a/x-pack/platform/test/api_integration/apis/ml/modules/recognize_module.ts b/x-pack/platform/test/api_integration/apis/ml/modules/recognize_module.ts index 294f41a5872eb..08e2fa19b8e73 100644 --- a/x-pack/platform/test/api_integration/apis/ml/modules/recognize_module.ts +++ b/x-pack/platform/test/api_integration/apis/ml/modules/recognize_module.ts @@ -19,7 +19,7 @@ export default ({ getService }: FtrProviderContext) => { const testDataList = [ { testTitleSuffix: 'for sample logs dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs', indexPattern: 'ft_module_sample_logs', user: USER.ML_POWERUSER, expected: { @@ -29,7 +29,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for apache dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apache', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apache', indexPattern: 'ft_module_apache', user: USER.ML_POWERUSER, expected: { @@ -39,7 +39,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for logs dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_logs', indexPattern: 'ft_module_logs', user: USER.ML_POWERUSER, expected: { @@ -49,7 +49,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for nginx dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_nginx', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_nginx', indexPattern: 'ft_module_nginx', user: USER.ML_POWERUSER, expected: { @@ -59,7 +59,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for sample ecommerce dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce', indexPattern: 'ft_module_sample_ecommerce', user: USER.ML_POWERUSER, expected: { @@ -69,7 +69,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for siem auditbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_auditbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat', indexPattern: 'ft_module_security_auditbeat', user: USER.ML_POWERUSER, expected: { @@ -79,7 +79,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for siem packetbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_packetbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat', indexPattern: 'ft_module_security_packetbeat', user: USER.ML_POWERUSER, expected: { @@ -89,7 +89,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for siem winlogbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_winlogbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat', indexPattern: 'ft_module_security_winlogbeat', user: USER.ML_POWERUSER, expected: { @@ -108,7 +108,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for heartbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_heartbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat', indexPattern: 'ft_module_heartbeat', user: USER.ML_POWERUSER, expected: { @@ -118,7 +118,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for auditbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_auditbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat', indexPattern: 'ft_module_auditbeat', user: USER.ML_POWERUSER, expected: { @@ -128,7 +128,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for security endpoint dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_endpoint', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint', indexPattern: 'ft_logs-endpoint.events.*', user: USER.ML_POWERUSER, expected: { @@ -144,7 +144,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for metricbeat dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_metricbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat', indexPattern: 'ft_module_metricbeat', user: USER.ML_POWERUSER, expected: { @@ -154,7 +154,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for siem clodutrail dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_cloudtrail', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail', indexPattern: 'ft_module_security_cloudtrail', user: USER.ML_POWERUSER, expected: { @@ -164,7 +164,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for metrics ui dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_metrics_ui', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui', indexPattern: 'ft_module_metrics_ui', user: USER.ML_POWERUSER, expected: { @@ -174,7 +174,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for apache data stream dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apache_data_stream', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream', indexPattern: 'ft_module_apache_data_stream', user: USER.ML_POWERUSER, expected: { @@ -184,7 +184,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for nginx data stream dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_nginx_data_stream', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream', indexPattern: 'ft_module_nginx_data_stream', user: USER.ML_POWERUSER, expected: { @@ -194,7 +194,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for apm transaction dataset', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apm_transaction', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction', indexPattern: 'ft_module_apm_transaction', user: USER.ML_POWERUSER, expected: { diff --git a/x-pack/platform/test/api_integration/apis/ml/modules/setup_module.ts b/x-pack/platform/test/api_integration/apis/ml/modules/setup_module.ts index 51adff21c0bf3..489983eed8d3f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/modules/setup_module.ts +++ b/x-pack/platform/test/api_integration/apis/ml/modules/setup_module.ts @@ -23,7 +23,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for sample_data_weblogs with prefix, startDatafeed false and estimateModelMemory false', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs', indexPattern: { name: 'ft_module_sample_logs', timeField: '@timestamp' }, module: 'sample_data_weblogs', user: USER.ML_POWERUSER, @@ -60,7 +60,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for sample_data_weblogs with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs', indexPattern: { name: 'ft_module_sample_logs', timeField: '@timestamp' }, module: 'sample_data_weblogs', user: USER.ML_POWERUSER, @@ -97,7 +97,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for apache_ecs with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apache', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apache', indexPattern: { name: 'ft_module_apache', timeField: '@timestamp' }, module: 'apache_ecs', user: USER.ML_POWERUSER, @@ -152,7 +152,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for apm_transaction with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apm_transaction', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction', indexPattern: { name: 'ft_module_apm_transaction', timeField: '@timestamp' }, module: 'apm_transaction', user: USER.ML_POWERUSER, @@ -179,7 +179,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for logs_ui_analysis with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_logs', indexPattern: { name: 'ft_module_logs', timeField: '@timestamp' }, module: 'logs_ui_analysis', user: USER.ML_POWERUSER, @@ -206,7 +206,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_logs', indexPattern: { name: 'ft_module_logs', timeField: '@timestamp' }, module: 'logs_ui_categories', user: USER.ML_POWERUSER, @@ -232,7 +232,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for nginx_ecs with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_nginx', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_nginx', indexPattern: { name: 'ft_module_nginx', timeField: '@timestamp' }, module: 'nginx_ecs', user: USER.ML_POWERUSER, @@ -287,7 +287,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for sample_data_ecommerce with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce', indexPattern: { name: 'ft_module_sample_ecommerce', timeField: 'order_date' }, module: 'sample_data_ecommerce', user: USER.ML_POWERUSER, @@ -314,7 +314,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for siem_packetbeat with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_packetbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat', indexPattern: { name: 'ft_module_security_packetbeat', timeField: '@timestamp' }, module: 'security_packetbeat', user: USER.ML_POWERUSER, @@ -361,7 +361,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for uptime_heartbeat with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_heartbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat', indexPattern: { name: 'ft_module_heartbeat', timeField: '@timestamp' }, module: 'uptime_heartbeat', user: USER.ML_POWERUSER, @@ -388,7 +388,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for metricbeat_system_ecs with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_metricbeat', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat', indexPattern: { name: 'ft_module_metricbeat', timeField: '@timestamp' }, module: 'metricbeat_system_ecs', user: USER.ML_POWERUSER, @@ -425,7 +425,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for metrics_ui_hosts with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_metrics_ui', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui', indexPattern: { name: 'ft_module_metrics_ui', timeField: '@timestamp' }, module: 'metrics_ui_hosts', user: USER.ML_POWERUSER, @@ -462,7 +462,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for metrics_ui_k8s with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_metrics_ui', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui', indexPattern: { name: 'ft_module_metrics_ui', timeField: '@timestamp' }, module: 'metrics_ui_k8s', user: USER.ML_POWERUSER, @@ -499,7 +499,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for siem_cloudtrail with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_security_cloudtrail', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail', indexPattern: { name: 'ft_module_security_cloudtrail', timeField: '@timestamp' }, module: 'security_cloudtrail', user: USER.ML_POWERUSER, @@ -546,7 +546,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for apache_data_stream with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_apache_data_stream', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream', indexPattern: { name: 'ft_module_apache_data_stream', timeField: '@timestamp' }, module: 'apache_data_stream', user: USER.ML_POWERUSER, @@ -593,7 +593,7 @@ export default ({ getService }: FtrProviderContext) => { { testTitleSuffix: 'for nginx_data_stream with prefix, startDatafeed true and estimateModelMemory true', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_nginx_data_stream', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream', indexPattern: { name: 'ft_module_nginx_data_stream', timeField: '@timestamp' }, module: 'nginx_data_stream', user: USER.ML_POWERUSER, @@ -657,7 +657,7 @@ export default ({ getService }: FtrProviderContext) => { }, { testTitleSuffix: 'for unauthorized user', - sourceDataArchive: 'x-pack/test/functional/es_archives/ml/module_sample_logs', + sourceDataArchive: 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs', indexPattern: { name: 'ft_module_sample_logs', timeField: '@timestamp' }, module: 'sample_data_weblogs', user: USER.ML_UNAUTHORIZED, diff --git a/x-pack/platform/test/api_integration/apis/ml/notifications/get_notifications.ts b/x-pack/platform/test/api_integration/apis/ml/notifications/get_notifications.ts index 315f48f24d8d6..d8fd215a77b22 100644 --- a/x-pack/platform/test/api_integration/apis/ml/notifications/get_notifications.ts +++ b/x-pack/platform/test/api_integration/apis/ml/notifications/get_notifications.ts @@ -23,7 +23,9 @@ export default ({ getService }: FtrProviderContext) => { describe('GET notifications', () => { before(async () => { testStart = Date.now(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.api.initSavedObjects(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_anomalies_table_data.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_anomalies_table_data.ts index 7110454766b04..3d957cef638bc 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_anomalies_table_data.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_anomalies_table_data.ts @@ -50,7 +50,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GetAnomaliesTableData', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_anomaly_search.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_anomaly_search.ts index d1580b70819bd..02a9b25604442 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_anomaly_search.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_anomaly_search.ts @@ -53,7 +53,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST results/anomaly_search', () => { before(async () => { await ml.testResources.setKibanaTimeZoneToUTC(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); // create spaces await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_categorizer_stats.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_categorizer_stats.ts index 681fb2e323b3c..4bed27d39da22 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_categorizer_stats.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_categorizer_stats.ts @@ -53,7 +53,9 @@ export default ({ getService }: FtrProviderContext) => { describe('get categorizer_stats', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.setKibanaTimeZoneToUTC(); // @ts-expect-error not full interface await ml.api.createAndRunAnomalyDetectionLookbackJob(testJobConfig, testDatafeedConfig); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_category_definition.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_category_definition.ts index 9e8eae061ce6a..4c4e88c864d69 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_category_definition.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_category_definition.ts @@ -78,7 +78,9 @@ export default ({ getService }: FtrProviderContext) => { describe('get category_definition', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_category_examples.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_category_examples.ts index 158ae4010cb96..7418cae8f29c6 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_category_examples.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_category_examples.ts @@ -79,7 +79,9 @@ export default ({ getService }: FtrProviderContext) => { describe('get category_examples', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.setKibanaTimeZoneToUTC(); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_datafeed_results_chart.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_datafeed_results_chart.ts index b7d5de234ac5a..1d9a6d2a914b5 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_datafeed_results_chart.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_datafeed_results_chart.ts @@ -68,7 +68,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GetDatafeedResultsChart', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_partition_fields_values.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_partition_fields_values.ts index e520979004665..26c1462ab919c 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_partition_fields_values.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_partition_fields_values.ts @@ -104,8 +104,8 @@ export default ({ getService }: FtrProviderContext) => { describe('PartitionFieldsValues', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.setKibanaTimeZoneToUTC(); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/results/get_stopped_partitions.ts b/x-pack/platform/test/api_integration/apis/ml/results/get_stopped_partitions.ts index cec4f493f689a..295f27f1dc138 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/get_stopped_partitions.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/get_stopped_partitions.ts @@ -87,7 +87,9 @@ export default ({ getService }: FtrProviderContext) => { describe('get stopped_partitions', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.setKibanaTimeZoneToUTC(); for (const testData of testSetUps) { const { jobConfig, datafeedConfig } = testData; diff --git a/x-pack/platform/test/api_integration/apis/ml/results/max_anomaly_score.ts b/x-pack/platform/test/api_integration/apis/ml/results/max_anomaly_score.ts index 42a1ffa83dda1..ae645ee9bded4 100644 --- a/x-pack/platform/test/api_integration/apis/ml/results/max_anomaly_score.ts +++ b/x-pack/platform/test/api_integration/apis/ml/results/max_anomaly_score.ts @@ -56,7 +56,7 @@ export default ({ getService }: FtrProviderContext) => { describe('MaxAnomalyScore', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await createMockJobs(); }); diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/get_jobs_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/get_jobs_spaces.ts index e42412ce9f786..d103a44b42a08 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/get_jobs_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/get_jobs_spaces.ts @@ -35,7 +35,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET saved_objects/jobs_spaces', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_jobs.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_jobs.ts index 5ca144541688f..690eed1202e5f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_jobs.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_jobs.ts @@ -32,7 +32,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET saved_objects/initialize for AD and DFA jobs', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.api.createAnomalyDetectionJobES( ml.commonConfig.getADFqSingleMetricJobConfig(adJobId) diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_trained_models.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_trained_models.ts index 2ddb35d3a52e1..e74f118c91023 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_trained_models.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/initialize_trained_models.ts @@ -57,7 +57,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET saved_objects/initialize for trained models', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/remove_from_current_space.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/remove_from_current_space.ts index 07ff830c2703b..4d01921ce84d0 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/remove_from_current_space.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/remove_from_current_space.ts @@ -46,7 +46,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST saved_objects/remove_item_from_current_space', () => { before(async () => { await ml.testResources.setKibanaTimeZoneToUTC(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); // create spaces await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/status.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/status.ts index 5d64fc6a16f61..e97f453bb374d 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/status.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/status.ts @@ -40,7 +40,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET saved_objects/status', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/sync_trained_models.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/sync_trained_models.ts index 4b20b4418c902..50612f426a226 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/sync_trained_models.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/sync_trained_models.ts @@ -65,7 +65,7 @@ export default ({ getService }: FtrProviderContext) => { describe('GET saved_objects/sync', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); }); beforeEach(async () => { diff --git a/x-pack/platform/test/api_integration/apis/ml/saved_objects/update_jobs_spaces.ts b/x-pack/platform/test/api_integration/apis/ml/saved_objects/update_jobs_spaces.ts index 7a81a378e27bc..08f378d6b4e0f 100644 --- a/x-pack/platform/test/api_integration/apis/ml/saved_objects/update_jobs_spaces.ts +++ b/x-pack/platform/test/api_integration/apis/ml/saved_objects/update_jobs_spaces.ts @@ -45,7 +45,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST saved_objects/update_jobs_spaces', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await spacesService.create({ id: idSpace1, name: 'space_one', disabledFeatures: [] }); await spacesService.create({ id: idSpace2, name: 'space_two', disabledFeatures: [] }); diff --git a/x-pack/platform/test/api_integration/apis/ml/system/has_privileges.ts b/x-pack/platform/test/api_integration/apis/ml/system/has_privileges.ts index 6d1b7df5bc45e..489f948a9d430 100644 --- a/x-pack/platform/test/api_integration/apis/ml/system/has_privileges.ts +++ b/x-pack/platform/test/api_integration/apis/ml/system/has_privileges.ts @@ -109,7 +109,7 @@ export default ({ getService }: FtrProviderContext) => { describe("ML's _has_privileges", () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); }); after(async () => { await ml.api.setUpgradeMode(false); diff --git a/x-pack/platform/test/api_integration/apis/ml/system/index_exists.ts b/x-pack/platform/test/api_integration/apis/ml/system/index_exists.ts index 10da92b88d415..14b1147e0dba0 100644 --- a/x-pack/platform/test/api_integration/apis/ml/system/index_exists.ts +++ b/x-pack/platform/test/api_integration/apis/ml/system/index_exists.ts @@ -75,7 +75,7 @@ export default ({ getService }: FtrProviderContext) => { describe('POST ml/index_exists', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); }); describe('should correctly check if indices exist ', function () { diff --git a/x-pack/platform/test/api_integration/apis/monitoring/apm/instance.js b/x-pack/platform/test/api_integration/apis/monitoring/apm/instance.js index b2b7d67062535..0b1f949c0382c 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/apm/instance.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/apm/instance.js @@ -15,7 +15,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('instance detail', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/apm'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/apm'; const timeRange = { min: '2018-08-31T12:59:49.104Z', max: '2018-08-31T13:59:49.104Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/apm/instances.js b/x-pack/platform/test/api_integration/apis/monitoring/apm/instances.js index 178a70f1d24a0..55e54206cec9d 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/apm/instances.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/apm/instances.js @@ -12,7 +12,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('list', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/apm'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/apm'; const timeRange = { min: '2018-08-31T12:59:49.104Z', max: '2018-08-31T13:59:49.104Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/apm/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/apm/overview.js index 543cb153927fa..34e3a6026b541 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/apm/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/apm/overview.js @@ -16,7 +16,7 @@ export default function ({ getService }) { // Archive contains non-cgroup data which collides with the in-cgroup APM server present by default on cloud deployments this.tags(['skipCloud']); - const archive = 'x-pack/test/functional/es_archives/monitoring/apm'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/apm'; const timeRange = { min: '2018-08-31T12:59:49.104Z', max: '2018-08-31T13:59:49.104Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/beats/detail.js b/x-pack/platform/test/api_integration/apis/monitoring/beats/detail.js index 8a456410694b8..5846ae42b9bba 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/beats/detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/beats/detail.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('instance detail', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance'; const timeRange = { min: '2018-02-09T20:49:00Z', max: '2018-02-09T21:50:00Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/beats/list.js b/x-pack/platform/test/api_integration/apis/monitoring/beats/list.js index af01ae26c17da..ce03c85b8902e 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/beats/list.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/beats/list.js @@ -13,7 +13,8 @@ export default function ({ getService }) { describe('list', () => { describe('with restarted beat instance', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance'; const timeRange = { min: '2018-02-09T20:49:00Z', max: '2018-02-09T21:50:00Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/beats/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/beats/overview.js index b2f002b00af1c..da94c9547f6da 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/beats/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/beats/overview.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('overview', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/beats'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/beats'; const timeRange = { min: '2017-12-19T18:11:32.000Z', max: '2017-12-19T18:14:38.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/cluster/list.js b/x-pack/platform/test/api_integration/apis/monitoring/cluster/list.js index 93789138bd7d2..097fde1e2a1aa 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/cluster/list.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/cluster/list.js @@ -17,7 +17,7 @@ export default function ({ getService }) { this.tags(['skipCloud']); describe('with trial license clusters', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/multicluster'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/multicluster'; const timeRange = { min: '2017-08-15T21:00:00Z', max: '2017-08-16T00:00:00Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/cluster/list_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/cluster/list_mb.js index 4b6c73893bb0c..ce6e95292f268 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/cluster/list_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/cluster/list_mb.js @@ -19,7 +19,7 @@ export default function ({ getService }) { // Archive contains non-cgroup data which collides with the in-cgroup services present by default on cloud deployments this.tags(['skipCloud']); - const archive = `x-pack/test/functional/es_archives/monitoring/multicluster_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_${source}`; describe('with trial license clusters', () => { const timeRange = { diff --git a/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview.js index 3f3ad9ce30f9e..3a8a42067eac1 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview.js @@ -17,7 +17,8 @@ export default function ({ getService }) { this.tags(['skipCloud']); describe('with trial license clusters', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold'; const timeRange = { min: '2017-08-23T21:29:35Z', max: '2017-08-23T21:47:25Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview_mb.js index 57aa54e148745..02e71f050b1ab 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/cluster/overview_mb.js @@ -19,7 +19,7 @@ export default function ({ getService }) { // TODO: https://github.com/elastic/stack-monitoring/issues/31 this.tags(['skipCloud']); - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_${source}`; describe('with trial license clusters', () => { const timeRange = { diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr.js index 5c7d9f7c7822f..87212066a9aa7 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('ccr', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/ccr'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/ccr'; const timeRange = { min: '2018-09-19T00:00:00.000Z', max: '2018-09-19T23:59:59.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_mb.js index fc5903b8e864e..919601ce6f6d4 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_mb.js @@ -15,7 +15,7 @@ export default function ({ getService }) { describe('ccr - metricbeat and package', () => { ['mb', 'package'].forEach((source) => { describe(`ccr ${source}`, () => { - const archive = `x-pack/test/functional/es_archives/monitoring/ccr_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/ccr_${source}`; const { setup, tearDown } = getLifecycleMethods(getService); const timeRange = { min: '2018-09-19T00:00:00.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard.js index 5e42cca12a261..b65cbb3316195 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('ccr shard', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/ccr'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/ccr'; const timeRange = { min: '2018-09-19T00:00:00.000Z', max: '2018-09-19T23:59:59.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard_mb.js index 3dcee77f52cf8..c571374c94ae5 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/ccr_shard_mb.js @@ -16,7 +16,7 @@ export default function ({ getService }) { describe('ccr shard - metricbeat and package', () => { ['mb', 'package'].forEach((source) => { - const archive = `x-pack/test/functional/es_archives/monitoring/ccr_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/ccr_${source}`; describe(`ccr shard ${source}`, () => { const timeRange = { diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail.js index 699a69c625b27..cea6089cbc68a 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail.js @@ -15,7 +15,7 @@ export default function ({ getService }) { describe('index detail', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail_mb.js index b14c2b8997df2..62b48f3ec47b4 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/index_detail_mb.js @@ -17,7 +17,7 @@ export default function ({ getService }) { describe('index detail - metricbeat and package', () => { ['mb', 'package'].forEach((source) => { describe(`index detail ${source}`, () => { - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/indices.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/indices.js index a443ce0a525d5..84efba8cb0f3b 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/indices.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/indices.js @@ -18,7 +18,7 @@ export default function ({ getService }) { describe('indices', () => { describe('shard-relocation', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', @@ -58,7 +58,8 @@ export default function ({ getService }) { }); describe('health-red', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum'; const timeRange = { min: '2017-10-06T19:53:06.000Z', max: '2017-10-06T20:15:30.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail.js index 1ae82990a8bee..b0d2aeace4a1d 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail.js @@ -17,7 +17,7 @@ export default function ({ getService }) { this.tags(['skipCloud']); const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced.js index 1ed6a4e736608..6d5c5db56b89d 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced.js @@ -14,7 +14,7 @@ export default function ({ getService }) { describe('node detail advanced', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced_mb.js index 33c9fa94cb6f6..33e634c1df806 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_advanced_mb.js @@ -16,7 +16,7 @@ export default function ({ getService }) { describe('node detail advanced - metricbeat and package', () => { ['mb', 'package'].forEach((source) => { describe(`node detail advanced ${source}`, () => { - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_mb.js index d432204dcc04a..db349df4e7a79 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/node_detail_mb.js @@ -19,7 +19,7 @@ export default function ({ getService }) { // TODO: https://github.com/elastic/stack-monitoring/issues/31 this.tags(['skipCloud']); - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_${source}`; const timeRange = { min: '2017-10-05T20:31:48.000Z', max: '2017-10-05T20:35:12.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes.js index 4b6d1c9eab401..daef884c28bdb 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes.js @@ -17,7 +17,8 @@ export default function ({ getService }) { describe('nodes', () => { describe('with green platinum cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum'; const timeRange = { min: '2018-02-13T17:04:50.000Z', max: '2018-02-13T17:51:55.000Z', @@ -46,7 +47,8 @@ export default function ({ getService }) { }); describe('with red platinum cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum'; const timeRange = { min: '2017-10-06T19:53:06.000Z', max: '2017-10-06T20:15:30.000Z', @@ -76,7 +78,7 @@ export default function ({ getService }) { describe('with green trial cluster and node in cpu group', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped'; const timeRange = { min: '2018-02-13T19:18:02.000Z', max: '2018-02-13T19:26:14.000Z', @@ -105,7 +107,8 @@ export default function ({ getService }) { }); describe('with pagination', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes'; const timeRange = { min: '2019-10-03T19:41:01.402Z', max: '2019-10-03T19:41:13.132Z', @@ -165,7 +168,8 @@ export default function ({ getService }) { }); describe('with sorting', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes'; const timeRange = { min: '2019-10-03T19:41:01.402Z', max: '2019-10-03T19:41:13.132Z', @@ -310,7 +314,8 @@ export default function ({ getService }) { }); describe('with filtering', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes'; const timeRange = { min: '2019-10-03T19:41:01.402Z', max: '2019-10-03T19:41:13.132Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes_mb.js index ff0bb499bc77e..fe120f6ee6cc4 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/nodes_mb.js @@ -17,7 +17,7 @@ export default function ({ getService }) { ['mb', 'package'].forEach((source) => { describe(`nodes ${source}`, () => { describe('with green platinum cluster', () => { - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum_${source}`; const timeRange = { min: '2018-02-13T17:04:50.000Z', max: '2018-02-13T17:51:55.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview.js index 4d8e2d20d88b9..e4cc64b759d16 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview.js @@ -17,7 +17,8 @@ export default function ({ getService }) { describe('overview', () => { describe('with green platinum cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum'; const timeRange = { min: '2018-02-13T17:04:50.000Z', max: '2018-02-13T17:51:55.000Z', @@ -42,7 +43,8 @@ export default function ({ getService }) { }); describe('with red platinum cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum'; const timeRange = { min: '2017-10-06T19:53:06.000Z', max: '2017-10-06T20:15:30.000Z', @@ -68,7 +70,7 @@ export default function ({ getService }) { describe('with shards relocating', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation'; const timeRange = { min: '2017-10-05T20:31:17.081Z', max: '2017-10-05T20:35:39.428Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview_mb.js index 6fec13a096a55..1cfa2e078171d 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/elasticsearch/overview_mb.js @@ -18,7 +18,7 @@ export default function ({ getService }) { ['mb', 'package'].forEach((source) => { describe(`overview ${source}`, () => { describe('with green platinum cluster', () => { - const archive = `x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum_${source}`; + const archive = `x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum_${source}`; const timeRange = { min: '2018-02-13T17:04:50.000Z', max: '2018-02-13T17:51:55.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/kibana/instance.js b/x-pack/platform/test/api_integration/apis/monitoring/kibana/instance.js index 5eef8051b6639..17f22335fda2b 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/kibana/instance.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/kibana/instance.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('instance detail', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum'; const timeRange = { min: '2017-08-29T17:24:17.000Z', max: '2017-08-29T17:26:08.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/kibana/listing.js b/x-pack/platform/test/api_integration/apis/monitoring/kibana/listing.js index 3efcd84430d1d..e8fa621dae0b2 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/kibana/listing.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/kibana/listing.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('listing', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum'; const timeRange = { min: '2017-08-29T17:24:17.000Z', max: '2017-08-29T17:26:08.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/kibana/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/kibana/overview.js index 4efdb8163cbdd..f1c8a2ed97be1 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/kibana/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/kibana/overview.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('overview', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum'; const timeRange = { min: '2017-08-29T17:24:17.000Z', max: '2017-08-29T17:26:08.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logs/cluster.js b/x-pack/platform/test/api_integration/apis/monitoring/logs/cluster.js index bd12ff4f7e01b..dbef8789ac0f5 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logs/cluster.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logs/cluster.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logs'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logs'; const timeRange = { min: '2019-03-15T16:19:22.161Z', max: '2019-03-15T17:19:22.161Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logs/index_detail.js b/x-pack/platform/test/api_integration/apis/monitoring/logs/index_detail.js index d74554d62ff16..aa8397e63f9c2 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logs/index_detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logs/index_detail.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logs'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logs'; const timeRange = { min: '2019-03-15T16:19:22.161Z', max: '2019-03-15T17:19:22.161Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logs/multiple_clusters.js b/x-pack/platform/test/api_integration/apis/monitoring/logs/multiple_clusters.js index 251ddbbd4b816..7a37452fcdbf0 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logs/multiple_clusters.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logs/multiple_clusters.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('multiple cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters'; const timeRange = { min: '2019-08-23T14:14:31.686Z', max: '2019-08-23T15:14:31.686Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logs/node_detail.js b/x-pack/platform/test/api_integration/apis/monitoring/logs/node_detail.js index a6cf9801980c4..8ba45090ebb61 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logs/node_detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logs/node_detail.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('cluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logs'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logs'; const timeRange = { min: '2019-03-15T16:19:22.161Z', max: '2019-03-15T17:19:22.161Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logstash/multicluster_pipelines.js b/x-pack/platform/test/api_integration/apis/monitoring/logstash/multicluster_pipelines.js index aad42340f0e53..214eb8c0d3749 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logstash/multicluster_pipelines.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logstash/multicluster_pipelines.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('pipelines listing multicluster', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logstash_pipelines_multicluster'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_multicluster'; const timeRange = { min: '2019-11-11T15:13:45.266Z', max: '2019-11-11T15:17:05.399Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logstash/node_detail.js b/x-pack/platform/test/api_integration/apis/monitoring/logstash/node_detail.js index f234b5019edc8..bf0cf97806bfc 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logstash/node_detail.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logstash/node_detail.js @@ -14,7 +14,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('node detail', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logstash_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines'; const timeRange = { min: '2018-01-22T09:33:13.000Z', max: '2018-01-22T09:41:04.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logstash/nodes.js b/x-pack/platform/test/api_integration/apis/monitoring/logstash/nodes.js index da287e37ea37f..838c430177341 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logstash/nodes.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logstash/nodes.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('node listing', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logstash_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines'; const timeRange = { min: '2018-01-22T09:33:13.000Z', max: '2018-01-22T09:41:04.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logstash/overview.js b/x-pack/platform/test/api_integration/apis/monitoring/logstash/overview.js index 9b83e60d10439..20904fc6a2753 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logstash/overview.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logstash/overview.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('overview', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logstash_pipelines'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines'; const timeRange = { min: '2018-01-22T09:33:13.000Z', max: '2018-01-22T09:41:04.000Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/logstash/pipelines.js b/x-pack/platform/test/api_integration/apis/monitoring/logstash/pipelines.js index f64ab3c700cd5..3834817c1c38e 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/logstash/pipelines.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/logstash/pipelines.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('pipelines', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/logstash/changing_pipelines'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/logstash/changing_pipelines'; const timeRange = { min: '2019-11-04T15:40:44.855Z', max: '2019-11-04T15:50:38.667Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/ccs.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/ccs.js index 2bf9d919d82be..288eceb8b9aa9 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/ccs.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/ccs.js @@ -10,7 +10,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('ccs', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm'; const timeRange = { min: '2019-04-16T00:00:00.741Z', max: '2019-04-16T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_apm.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_apm.js index 23718f59feb0f..c1aeae3d221e3 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_apm.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_apm.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('detect_apm', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm'; const timeRange = { min: '2019-04-16T00:00:00.741Z', max: '2019-04-16T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats.js index 3945289a242e3..dfd5fcbcfdc66 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('detect_beats', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats_management.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats_management.js index 1cb4097b43e5c..6e6a86f93bb50 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats_management.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_beats_management.js @@ -14,7 +14,7 @@ export default function ({ getService }) { describe('detect_beats_management', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management'; const timeRange = { min: '2019-04-16T00:00:00.741Z', max: '2019-04-16T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash.js index e32c86ef126f9..e2d85fdfe68ed 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash.js @@ -14,7 +14,7 @@ export default function ({ getService }) { describe('detect_logstash', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash'; const timeRange = { min: '2019-04-16T00:00:00.741Z', max: '2019-04-16T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash_management.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash_management.js index 6f18c74cc8aee..23a203d845fed 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash_management.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/detect_logstash_management.js @@ -14,7 +14,7 @@ export default function ({ getService }) { describe('detect_logstash_management', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash_management'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash_management'; const timeRange = { min: '2019-04-16T00:00:00.741Z', max: '2019-04-16T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana.js index 56af7410ecd09..2491fde2c62c4 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana.js @@ -13,7 +13,8 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('es_and_kibana', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive.js index 482a3173a92f4..5488578ca864b 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive.js @@ -14,9 +14,9 @@ export default function ({ getService }) { describe('es_and_kibana_exclusive', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive'; const archiveMb7 = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive_mb.js index 14d6cefb8e6e3..08fdf82a5f7e5 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_exclusive_mb.js @@ -16,9 +16,9 @@ export default function ({ getService }) { describe('es_and_kibana_exclusive mb', () => { const { setup, tearDown } = getLifecycleMethods(getService); const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive'; const archiveMb8 = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_mb.js index 53035670753fc..b9cd2a0d0b377 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/es_and_kibana_mb.js @@ -15,9 +15,10 @@ export default function ({ getService }) { describe('es_and_kibana mb', () => { const { setup, tearDown } = getLifecycleMethods(getService); - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana'; + const archive = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana'; const archiveMb8 = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_mb_8'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_mb_8'; const timeRange = { min: '2019-04-09T00:00:00.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana.js index b71e40759a833..639c28a3defb2 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana.js @@ -13,7 +13,7 @@ export default function ({ getService }) { const esArchiver = getService('esArchiver'); describe('kibana', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive.js index 4adb8272b1735..76db3c812af45 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive.js @@ -14,9 +14,9 @@ export default function ({ getService }) { describe('kibana_exclusive', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive'; const archiveMb7 = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive_mb.js index 85d7775dd6254..67c7199f6aec1 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_exclusive_mb.js @@ -16,9 +16,9 @@ export default function ({ getService }) { describe('kibana_exclusive mb', () => { const { setup, tearDown } = getLifecycleMethods(getService); const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive'; const archiveMb = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_mb.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_mb.js index 1502512352421..3456fbaa47941 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_mb.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/kibana_mb.js @@ -15,8 +15,9 @@ export default function ({ getService }) { describe('kibana mb', () => { const { setup, tearDown } = getLifecycleMethods(getService); - const archive = 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana'; - const archiveMb = 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_mb_8'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana'; + const archiveMb = + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_mb_8'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/security.js b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/security.js index 20f40b3a10cbe..f3a5048973832 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/security.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/setup/collection/security.js @@ -15,7 +15,7 @@ export default function ({ getService }) { describe('security', () => { const archive = - 'x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive'; + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive'; const timeRange = { min: '2019-04-09T00:00:00.741Z', max: '2019-04-09T23:59:59.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/cluster.js b/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/cluster.js index 5c288aac88374..5a6c51d4db05f 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/cluster.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/cluster.js @@ -16,7 +16,7 @@ export default function ({ getService }) { // Archive contains non-cgroup data which collides with the in-cgroup services present by default on cloud deployments this.tags(['skipCloud']); - const archive = 'x-pack/test/functional/es_archives/monitoring/standalone_cluster'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster'; const timeRange = { min: '2019-02-04T16:52:11.741Z', max: '2019-02-04T17:52:11.741Z', diff --git a/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/clusters.js b/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/clusters.js index ee538544177d3..c91ceb7d36c61 100644 --- a/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/clusters.js +++ b/x-pack/platform/test/api_integration/apis/monitoring/standalone_cluster/clusters.js @@ -16,7 +16,7 @@ export default function ({ getService }) { // TODO: https://github.com/elastic/stack-monitoring/issues/31 this.tags(['skipCloud']); - const archive = 'x-pack/test/functional/es_archives/monitoring/standalone_cluster'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster'; const timeRange = { min: '2019-02-04T16:52:11.741Z', max: '2019-02-04T17:52:11.741Z', diff --git a/x-pack/platform/test/api_integration/apis/osquery/packs.ts b/x-pack/platform/test/api_integration/apis/osquery/packs.ts index a278ac80d0030..ce7c6de4080e0 100644 --- a/x-pack/platform/test/api_integration/apis/osquery/packs.ts +++ b/x-pack/platform/test/api_integration/apis/osquery/packs.ts @@ -53,13 +53,13 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await getService('kibanaServer').savedObjects.cleanStandardList(); await getService('esArchiver').load( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); after(async () => { await getService('kibanaServer').savedObjects.cleanStandardList(); await getService('esArchiver').unload( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); await supertest .post(`/api/fleet/agent_policies/delete`) diff --git a/x-pack/platform/test/api_integration/apis/search/search.ts b/x-pack/platform/test/api_integration/apis/search/search.ts index 70675244e1d82..68ba561c18ed6 100644 --- a/x-pack/platform/test/api_integration/apis/search/search.ts +++ b/x-pack/platform/test/api_integration/apis/search/search.ts @@ -381,10 +381,10 @@ export default function ({ getService }: FtrProviderContext) { describe('rollup', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/hybrid/rollup'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/hybrid/rollup'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); }); it('should return 400 if rollup search is called without index', async () => { diff --git a/x-pack/platform/test/api_integration/apis/security/index_fields.ts b/x-pack/platform/test/api_integration/apis/security/index_fields.ts index c5ca5ec5d6ea5..7369a8323986c 100644 --- a/x-pack/platform/test/api_integration/apis/security/index_fields.ts +++ b/x-pack/platform/test/api_integration/apis/security/index_fields.ts @@ -16,10 +16,10 @@ export default function ({ getService }: FtrProviderContext) { describe('Index Fields', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/security/flstest/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/security/flstest/data'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/security/flstest/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/security/flstest/data'); }); describe('GET /internal/security/fields/{query}', () => { diff --git a/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts b/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts index 0e59861fd69b5..cd25e62df9276 100644 --- a/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts +++ b/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts @@ -132,7 +132,7 @@ export default function ({ getService }: FtrProviderContext) { let localXPack: Record; let monitoring: Array>; - const archive = 'x-pack/test/functional/es_archives/monitoring/multicluster'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/multicluster'; const fromTimestamp = '2017-08-15T21:00:00.000Z'; const toTimestamp = '2017-08-16T00:00:00.000Z'; @@ -210,7 +210,7 @@ export default function ({ getService }: FtrProviderContext) { }); describe('with basic cluster and reporting and canvas usage info', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/basic_6.3.x'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x'; const fromTimestamp = '2018-07-23T22:54:59.087Z'; const toTimestamp = '2018-07-23T22:55:05.933Z'; before(async () => { @@ -239,7 +239,7 @@ export default function ({ getService }: FtrProviderContext) { }); describe('Telemetry caching', () => { - const archive = 'x-pack/test/functional/es_archives/monitoring/basic_6.3.x'; + const archive = 'x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x'; const fromTimestamp = '2018-07-23T22:54:59.087Z'; const toTimestamp = '2018-07-23T22:55:05.933Z'; diff --git a/x-pack/platform/test/api_integration/apis/transform/delete_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/delete_transforms.ts index 0520587ef94e1..66522567c276c 100644 --- a/x-pack/platform/test/api_integration/apis/transform/delete_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/delete_transforms.ts @@ -29,7 +29,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/delete_transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/index.ts b/x-pack/platform/test/api_integration/apis/transform/index.ts index ad44dc1249e8e..3e1210ce52f4b 100644 --- a/x-pack/platform/test/api_integration/apis/transform/index.ts +++ b/x-pack/platform/test/api_integration/apis/transform/index.ts @@ -23,7 +23,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/reauthorize_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/reauthorize_transforms.ts index 873e9334d4bb2..b94b5468491d8 100644 --- a/x-pack/platform/test/api_integration/apis/transform/reauthorize_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/reauthorize_transforms.ts @@ -98,7 +98,7 @@ export default ({ getService }: FtrProviderContext) => { } before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); const apiKeyForTransformUsers = diff --git a/x-pack/platform/test/api_integration/apis/transform/reset_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/reset_transforms.ts index 47fa2cfd731f8..a716e4790b028 100644 --- a/x-pack/platform/test/api_integration/apis/transform/reset_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/reset_transforms.ts @@ -37,7 +37,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/reset_transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/schedule_now_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/schedule_now_transforms.ts index 07ec55fa85954..daadfdf22866a 100644 --- a/x-pack/platform/test/api_integration/apis/transform/schedule_now_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/schedule_now_transforms.ts @@ -28,7 +28,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/schedule_now_transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/start_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/start_transforms.ts index ca4a1d185f906..8aaa5f9b2bb01 100644 --- a/x-pack/platform/test/api_integration/apis/transform/start_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/start_transforms.ts @@ -29,7 +29,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/start_transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/stop_transforms.ts b/x-pack/platform/test/api_integration/apis/transform/stop_transforms.ts index 60aeadae79b98..8ea614f7b4e01 100644 --- a/x-pack/platform/test/api_integration/apis/transform/stop_transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/stop_transforms.ts @@ -44,7 +44,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/stop_transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/transforms.ts b/x-pack/platform/test/api_integration/apis/transform/transforms.ts index 7d88267ce442d..25d55b2a0b16c 100644 --- a/x-pack/platform/test/api_integration/apis/transform/transforms.ts +++ b/x-pack/platform/test/api_integration/apis/transform/transforms.ts @@ -77,7 +77,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/transforms', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); await createTransform('transform-test-get-1'); await createTransform('transform-test-get-2'); diff --git a/x-pack/platform/test/api_integration/apis/transform/transforms_create.ts b/x-pack/platform/test/api_integration/apis/transform/transforms_create.ts index 3baa5b8105b9f..674cf3b063290 100644 --- a/x-pack/platform/test/api_integration/apis/transform/transforms_create.ts +++ b/x-pack/platform/test/api_integration/apis/transform/transforms_create.ts @@ -19,7 +19,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/transforms/{transformId}/ create', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/transforms_preview.ts b/x-pack/platform/test/api_integration/apis/transform/transforms_preview.ts index 36958a9662d0f..f99ab4598a534 100644 --- a/x-pack/platform/test/api_integration/apis/transform/transforms_preview.ts +++ b/x-pack/platform/test/api_integration/apis/transform/transforms_preview.ts @@ -37,7 +37,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/transforms/_preview', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); await transform.api.waitForIndicesToExist('ft_farequote'); }); diff --git a/x-pack/platform/test/api_integration/apis/transform/transforms_stats.ts b/x-pack/platform/test/api_integration/apis/transform/transforms_stats.ts index b51acaed34910..7eac4f5d7c057 100644 --- a/x-pack/platform/test/api_integration/apis/transform/transforms_stats.ts +++ b/x-pack/platform/test/api_integration/apis/transform/transforms_stats.ts @@ -78,7 +78,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/transforms/_stats', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); await createTransform('transform-test-stats-1'); await createTransform('transform-test-stats-2'); diff --git a/x-pack/platform/test/api_integration/apis/transform/transforms_update.ts b/x-pack/platform/test/api_integration/apis/transform/transforms_update.ts index b7fe62b88360d..d47147792426e 100644 --- a/x-pack/platform/test/api_integration/apis/transform/transforms_update.ts +++ b/x-pack/platform/test/api_integration/apis/transform/transforms_update.ts @@ -59,7 +59,7 @@ export default ({ getService }: FtrProviderContext) => { describe('/internal/transform/transforms/{transformId}/_update', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.setKibanaTimeZoneToUTC(); await createTransform('transform-test-update-1'); }); diff --git a/x-pack/platform/test/api_integration/services/aiops/log_rate_analysis_data_generator.ts b/x-pack/platform/test/api_integration/services/aiops/log_rate_analysis_data_generator.ts index d53203a06da2f..0481a195083f5 100644 --- a/x-pack/platform/test/api_integration/services/aiops/log_rate_analysis_data_generator.ts +++ b/x-pack/platform/test/api_integration/services/aiops/log_rate_analysis_data_generator.ts @@ -233,7 +233,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'farequote_with_spike': - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await es.updateByQuery({ index: 'ft_farequote', @@ -320,7 +320,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'large_arrays': - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/large_arrays'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/large_arrays'); break; default: @@ -337,7 +337,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'farequote_with_spike': - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); break; case 'artificial_logs_with_spike': @@ -358,7 +358,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'large_arrays': - await esArchiver.unload('x-pack/test/functional/es_archives/large_arrays'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/large_arrays'); break; default: diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts index d260a4e4245f8..94d306a73a62e 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts @@ -136,11 +136,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { // tests upgrading a 7.11.1 saved object to the latest version describe('7.11.1 -> latest stack version', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.11.1'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.11.1'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1' + ); }); it('adds rule info to only alert comments for 7.12', async () => { @@ -187,11 +189,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('7.13.2', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2' + ); }); describe('owner field', () => { @@ -281,11 +285,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('7.16.0', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2' + ); }); describe('resolve', () => { @@ -353,12 +359,14 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.0 id migration', () => { describe('awesome space', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.16.0_space'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space' + ); }); after(async () => { await esArchiver.unload( - 'x-pack/test/functional/es_archives/cases/migrations/7.16.0_space' + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space' ); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts index 9b29c9effbc7a..6b5434f3810c5 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts @@ -46,11 +46,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('7.13.2', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2' + ); }); it('adds the owner field', async () => { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts index 5fef83523a188..6895d78c4877d 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts @@ -22,11 +22,13 @@ export default function ({ getService }: FtrProviderContext) { describe('migrations', () => { describe('7.13.2', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2' + ); }); describe('owner field', () => { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts index abd2f600ec757..db6d244aa1cfb 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts @@ -29,11 +29,15 @@ export default ({ getService }: FtrProviderContext): void => { before(async () => { caseId = await createCaseWithAlerts(); - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/hosts_users'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users' + ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/hosts_users'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users' + ); await deleteAllCaseItems(es); }); @@ -105,11 +109,15 @@ export default ({ getService }: FtrProviderContext): void => { before(async () => { caseId = await createCaseWithAlerts(); - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/hosts_users'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users' + ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/hosts_users'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users' + ); await deleteAllCaseItems(es); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts index 05bcc775aa49b..3d28f2e8390b0 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts @@ -31,11 +31,11 @@ export default ({ getService }: FtrProviderContext): void => { describe('Kibana index: Alerting & Cases', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/8.8.0'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/8.8.0'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0'); await deleteAllCaseItems(es); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts index 3d988528c4d36..d92a148ae23c2 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts @@ -373,11 +373,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { const CASE_ID = 'e49ad6e0-cf9d-11eb-a603-13e7747d215c'; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/migrations/7.13.2'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2' + ); }); it('adds the owner field', async () => { @@ -495,13 +497,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { let userActions: UserActions; before(async () => { await esArchiver.load( - 'x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions' + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions' ); }); after(async () => { await esArchiver.unload( - 'x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions' + 'x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions' ); }); diff --git a/x-pack/platform/test/disable_ems/tests/index.ts b/x-pack/platform/test/disable_ems/tests/index.ts index 57757d510ef3e..76f1c890855fa 100644 --- a/x-pack/platform/test/disable_ems/tests/index.ts +++ b/x-pack/platform/test/disable_ems/tests/index.ts @@ -14,13 +14,15 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { describe('disable Elastic Maps Service', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load('x-pack/platform/test/disable_ems/kbn_archive.json'); await browser.setWindowSize(1600, 1000); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload('x-pack/platform/test/disable_ems/kbn_archive.json'); }); diff --git a/x-pack/platform/test/examples/embedded_lens/index.ts b/x-pack/platform/test/examples/embedded_lens/index.ts index 0c67d8e5822fc..416e00c1abf34 100644 --- a/x-pack/platform/test/examples/embedded_lens/index.ts +++ b/x-pack/platform/test/examples/embedded_lens/index.ts @@ -16,7 +16,7 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC this.tags('skipFirefox'); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); // need at least one index pattern @@ -26,7 +26,7 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/examples/search_examples/index.ts b/x-pack/platform/test/examples/search_examples/index.ts index 4eab653ea90fd..8e5d76d6738e8 100644 --- a/x-pack/platform/test/examples/search_examples/index.ts +++ b/x-pack/platform/test/examples/search_examples/index.ts @@ -15,14 +15,16 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC describe('search examples', function () { before(async () => { await esArchiver.emptyKibanaIndex(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); // need at least one index pattern }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test/functional/es_archives/action_task_params/data.json b/x-pack/platform/test/fixtures/es_archives/action_task_params/data.json similarity index 100% rename from x-pack/test/functional/es_archives/action_task_params/data.json rename to x-pack/platform/test/fixtures/es_archives/action_task_params/data.json diff --git a/x-pack/test/functional/es_archives/actions/data.json b/x-pack/platform/test/fixtures/es_archives/actions/data.json similarity index 100% rename from x-pack/test/functional/es_archives/actions/data.json rename to x-pack/platform/test/fixtures/es_archives/actions/data.json diff --git a/x-pack/test/functional/es_archives/alerting/8_2_0/data.json b/x-pack/platform/test/fixtures/es_archives/alerting/8_2_0/data.json similarity index 100% rename from x-pack/test/functional/es_archives/alerting/8_2_0/data.json rename to x-pack/platform/test/fixtures/es_archives/alerting/8_2_0/data.json diff --git a/x-pack/test/functional/es_archives/alerting/8_2_0/mappings.json b/x-pack/platform/test/fixtures/es_archives/alerting/8_2_0/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/alerting/8_2_0/mappings.json rename to x-pack/platform/test/fixtures/es_archives/alerting/8_2_0/mappings.json diff --git a/x-pack/test/functional/es_archives/alerts/data.json b/x-pack/platform/test/fixtures/es_archives/alerts/data.json similarity index 100% rename from x-pack/test/functional/es_archives/alerts/data.json rename to x-pack/platform/test/fixtures/es_archives/alerts/data.json diff --git a/x-pack/test/functional/es_archives/alerts/mappings.json b/x-pack/platform/test/fixtures/es_archives/alerts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/alerts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/alerts/mappings.json diff --git a/x-pack/test/functional/es_archives/auditbeat/default/data.json.gz b/x-pack/platform/test/fixtures/es_archives/auditbeat/default/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/default/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/auditbeat/default/data.json.gz diff --git a/x-pack/test/functional/es_archives/auditbeat/default/mappings.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/default/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/default/mappings.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/default/mappings.json diff --git a/x-pack/test/functional/es_archives/auditbeat/hosts/data.json.gz b/x-pack/platform/test/fixtures/es_archives/auditbeat/hosts/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/hosts/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/auditbeat/hosts/data.json.gz diff --git a/x-pack/test/functional/es_archives/auditbeat/hosts/mappings.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/hosts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/hosts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/hosts/mappings.json diff --git a/x-pack/test/functional/es_archives/auditbeat/overview/data.json.gz b/x-pack/platform/test/fixtures/es_archives/auditbeat/overview/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/overview/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/auditbeat/overview/data.json.gz diff --git a/x-pack/test/functional/es_archives/auditbeat/overview/mappings.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/overview/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/overview/mappings.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/overview/mappings.json diff --git a/x-pack/test/functional/es_archives/auditbeat/uncommon_processes/data.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes/data.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/uncommon_processes/data.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes/data.json diff --git a/x-pack/test/functional/es_archives/auditbeat/uncommon_processes/mappings.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/uncommon_processes/mappings.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes/mappings.json diff --git a/x-pack/test/functional/es_archives/auditbeat/users/data.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/users/data.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/users/data.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/users/data.json diff --git a/x-pack/test/functional/es_archives/auditbeat/users/mappings.json b/x-pack/platform/test/fixtures/es_archives/auditbeat/users/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/auditbeat/users/mappings.json rename to x-pack/platform/test/fixtures/es_archives/auditbeat/users/mappings.json diff --git a/x-pack/test/functional/es_archives/canvas/logstash_lens/data.json b/x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens/data.json similarity index 100% rename from x-pack/test/functional/es_archives/canvas/logstash_lens/data.json rename to x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens/data.json diff --git a/x-pack/test/functional/es_archives/canvas/logstash_lens/mappings.json b/x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/canvas/logstash_lens/mappings.json rename to x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/default/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/default/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/default/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/default/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/default/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/default/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/default/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/default/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.11.1/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.11.1/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.11.1/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.11.1/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.11.1/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.13.2/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.13.2/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.13.2/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.13.2/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13.2/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.13_user_actions/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.13_user_actions/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.16.0_space/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.16.0_space/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/migrations/7.16.0_space/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/7.16.0_space/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/7.16.0_space/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/migrations/8.8.0/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/8.8.0/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/migrations/8.8.0/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/migrations/8.8.0/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/migrations/8.8.0/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/signals/default/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/signals/default/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/default/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/signals/default/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/signals/default/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/signals/default/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/default/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/signals/default/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/signals/duplicate_ids/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/duplicate_ids/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/signals/duplicate_ids/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/duplicate_ids/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids/mappings.json diff --git a/x-pack/test/functional/es_archives/cases/signals/hosts_users/data.json.gz b/x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/hosts_users/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users/data.json.gz diff --git a/x-pack/test/functional/es_archives/cases/signals/hosts_users/mappings.json b/x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/cases/signals/hosts_users/mappings.json rename to x-pack/platform/test/fixtures/es_archives/cases/signals/hosts_users/mappings.json diff --git a/x-pack/test/functional/es_archives/dashboard/async_search/data.json b/x-pack/platform/test/fixtures/es_archives/dashboard/async_search/data.json similarity index 100% rename from x-pack/test/functional/es_archives/dashboard/async_search/data.json rename to x-pack/platform/test/fixtures/es_archives/dashboard/async_search/data.json diff --git a/x-pack/test/functional/es_archives/data/search_sessions/data.json.gz b/x-pack/platform/test/fixtures/es_archives/data/search_sessions/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/data/search_sessions/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/data/search_sessions/data.json.gz diff --git a/x-pack/test/functional/es_archives/data/search_sessions/mappings.json b/x-pack/platform/test/fixtures/es_archives/data/search_sessions/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/data/search_sessions/mappings.json rename to x-pack/platform/test/fixtures/es_archives/data/search_sessions/mappings.json diff --git a/x-pack/test/functional/es_archives/event_log_legacy_ids/data.json b/x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids/data.json similarity index 100% rename from x-pack/test/functional/es_archives/event_log_legacy_ids/data.json rename to x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids/data.json diff --git a/x-pack/test/functional/es_archives/event_log_legacy_ids/mappings.json b/x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/event_log_legacy_ids/mappings.json rename to x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids/mappings.json diff --git a/x-pack/test/functional/es_archives/event_log_multiple_indicies/data.json b/x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies/data.json similarity index 100% rename from x-pack/test/functional/es_archives/event_log_multiple_indicies/data.json rename to x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies/data.json diff --git a/x-pack/test/functional/es_archives/event_log_multiple_indicies/mappings.json b/x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/event_log_multiple_indicies/mappings.json rename to x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies/mappings.json diff --git a/x-pack/test/functional/es_archives/filebeat/default/data.json.gz b/x-pack/platform/test/fixtures/es_archives/filebeat/default/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/default/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/filebeat/default/data.json.gz diff --git a/x-pack/test/functional/es_archives/filebeat/default/mappings.json b/x-pack/platform/test/fixtures/es_archives/filebeat/default/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/default/mappings.json rename to x-pack/platform/test/fixtures/es_archives/filebeat/default/mappings.json diff --git a/x-pack/test/functional/es_archives/filebeat/kpi_hosts/data.json b/x-pack/platform/test/fixtures/es_archives/filebeat/kpi_hosts/data.json similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/kpi_hosts/data.json rename to x-pack/platform/test/fixtures/es_archives/filebeat/kpi_hosts/data.json diff --git a/x-pack/test/functional/es_archives/filebeat/kpi_hosts/mappings.json b/x-pack/platform/test/fixtures/es_archives/filebeat/kpi_hosts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/kpi_hosts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/filebeat/kpi_hosts/mappings.json diff --git a/x-pack/test/functional/es_archives/filebeat/threat_intel/data.json b/x-pack/platform/test/fixtures/es_archives/filebeat/threat_intel/data.json similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/threat_intel/data.json rename to x-pack/platform/test/fixtures/es_archives/filebeat/threat_intel/data.json diff --git a/x-pack/test/functional/es_archives/filebeat/threat_intel/mappings.json b/x-pack/platform/test/fixtures/es_archives/filebeat/threat_intel/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/filebeat/threat_intel/mappings.json rename to x-pack/platform/test/fixtures/es_archives/filebeat/threat_intel/mappings.json diff --git a/x-pack/test/functional/es_archives/fleet/agents/data.json b/x-pack/platform/test/fixtures/es_archives/fleet/agents/data.json similarity index 100% rename from x-pack/test/functional/es_archives/fleet/agents/data.json rename to x-pack/platform/test/fixtures/es_archives/fleet/agents/data.json diff --git a/x-pack/test/functional/es_archives/fleet/agents/mappings.json b/x-pack/platform/test/fixtures/es_archives/fleet/agents/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/fleet/agents/mappings.json rename to x-pack/platform/test/fixtures/es_archives/fleet/agents/mappings.json diff --git a/x-pack/test/functional/es_archives/fleet/empty_fleet_server/mappings.json b/x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/fleet/empty_fleet_server/mappings.json rename to x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server/mappings.json diff --git a/x-pack/test/functional/es_archives/fleet/fleet_server/data.json b/x-pack/platform/test/fixtures/es_archives/fleet/fleet_server/data.json similarity index 100% rename from x-pack/test/functional/es_archives/fleet/fleet_server/data.json rename to x-pack/platform/test/fixtures/es_archives/fleet/fleet_server/data.json diff --git a/x-pack/test/functional/es_archives/fleet/fleet_server/mappings.json b/x-pack/platform/test/fixtures/es_archives/fleet/fleet_server/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/fleet/fleet_server/mappings.json rename to x-pack/platform/test/fixtures/es_archives/fleet/fleet_server/mappings.json diff --git a/x-pack/test/functional/es_archives/getting_started/shakespeare/data.json.gz b/x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/getting_started/shakespeare/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare/data.json.gz diff --git a/x-pack/test/functional/es_archives/getting_started/shakespeare/mappings.json b/x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/getting_started/shakespeare/mappings.json rename to x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare/mappings.json diff --git a/x-pack/test/functional/es_archives/graph/secrepo/data.json.gz b/x-pack/platform/test/fixtures/es_archives/graph/secrepo/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/graph/secrepo/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/graph/secrepo/data.json.gz diff --git a/x-pack/test/functional/es_archives/graph/secrepo/mappings.json b/x-pack/platform/test/fixtures/es_archives/graph/secrepo/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/graph/secrepo/mappings.json rename to x-pack/platform/test/fixtures/es_archives/graph/secrepo/mappings.json diff --git a/x-pack/test/functional/es_archives/hybrid/logstash/data.json.gz b/x-pack/platform/test/fixtures/es_archives/hybrid/logstash/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/hybrid/logstash/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/hybrid/logstash/data.json.gz diff --git a/x-pack/test/functional/es_archives/hybrid/logstash/mappings.json b/x-pack/platform/test/fixtures/es_archives/hybrid/logstash/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/hybrid/logstash/mappings.json rename to x-pack/platform/test/fixtures/es_archives/hybrid/logstash/mappings.json diff --git a/x-pack/test/functional/es_archives/hybrid/rollup/data.json.gz b/x-pack/platform/test/fixtures/es_archives/hybrid/rollup/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/hybrid/rollup/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/hybrid/rollup/data.json.gz diff --git a/x-pack/test/functional/es_archives/hybrid/rollup/mappings.json b/x-pack/platform/test/fixtures/es_archives/hybrid/rollup/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/hybrid/rollup/mappings.json rename to x-pack/platform/test/fixtures/es_archives/hybrid/rollup/mappings.json diff --git a/x-pack/test/functional/es_archives/large_arrays/data.json.gz b/x-pack/platform/test/fixtures/es_archives/large_arrays/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/large_arrays/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/large_arrays/data.json.gz diff --git a/x-pack/test/functional/es_archives/large_arrays/mappings.json b/x-pack/platform/test/fixtures/es_archives/large_arrays/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/large_arrays/mappings.json rename to x-pack/platform/test/fixtures/es_archives/large_arrays/mappings.json diff --git a/x-pack/test/functional/es_archives/lens/epoch_millis/data.json b/x-pack/platform/test/fixtures/es_archives/lens/epoch_millis/data.json similarity index 100% rename from x-pack/test/functional/es_archives/lens/epoch_millis/data.json rename to x-pack/platform/test/fixtures/es_archives/lens/epoch_millis/data.json diff --git a/x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json b/x-pack/platform/test/fixtures/es_archives/lens/epoch_millis/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json rename to x-pack/platform/test/fixtures/es_archives/lens/epoch_millis/mappings.json diff --git a/x-pack/test/functional/es_archives/lens/rollup/data/data.json b/x-pack/platform/test/fixtures/es_archives/lens/rollup/data/data.json similarity index 100% rename from x-pack/test/functional/es_archives/lens/rollup/data/data.json rename to x-pack/platform/test/fixtures/es_archives/lens/rollup/data/data.json diff --git a/x-pack/test/functional/es_archives/lens/rollup/data/mappings.json b/x-pack/platform/test/fixtures/es_archives/lens/rollup/data/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/lens/rollup/data/mappings.json rename to x-pack/platform/test/fixtures/es_archives/lens/rollup/data/mappings.json diff --git a/x-pack/test/functional/es_archives/logstash/example_pipelines/data.json.gz b/x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/logstash/example_pipelines/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines/data.json.gz diff --git a/x-pack/test/functional/es_archives/logstash_functional/data.json.gz b/x-pack/platform/test/fixtures/es_archives/logstash_functional/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/logstash_functional/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/logstash_functional/data.json.gz diff --git a/x-pack/test/functional/es_archives/logstash_functional/mappings.json b/x-pack/platform/test/fixtures/es_archives/logstash_functional/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/logstash_functional/mappings.json rename to x-pack/platform/test/fixtures/es_archives/logstash_functional/mappings.json diff --git a/x-pack/test/functional/es_archives/maps/data/data.json b/x-pack/platform/test/fixtures/es_archives/maps/data/data.json similarity index 100% rename from x-pack/test/functional/es_archives/maps/data/data.json rename to x-pack/platform/test/fixtures/es_archives/maps/data/data.json diff --git a/x-pack/test/functional/es_archives/maps/data/mappings.json b/x-pack/platform/test/fixtures/es_archives/maps/data/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/maps/data/mappings.json rename to x-pack/platform/test/fixtures/es_archives/maps/data/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/bm_classification/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/bm_classification/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/bm_classification/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/bm_classification/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/bm_classification/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/bm_classification/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/bm_classification/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/bm_classification/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/categorization/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/categorization/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/categorization/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/categorization/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/categorization/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/categorization/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/categorization/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/categorization/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/categorization_small/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/categorization_small/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/categorization_small/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/categorization_small/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/categorization_small/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/categorization_small/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/categorization_small/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/categorization_small/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/ecommerce/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/ecommerce/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/ecommerce/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/ecommerce/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/ecommerce/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/ecommerce/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/ecommerce/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/ecommerce/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/egs_regression/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/egs_regression/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/egs_regression/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/egs_regression/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/egs_regression/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/egs_regression/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/egs_regression/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/egs_regression/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/event_rate_nanos/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/event_rate_nanos/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/event_rate_nanos/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/event_rate_nanos/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/farequote/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/farequote/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/farequote/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/farequote/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/farequote/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/farequote/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/farequote/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/farequote/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/farequote_small/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/farequote_small/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/farequote_small/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/farequote_small/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/farequote_small/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/farequote_small/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/farequote_small/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/farequote_small/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/ihp_outlier/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/ihp_outlier/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/ihp_outlier/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/ihp_outlier/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_apache/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_apache/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apache/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_apache/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_apache/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_apache/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apache/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_apache/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_apache_data_stream/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apache_data_stream/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_apache_data_stream/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apache_data_stream/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_apache_data_stream/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_apm_transaction/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apm_transaction/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_apm_transaction/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_apm_transaction/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_apm_transaction/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_auditbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_auditbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_auditbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_auditbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_auditbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_heartbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_heartbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_heartbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_heartbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_heartbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_logs/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_logs/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_logs/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_logs/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_logs/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_logs/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_logs/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_logs/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_metricbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_metricbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_metricbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_metricbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_metricbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_metrics_ui/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_metrics_ui/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_metrics_ui/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_metrics_ui/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_metrics_ui/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_nginx/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_nginx/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_nginx/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_nginx/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_nginx/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_nginx/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_nginx/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_nginx/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_nginx_data_stream/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_nginx_data_stream/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_nginx_data_stream/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_nginx_data_stream/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_nginx_data_stream/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_sample_ecommerce/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_sample_ecommerce/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_sample_ecommerce/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_sample_ecommerce/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_sample_logs/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_sample_logs/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_sample_logs/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_sample_logs/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_security_auditbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_auditbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_security_auditbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_auditbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_auditbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_security_cloudtrail/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_cloudtrail/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_security_cloudtrail/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_cloudtrail/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_cloudtrail/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_security_endpoint/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_endpoint/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_security_endpoint/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_endpoint/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_endpoint/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_security_packetbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_packetbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_security_packetbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_packetbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_packetbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/ml/module_security_winlogbeat/data.json.gz b/x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_winlogbeat/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat/data.json.gz diff --git a/x-pack/test/functional/es_archives/ml/module_security_winlogbeat/mappings.json b/x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/ml/module_security_winlogbeat/mappings.json rename to x-pack/platform/test/fixtures/es_archives/ml/module_security_winlogbeat/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/apm/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/apm/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/apm/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/apm/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/apm/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/apm/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/apm/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/apm/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/basic_6.3.x/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/basic_6.3.x/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/basic_6.3.x/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/basic_6.3.x/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/basic_6.3.x_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/basic_6.3.x_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/basic_6.3.x_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/basic_6.3.x_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/basic_6.3.x_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/beats/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/beats/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/beats/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/beats/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/beats/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/beats/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/beats/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/beats/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/beats_with_restarted_instance/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/beats_with_restarted_instance/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/ccr/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/ccr/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/ccr/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/ccr/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/ccr/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/ccr/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/ccr/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/ccr/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/ent_search/with_es/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/ent_search/with_es/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/ent_search/with_es/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/ent_search/with_es/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logs/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logs/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logs/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logs/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logs_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logs_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logs_multiple_clusters_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logs_multiple_clusters_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logstash/changing_pipelines/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash/changing_pipelines/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash/changing_pipelines/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash/changing_pipelines/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logstash/changing_pipelines/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash/changing_pipelines/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash/changing_pipelines/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash/changing_pipelines/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logstash_pipelines/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash_pipelines/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logstash_pipelines/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash_pipelines/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logstash_pipelines_multicluster/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_multicluster/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash_pipelines_multicluster/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_multicluster/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/logstash_pipelines_multicluster/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_multicluster/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/logstash_pipelines_multicluster/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_multicluster/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/multi_basic/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multi_basic/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/multi_basic/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multi_basic/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/multi_basic_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multi_basic_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/multi_basic_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multi_basic_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/multicluster/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/multicluster/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multicluster/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/multicluster/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/multicluster/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/multicluster/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multicluster/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/multicluster/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/multicluster_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multicluster_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/multicluster_package/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_package/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multicluster_package/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_package/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/multicluster_package/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_package/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/multicluster_package/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/multicluster_package/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_apm/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_apm/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_management_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_management_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_beats_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_beats_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash_management/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash_management/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash_management/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash_management/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash_management/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash_management/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/detect_logstash_management/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/detect_logstash_management/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_mb_8/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_mb_8/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_mb_8/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_mb_8/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_mb_8/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_mb_8/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/setup/collection/kibana_mb_8/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/kibana_mb_8/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_basic_beats_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_basic_beats_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_package/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_package/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_package/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_package/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_package/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_package/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold_package/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold_package/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_platinum/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_platinum/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_lots_of_nodes_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_lots_of_nodes_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_package/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_package/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_package/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_package/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_package/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_package/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_package/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_package/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/standalone_cluster/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/standalone_cluster/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster/data.json.gz diff --git a/x-pack/test/functional/es_archives/monitoring/standalone_cluster/mappings.json b/x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/standalone_cluster/mappings.json rename to x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster/mappings.json diff --git a/x-pack/test/functional/es_archives/monitoring/standalone_cluster_mb/data.json.gz b/x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster_mb/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/monitoring/standalone_cluster_mb/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster_mb/data.json.gz diff --git a/x-pack/test/functional/es_archives/pre_calculated_histogram/data.json b/x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram/data.json similarity index 100% rename from x-pack/test/functional/es_archives/pre_calculated_histogram/data.json rename to x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram/data.json diff --git a/x-pack/test/functional/es_archives/pre_calculated_histogram/mappings.json b/x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/pre_calculated_histogram/mappings.json rename to x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/archived_reports/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/archived_reports/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/archived_reports/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/archived_reports/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/archived_reports/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/archived_reports/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/archived_reports/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/archived_reports/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/big_int_id_field/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/big_int_id_field/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/big_int_id_field/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/big_int_id_field/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/bwc/6_2/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/bwc/6_2/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/bwc/6_2/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/bwc/6_2/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/bwc/6_3/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_3/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/bwc/6_3/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_3/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/bwc/6_3/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_3/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/bwc/6_3/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_3/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/ecommerce/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/ecommerce/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/ecommerce/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/ecommerce/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/ecommerce/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/ecommerce/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/ecommerce/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/ecommerce/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/ecommerce_76/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/ecommerce_76/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/ecommerce_76/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/ecommerce_76/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/errors/data.json b/x-pack/platform/test/fixtures/es_archives/reporting/errors/data.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/errors/data.json rename to x-pack/platform/test/fixtures/es_archives/reporting/errors/data.json diff --git a/x-pack/test/functional/es_archives/reporting/errors/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/errors/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/errors/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/errors/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/hugedata/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/hugedata/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/hugedata/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/hugedata/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/nanos/data.json b/x-pack/platform/test/fixtures/es_archives/reporting/nanos/data.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/nanos/data.json rename to x-pack/platform/test/fixtures/es_archives/reporting/nanos/data.json diff --git a/x-pack/test/functional/es_archives/reporting/nanos/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/nanos/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/nanos/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/nanos/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/sales/data.json.gz b/x-pack/platform/test/fixtures/es_archives/reporting/sales/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/reporting/sales/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/reporting/sales/data.json.gz diff --git a/x-pack/test/functional/es_archives/reporting/sales/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/sales/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/sales/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/sales/mappings.json diff --git a/x-pack/test/functional/es_archives/reporting/unmapped_fields/data.json b/x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields/data.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/unmapped_fields/data.json rename to x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields/data.json diff --git a/x-pack/test/functional/es_archives/reporting/unmapped_fields/mappings.json b/x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/reporting/unmapped_fields/mappings.json rename to x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields/mappings.json diff --git a/x-pack/test/functional/es_archives/rule_registry/alerts/data.json b/x-pack/platform/test/fixtures/es_archives/rule_registry/alerts/data.json similarity index 100% rename from x-pack/test/functional/es_archives/rule_registry/alerts/data.json rename to x-pack/platform/test/fixtures/es_archives/rule_registry/alerts/data.json diff --git a/x-pack/test/functional/es_archives/rule_registry/alerts/mappings.json b/x-pack/platform/test/fixtures/es_archives/rule_registry/alerts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/rule_registry/alerts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/rule_registry/alerts/mappings.json diff --git a/x-pack/test/functional/es_archives/rule_registry/o11y_alerts/data.json b/x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts/data.json similarity index 100% rename from x-pack/test/functional/es_archives/rule_registry/o11y_alerts/data.json rename to x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts/data.json diff --git a/x-pack/test/functional/es_archives/rule_registry/o11y_alerts/mappings.json b/x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/rule_registry/o11y_alerts/mappings.json rename to x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts/mappings.json diff --git a/x-pack/test/functional/es_archives/rules_scheduled_task_id/rules/data.json b/x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules/data.json similarity index 100% rename from x-pack/test/functional/es_archives/rules_scheduled_task_id/rules/data.json rename to x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules/data.json diff --git a/x-pack/test/functional/es_archives/rules_scheduled_task_id/rules/mappings.json b/x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/rules_scheduled_task_id/rules/mappings.json rename to x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/rules/mappings.json diff --git a/x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks/data.json b/x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks/data.json similarity index 100% rename from x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks/data.json rename to x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks/data.json diff --git a/x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks/mappings.json b/x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/rules_scheduled_task_id/tasks/mappings.json rename to x-pack/platform/test/fixtures/es_archives/rules_scheduled_task_id/tasks/mappings.json diff --git a/x-pack/test/functional/es_archives/dlstest/data.json.gz b/x-pack/platform/test/fixtures/es_archives/security/dlstest/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/dlstest/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/security/dlstest/data.json.gz diff --git a/x-pack/test/functional/es_archives/dlstest/mappings.json b/x-pack/platform/test/fixtures/es_archives/security/dlstest/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/dlstest/mappings.json rename to x-pack/platform/test/fixtures/es_archives/security/dlstest/mappings.json diff --git a/x-pack/test/functional/es_archives/security/flstest/data.json.gz b/x-pack/platform/test/fixtures/es_archives/security/flstest/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/security/flstest/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/security/flstest/data.json.gz diff --git a/x-pack/test/functional/es_archives/security/flstest/data/data.json.gz b/x-pack/platform/test/fixtures/es_archives/security/flstest/data/data.json.gz similarity index 100% rename from x-pack/test/functional/es_archives/security/flstest/data/data.json.gz rename to x-pack/platform/test/fixtures/es_archives/security/flstest/data/data.json.gz diff --git a/x-pack/test/functional/es_archives/security/flstest/data/mappings.json b/x-pack/platform/test/fixtures/es_archives/security/flstest/data/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/security/flstest/data/mappings.json rename to x-pack/platform/test/fixtures/es_archives/security/flstest/data/mappings.json diff --git a/x-pack/test/functional/es_archives/security/flstest/mappings.json b/x-pack/platform/test/fixtures/es_archives/security/flstest/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/security/flstest/mappings.json rename to x-pack/platform/test/fixtures/es_archives/security/flstest/mappings.json diff --git a/x-pack/test/functional/es_archives/task_manager_removed_types/data.json b/x-pack/platform/test/fixtures/es_archives/task_manager_removed_types/data.json similarity index 100% rename from x-pack/test/functional/es_archives/task_manager_removed_types/data.json rename to x-pack/platform/test/fixtures/es_archives/task_manager_removed_types/data.json diff --git a/x-pack/test/functional/es_archives/task_manager_tasks/data.json b/x-pack/platform/test/fixtures/es_archives/task_manager_tasks/data.json similarity index 100% rename from x-pack/test/functional/es_archives/task_manager_tasks/data.json rename to x-pack/platform/test/fixtures/es_archives/task_manager_tasks/data.json diff --git a/x-pack/test/functional/es_archives/upgrade_assistant/reindex/data.json b/x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex/data.json similarity index 100% rename from x-pack/test/functional/es_archives/upgrade_assistant/reindex/data.json rename to x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex/data.json diff --git a/x-pack/test/functional/es_archives/visualize/default/data.json b/x-pack/platform/test/fixtures/es_archives/visualize/default/data.json similarity index 100% rename from x-pack/test/functional/es_archives/visualize/default/data.json rename to x-pack/platform/test/fixtures/es_archives/visualize/default/data.json diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy.ts index 58ca0457d47f7..9d8ee69487001 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy.ts @@ -77,7 +77,7 @@ export default function (providerContext: FtrProviderContext) { describe('GET /api/fleet/agent_policies', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); await createAgentPolicyWithPackagePolicy(); @@ -164,7 +164,7 @@ export default function (providerContext: FtrProviderContext) { describe('POST /api/fleet/agent_policies', () => { let systemPkgVersion: string; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); }); @@ -182,7 +182,9 @@ export default function (providerContext: FtrProviderContext) { }); } - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); await kibanaServer.savedObjects.cleanStandardList(); }); it('should work with valid minimum required values', async () => { @@ -654,7 +656,7 @@ export default function (providerContext: FtrProviderContext) { describe('POST /api/fleet/agent_policies/{agentPolicyId}/copy', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await fleetAndAgents.setup(); await createAgentPolicyWithPackagePolicy(); createdPolicyIds.push(agentPolicyWithPPId!); @@ -669,7 +671,7 @@ export default function (providerContext: FtrProviderContext) { .expect(200) ); await Promise.all(deletedPromises); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); if (systemPkgVersion) { await supertest.delete(`/api/fleet/epm/packages/system/${systemPkgVersion}`); } @@ -1162,7 +1164,7 @@ export default function (providerContext: FtrProviderContext) { describe('PUT /api/fleet/agent_policies/{agentPolicyId}', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); await createAgentPolicyWithPackagePolicy(); @@ -1178,7 +1180,9 @@ export default function (providerContext: FtrProviderContext) { .expect(200) ); await Promise.all(deletedPromises); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); let agentPolicyId: undefined | string; it('should work with valid values', async () => { @@ -1714,10 +1718,12 @@ export default function (providerContext: FtrProviderContext) { describe('POST /api/fleet/agent_policies/delete', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); let hostedPolicy: any | undefined; it('should prevent hosted policies being deleted', async () => { @@ -1865,7 +1871,7 @@ export default function (providerContext: FtrProviderContext) { describe('POST /api/fleet/agent_policies/_bulk_get', () => { let policyId: string; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); await createAgentPolicyWithPackagePolicy(); @@ -1899,7 +1905,9 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .send({ agentPolicyId: agentPolicyWithPPId }) .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it('should allow to get valid ids', async () => { @@ -2148,13 +2156,15 @@ export default function (providerContext: FtrProviderContext) { // FLAKY: https://github.com/elastic/kibana/issues/213370 describe.skip('POST /internal/fleet/agent_and_package_policies', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); afterEach(async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_datastream_permissions.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_datastream_permissions.ts index 2b0d4e3a2f361..1a01f56bb79f5 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_datastream_permissions.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_datastream_permissions.ts @@ -19,12 +19,12 @@ export default function (providerContext: FtrProviderContext) { describe('datastream privileges', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('dynamic privileges', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts index 74c5af6b0d811..884c1f248c684 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts @@ -105,7 +105,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agent_policies_outputs', () => { describe('POST /api/fleet/agent_policies/outputs', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); @@ -190,7 +190,7 @@ export default function (providerContext: FtrProviderContext) { let output2Id = ''; describe('GET /api/fleet/agent_policies/{agentPolicyId}/outputs', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_root_integrations.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_root_integrations.ts index f5ce7dada17e2..413ed9cec52dc 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_root_integrations.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_root_integrations.ts @@ -19,12 +19,12 @@ export default function (providerContext: FtrProviderContext) { describe('agent policy with root integrations', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('root integrations', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts index 83e4fda7b053d..2a81fa064de69 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts @@ -84,14 +84,14 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await fleetAndAgents.setup(); }); after(async () => { // Wait before agent status is updated await new Promise((resolve) => setTimeout(resolve, AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS)); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); describe('In default space', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/privileges.ts b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/privileges.ts index d22fa9380769d..bfd5a452fdc38 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/privileges.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/privileges.ts @@ -210,7 +210,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agent_policies_privileges', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await setupTestUsers(getService('security')); diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/action_status.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/action_status.ts index 772aa3eaf4eb9..382ad380dc8b1 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/action_status.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/action_status.ts @@ -26,12 +26,12 @@ export default function (providerContext: FtrProviderContext) { describe('action_status_api', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); describe('GET /api/fleet/agents/action_status', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/actions.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/actions.ts index 4b2279daf3cbb..738a24d3e0f84 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/actions.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/actions.ts @@ -19,10 +19,10 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_actions', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); describe('POST /agents/{agentId}/actions', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/delete.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/delete.ts index be07a16cee458..4eafff2773ce2 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/delete.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/delete.ts @@ -59,10 +59,10 @@ export default function ({ getService }: FtrProviderContext) { } } - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); it('should return a 404 if there is no agent to delete', async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/get_agents_by_actions.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/get_agents_by_actions.ts index 20f02c732fb4f..5835104f3625d 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/get_agents_by_actions.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/get_agents_by_actions.ts @@ -18,7 +18,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_get_agents_by_actions', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); // Clean slate await es.deleteByQuery({ @@ -118,7 +118,7 @@ export default function (providerContext: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); describe('POST /agents/', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/list.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/list.ts index 2fdb7d5c993ed..e296650d70d92 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/list.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/list.ts @@ -27,7 +27,7 @@ export default function ({ getService }: FtrProviderContext) { mockApiServer = await mockAgentlessApiService.listen(8089); // Start the agentless api mock server on port 8089 // Ensure fleet default outputs are setup await supertest.post(`/api/fleet/setup`).set('kbn-xsrf', 'xxxx').expect(200); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); const getPkRes = await supertest .get(`/api/fleet/epm/packages/${FLEET_ELASTIC_AGENT_PACKAGE}`) .set('kbn-xsrf', 'xxxx') @@ -44,7 +44,7 @@ export default function ({ getService }: FtrProviderContext) { }); after(async () => { mockApiServer.close(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await supertest .delete(`/api/fleet/epm/packages/${FLEET_ELASTIC_AGENT_PACKAGE}/${elasticAgentpkgVersion}`) .set('kbn-xsrf', 'xxxx'); @@ -384,8 +384,8 @@ export default function ({ getService }: FtrProviderContext) { describe('advanced search params', () => { afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); it('should return correct results with searchAfter parameter', async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts index db2af0915688d..2c6209b5abf74 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts @@ -16,7 +16,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_migrate', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); // Create agent policies using the Fleet API // Policy 1 - regular policy without tamper protection @@ -172,7 +172,7 @@ export default function (providerContext: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); // Cleanup will be handled automatically by Fleet API }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/privileges.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/privileges.ts index 9c95365789a2a..4599011a2c079 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/privileges.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/privileges.ts @@ -33,7 +33,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_api_privileges', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); const getPkRes = await supertest .get(`/api/fleet/epm/packages/${FLEET_ELASTIC_AGENT_PACKAGE}`) .set('kbn-xsrf', 'xxxx') @@ -88,7 +88,7 @@ export default function (providerContext: FtrProviderContext) { }); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await supertest .delete(`/api/fleet/epm/packages/${FLEET_ELASTIC_AGENT_PACKAGE}/${elasticAgentpkgVersion}`) .set('kbn-xsrf', 'xxxx'); diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/reassign.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/reassign.ts index 48a29d2a7190d..3962b4a8ff4f3 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/reassign.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/reassign.ts @@ -18,20 +18,20 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_reassign_agent', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); beforeEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('reassign single agent', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/request_diagnostics.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/request_diagnostics.ts index a24ded48ec3f0..247555844d2b6 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/request_diagnostics.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/request_diagnostics.ts @@ -27,13 +27,13 @@ export default function (providerContext: FtrProviderContext) { await fleetAndAgents.setup(); }); beforeEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); async function verifyActionResult(agentCount: number) { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/status.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/status.ts index 3f621234edae2..39a81701c8b50 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/status.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/status.ts @@ -17,7 +17,7 @@ export default function ({ getService }: FtrProviderContext) { describe('fleet_agents_status', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await supertest .post(`/api/fleet/agent_policies`) .set('kbn-xsrf', 'xxxx') @@ -222,7 +222,7 @@ export default function ({ getService }: FtrProviderContext) { }); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); it('should return the status of agents', async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/unenroll.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/unenroll.ts index d09ad9bb08439..186788e206880 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/unenroll.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/unenroll.ts @@ -24,12 +24,12 @@ export default function (providerContext: FtrProviderContext) { let accessAPIKeyId: string; let outputAPIKeyId: string; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); beforeEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); const accessAPIKeyBody = await esClient.security.createApiKey({ name: `test access api key: ${uuidv4()}`, @@ -60,11 +60,11 @@ export default function (providerContext: FtrProviderContext) { }); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it('/agents/{agent_id}/unenroll should fail for hosted agent policy', async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/update.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/update.ts index 830dfcff09a8f..390b0a6a3a648 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/update.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/update.ts @@ -15,10 +15,10 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_update', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); it('should return a 200 if this a valid update request with tags', async () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/update_agent_tags.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/update_agent_tags.ts index bec1e489aedc2..0f1ba90aab9e3 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/update_agent_tags.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/update_agent_tags.ts @@ -52,20 +52,20 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_update_agent_tags', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); beforeEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('bulk update agent tags', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/upgrade.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/upgrade.ts index 969af94130371..4479f2e5c3fed 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/upgrade.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/upgrade.ts @@ -26,12 +26,12 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_upgrade_agent', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await fleetAndAgents.setup(); }); beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await supertest .post(`/api/fleet/agent_download_sources`) .set('kbn-xsrf', 'xxxx') @@ -52,10 +52,10 @@ export default function (providerContext: FtrProviderContext) { } }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); describe('one agent', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/agents/uploads.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/uploads.ts index c6fedce82c68e..0f5517c0a0e01 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/uploads.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/uploads.ts @@ -158,13 +158,13 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await fleetAndAgents.setup(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); await cleanupFiles(); }); after(async () => { await Promise.all([ - esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'), + esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'), cleanupFiles(), ]); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/download_sources/crud.ts b/x-pack/platform/test/fleet_api_integration/apis/download_sources/crud.ts index 2641800c0c354..2f4368cf96ee5 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/download_sources/crud.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/download_sources/crud.ts @@ -103,7 +103,7 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); const { body: apiResponse } = await supertest @@ -134,7 +134,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('GET /agent_download_sources', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/privileges.ts b/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/privileges.ts index 50fcf50312082..83ba9a2ceea99 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/privileges.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/privileges.ts @@ -19,12 +19,12 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_enrollment_api_keys_privileges', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); skipIfNoDockerRegistry(providerContext); diff --git a/x-pack/platform/test/fleet_api_integration/apis/epm/custom_ingest_pipeline.ts b/x-pack/platform/test/fleet_api_integration/apis/epm/custom_ingest_pipeline.ts index ce60667aedee4..eb67931d33f4e 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/epm/custom_ingest_pipeline.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/epm/custom_ingest_pipeline.ts @@ -25,7 +25,7 @@ export default function (providerContext: FtrProviderContext) { describe('custom ingest pipeline for fleet managed datastreams', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); await supertest @@ -41,7 +41,7 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .send({ force: true }) .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const res = await es.search({ index: TEST_INDEX, }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/epm/final_pipeline.ts b/x-pack/platform/test/fleet_api_integration/apis/epm/final_pipeline.ts index 5f6e528e85078..2c97cf6027c96 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/epm/final_pipeline.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/epm/final_pipeline.ts @@ -37,7 +37,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_final_pipeline', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); // Use the custom log package to test the fleet final pipeline await supertest @@ -53,7 +53,7 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .send({ force: true }) .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const res = await es.search({ index: TEST_INDEX, }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts b/x-pack/platform/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts index 2ae6fce3f9897..4b18e82ce11d9 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts @@ -78,7 +78,7 @@ export default function (providerContext: FtrProviderContext) { if (!isDockerRegistryEnabledOrSkipped(providerContext)) { return; } - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await installPackage(pkgName, pkgVersion); await createSpace(testSpaceId); @@ -88,7 +88,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await deleteSpace(testSpaceId); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it('should install kibana assets', async function () { diff --git a/x-pack/platform/test/fleet_api_integration/apis/epm/routing_rules.ts b/x-pack/platform/test/fleet_api_integration/apis/epm/routing_rules.ts index a55fdb8f7c1dc..f8af3fa1d815f 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/epm/routing_rules.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/epm/routing_rules.ts @@ -25,7 +25,7 @@ export default function (providerContext: FtrProviderContext) { describe('routing rules for fleet managed datastreams', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); await supertest .post(`/api/fleet/epm/packages/${ROUTING_RULES_PKG_NAME}/${ROUTING_RULES_PKG_VERSION}`) @@ -41,7 +41,7 @@ export default function (providerContext: FtrProviderContext) { .send({ force: true }) .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const res = await es.search({ index: TEST_REROUTE_INDEX, diff --git a/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts b/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts index 51222f509cd6d..ec10059fbc44a 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts @@ -29,7 +29,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_event_ingested_pipeline', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); // Use the custom log package to test the fleet final pipeline await supertestWithoutAuth @@ -47,7 +47,7 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .send({ force: true }) .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const res = await es.search({ index: TEST_INDEX, }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/fleet_proxies/crud.ts b/x-pack/platform/test/fleet_api_integration/apis/fleet_proxies/crud.ts index 2b07e2cc89574..e85c19c116c15 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/fleet_proxies/crud.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/fleet_proxies/crud.ts @@ -44,7 +44,7 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); @@ -114,7 +114,7 @@ export default function (providerContext: FtrProviderContext) { await kibanaServer.savedObjects.clean({ types: ['fleet-proxy'], }); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('GET /proxies', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/fleet_server_hosts/crud.ts b/x-pack/platform/test/fleet_api_integration/apis/fleet_server_hosts/crud.ts index 0ce6b8623c230..5e185d148b4d9 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/fleet_server_hosts/crud.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/fleet_server_hosts/crud.ts @@ -102,7 +102,7 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); @@ -147,7 +147,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('GET /fleet_server_hosts', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/fleet_settings_privileges.ts b/x-pack/platform/test/fleet_api_integration/apis/fleet_settings_privileges.ts index 7d6a58c066121..6942f4e29058c 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/fleet_settings_privileges.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/fleet_settings_privileges.ts @@ -296,7 +296,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_settings_privileges (Outputs, FleetServerHosts, Proxies, ...)', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); await setupTestUsers(getService('security')); diff --git a/x-pack/platform/test/fleet_api_integration/apis/fleet_setup.ts b/x-pack/platform/test/fleet_api_integration/apis/fleet_setup.ts index 08e700c3224b0..ba8f84aeee03e 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/fleet_setup.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/fleet_setup.ts @@ -27,12 +27,12 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); beforeEach(async () => { try { diff --git a/x-pack/platform/test/fleet_api_integration/apis/fleet_telemetry.ts b/x-pack/platform/test/fleet_api_integration/apis/fleet_telemetry.ts index 5a610ce087815..5f76b4c9a4457 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/fleet_telemetry.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/fleet_telemetry.ts @@ -29,13 +29,13 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); if (pkgVersion) { await supertest.delete(`/api/fleet/epm/packages/fleet_server/${pkgVersion}`); } diff --git a/x-pack/platform/test/fleet_api_integration/apis/outputs/crud.ts b/x-pack/platform/test/fleet_api_integration/apis/outputs/crud.ts index 3d79e6d20d445..87da89b4cd2ad 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/outputs/crud.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/outputs/crud.ts @@ -198,7 +198,7 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); @@ -310,7 +310,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); describe('GET /outputs', () => { diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/delete.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/delete.ts index fddf71eaf98a1..a22bcdc0bd537 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/delete.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/delete.ts @@ -22,7 +22,7 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await getService('esArchiver').load( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); beforeEach(async () => { @@ -88,7 +88,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); await getService('esArchiver').unload( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); @@ -175,7 +175,7 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await getService('esArchiver').load( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); let agentPolicyResponse = await supertest .post(`/api/fleet/agent_policies`) @@ -236,7 +236,7 @@ export default function (providerContext: FtrProviderContext) { await kibanaServer.savedObjects.cleanStandardList(); await getService('esArchiver').unload( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts new file mode 100644 index 0000000000000..7802a93f717ec --- /dev/null +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts @@ -0,0 +1,661 @@ +/* + * 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 * as http from 'http'; +import expect from '@kbn/expect'; +import { v4 as uuidv4 } from 'uuid'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { skipIfNoDockerRegistry } from '../../helpers'; +import { setupMockServer } from '../agents/helpers/mock_agentless_api'; + +export default function (providerContext: FtrProviderContext) { + const { getService } = providerContext; + const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); + const fleetAndAgents = getService('fleetAndAgents'); + const mockAgentlessApiService = setupMockServer(); + + describe('package policy deployment modes', () => { + let mockApiServer: http.Server; + skipIfNoDockerRegistry(providerContext); + + before(async () => { + mockApiServer = await mockAgentlessApiService.listen(8089); // Start the agentless api mock server on port 8089 + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); + await fleetAndAgents.setup(); + + // Set up default Fleet Server host, needed during agentless agent creation + await supertest + .post(`/api/fleet/fleet_server_hosts`) + .set('kbn-xsrf', 'xxxx') + .send({ + id: 'fleet-default-fleet-server-host', + name: 'Default', + is_default: true, + host_urls: ['https://test.com:8080', 'https://test.com:8081'], + }); + }); + + after(async () => { + await supertest + .delete(`/api/fleet/fleet_server_hosts/fleet-default-fleet-server-host`) + .set('kbn-xsrf', 'xxxx'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + mockApiServer.close(); + }); + + describe('deployment_modes support', () => { + let agentPolicyId: string; + let agentlessAgentPolicyId: string; + + before(async () => { + // Install test package with deployment_modes + await supertest + .post(`/api/fleet/epm/packages/deployment_modes_test/1.0.0`) + .set('kbn-xsrf', 'xxxx') + .expect(200); + + // Create regular agent policy + const { + body: { + item: { id: regularPolicyId }, + }, + } = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `Test policy ${uuidv4()}`, + namespace: 'default', + monitoring_enabled: [], + }) + .expect(200); + agentPolicyId = regularPolicyId; + + // Create agentless agent policy + const { + body: { + item: { id: agentlessPolicyId }, + }, + } = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `Test agentless policy ${uuidv4()}`, + namespace: 'default', + monitoring_enabled: [], + supports_agentless: true, + }) + .expect(200); + agentlessAgentPolicyId = agentlessPolicyId; + }); + + after(async () => { + // Clean up agent policies + if (agentPolicyId) { + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + } + if (agentlessAgentPolicyId) { + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId: agentlessAgentPolicyId }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + } + + // Uninstall test package + await supertest + .delete(`/api/fleet/epm/packages/deployment_modes_test/1.0.0`) + .set('kbn-xsrf', 'xxxx') + .send({ force: true }) + .expect(200); + }); + + describe('mixed_modes policy template', () => { + it('should allow logs input for both default and agentless deployment modes', async () => { + // Test default deployment mode + const { body: defaultResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-logs-default-${uuidv4()}`, + description: 'Test logs input in default mode', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(defaultResponse.item.inputs).to.have.length(1); + expect(defaultResponse.item.inputs[0].type).to.be('logs'); + expect(defaultResponse.item.inputs[0].enabled).to.be(true); + + // Test agentless deployment mode + const { body: agentlessResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-logs-agentless-${uuidv4()}`, + description: 'Test logs input in agentless mode', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(agentlessResponse.item.inputs).to.have.length(1); + expect(agentlessResponse.item.inputs[0].type).to.be('logs'); + expect(agentlessResponse.item.inputs[0].enabled).to.be(true); + }); + + it('should allow metrics input only for default deployment mode', async () => { + // Test default deployment mode (should succeed) + const { body: defaultResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-metrics-default-${uuidv4()}`, + description: 'Test metrics input in default mode', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'metrics', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(defaultResponse.item.inputs).to.have.length(1); + expect(defaultResponse.item.inputs[0].type).to.be('metrics'); + expect(defaultResponse.item.inputs[0].enabled).to.be(true); + + // Test agentless deployment mode (should fail) + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-metrics-agentless-${uuidv4()}`, + description: 'Test metrics input in agentless mode', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'metrics', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input metrics in deployment_modes_test is not allowed for deployment mode 'agentless'" + ); + }); + }); + + it('should allow http_endpoint input only for agentless deployment mode', async () => { + // Test agentless deployment mode (should succeed) + const { body: agentlessResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-http-agentless-${uuidv4()}`, + description: 'Test http_endpoint input in agentless mode', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'http_endpoint', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(agentlessResponse.item.inputs).to.have.length(1); + expect(agentlessResponse.item.inputs[0].type).to.be('http_endpoint'); + expect(agentlessResponse.item.inputs[0].enabled).to.be(true); + + // Test default deployment mode (should fail) + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-http-default-${uuidv4()}`, + description: 'Test http_endpoint input in default mode', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'http_endpoint', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input http_endpoint in deployment_modes_test is not allowed for deployment mode 'default'" + ); + }); + }); + + it('should fall back to blocklist for inputs without deployment_modes', async () => { + // Test winlog input for default mode (should succeed - no blocklist for default) + const { body: defaultResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-winlog-default-${uuidv4()}`, + description: 'Test winlog input in default mode (fallback allows all)', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'winlog', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(defaultResponse.item.inputs).to.have.length(1); + expect(defaultResponse.item.inputs[0].type).to.be('winlog'); + expect(defaultResponse.item.inputs[0].enabled).to.be(true); + + // Test winlog input (blocked by AGENTLESS_DISABLED_INPUTS) for agentless mode + const { body: agentlessResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-winlog-agentless-${uuidv4()}`, + description: 'Test winlog input in agentless mode (fallback to blocklist)', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'winlog', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(400); + + expect(agentlessResponse.message).to.contain( + "Input winlog in deployment_modes_test is not allowed for deployment mode 'agentless'" + ); + }); + }); + + describe('agentless_only policy template', () => { + it('should allow agentless inputs only for agentless deployment mode', async () => { + // Test agentless deployment mode (should succeed) + const { body: agentlessResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-cloudwatch-agentless-${uuidv4()}`, + description: 'Test cloudwatch input in agentless mode', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'cloudwatch', + policy_template: 'agentless_only', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(agentlessResponse.item.inputs).to.have.length(1); + expect(agentlessResponse.item.inputs[0].type).to.be('cloudwatch'); + + // Test default deployment mode (should fail) + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-cloudwatch-default-${uuidv4()}`, + description: 'Test cloudwatch input in default mode', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'cloudwatch', + policy_template: 'agentless_only', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input cloudwatch in deployment_modes_test is not allowed for deployment mode 'default'" + ); + }); + }); + }); + + describe('default_only policy template', () => { + it('should allow default inputs only for default deployment mode', async () => { + // Test default deployment mode (should succeed) + const { body: defaultResponse } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-filestream-default-${uuidv4()}`, + description: 'Test filestream input in default mode', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'filestream', + policy_template: 'default_only', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(defaultResponse.item.inputs).to.have.length(1); + expect(defaultResponse.item.inputs[0].type).to.be('filestream'); + + // Test agentless deployment mode (should fail) + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-filestream-agentless-${uuidv4()}`, + description: 'Test filestream input in agentless mode', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'filestream', + policy_template: 'default_only', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input filestream in deployment_modes_test is not allowed for deployment mode 'agentless'" + ); + }); + }); + }); + + describe('multiple inputs with mixed deployment modes', () => { + it('should validate all inputs and reject if any are incompatible', async () => { + // Try to create a package policy with both valid and invalid inputs for agentless + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-mixed-invalid-${uuidv4()}`, + description: 'Test mixed inputs with invalid combination', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + { + type: 'metrics', // This should fail for agentless + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input metrics in deployment_modes_test is not allowed for deployment mode 'agentless'" + ); + }); + }); + + it('should succeed when all inputs are compatible with deployment mode', async () => { + // Create a package policy with only compatible inputs for agentless + const { body: response } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-mixed-valid-${uuidv4()}`, + description: 'Test mixed inputs with valid combination', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + { + type: 'http_endpoint', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + expect(response.item.inputs).to.have.length(2); + expect(response.item.inputs.map((input: any) => input.type)).to.contain('logs'); + expect(response.item.inputs.map((input: any) => input.type)).to.contain('http_endpoint'); + }); + }); + + describe('disabled inputs', () => { + it('should allow disabled inputs even if they are not compatible with deployment mode', async () => { + // Create a package policy with a disabled metrics input for agentless (should succeed) + const { body: response } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-disabled-${uuidv4()}`, + description: 'Test disabled incompatible input', + namespace: 'default', + policy_id: agentlessAgentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + { + type: 'metrics', + policy_template: 'mixed_modes', + enabled: false, // Disabled input should be allowed + streams: [], + }, + ], + }) + .expect(200); + + expect(response.item.inputs).to.have.length(2); + const metricsInput = response.item.inputs.find((input: any) => input.type === 'metrics'); + expect(metricsInput.enabled).to.be(false); + }); + }); + + describe('package policy updates', () => { + let packagePolicyId: string; + + beforeEach(async () => { + // Create a package policy for testing updates + const { body: response } = await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-update-${uuidv4()}`, + description: 'Test package policy for updates', + namespace: 'default', + policy_id: agentPolicyId, + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(200); + + packagePolicyId = response.item.id; + }); + + it('should validate deployment modes when updating package policy inputs', async () => { + // Try to update to add an incompatible input + await supertest + .put(`/api/fleet/package_policies/${packagePolicyId}`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: `deployment-test-update-${uuidv4()}`, + description: 'Updated package policy with incompatible input', + namespace: 'default', + policy_id: agentlessAgentPolicyId, // Switch to agentless policy + package: { + name: 'deployment_modes_test', + version: '1.0.0', + }, + inputs: [ + { + type: 'logs', + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + { + type: 'metrics', // This should fail for agentless + policy_template: 'mixed_modes', + enabled: true, + streams: [], + }, + ], + }) + .expect(400) + .then((response) => { + expect(response.body.message).to.contain( + "Input metrics in deployment_modes_test is not allowed for deployment mode 'agentless'" + ); + }); + }); + }); + }); + }); +} diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/get.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/get.ts index 4d5e1756b4176..cd37de095c1c8 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/get.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/get.ts @@ -33,11 +33,11 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/update.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/update.ts index d83e57330fe72..84d8307c2fb23 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/update.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/update.ts @@ -63,7 +63,7 @@ export default function (providerContext: FtrProviderContext) { let inputOnlyBasePackagePolicy: NewPackagePolicy; before(async function () { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); if (!isDockerRegistryEnabledOrSkipped(providerContext)) { return; @@ -264,7 +264,7 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/upgrade.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/upgrade.ts index bc55a2a6c22be..3ac3208cbe261 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/upgrade.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/upgrade.ts @@ -58,14 +58,14 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); after(async () => { await kibanaServer.savedObjects.cleanStandardList(); await getService('esArchiver').unload( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/policy_secrets.ts b/x-pack/platform/test/fleet_api_integration/apis/policy_secrets.ts index ed859a8d6097a..86612719b644c 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/policy_secrets.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/policy_secrets.ts @@ -368,13 +368,13 @@ export default function (providerContext: FtrProviderContext) { await kibanaServer.savedObjects.cleanStandardList(); await fleetAndAgents.setup(); await getService('esArchiver').load( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); after(async () => { await getService('esArchiver').unload( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment.ts b/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment.ts index f9539c1e0726e..95ec2423074e6 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment.ts @@ -41,7 +41,7 @@ export default function (providerContext: FtrProviderContext) { describe('should respond with correct enrollment settings', function () { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/fleet_server'); // package verification error without force await supertest .post(`/api/fleet/epm/packages/fleet_server`) @@ -51,7 +51,7 @@ export default function (providerContext: FtrProviderContext) { await fleetAndAgents.setup(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/fleet_server'); }); it('when there are multiple fleet server policies and an active host', async function () { diff --git a/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment_privileges.ts b/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment_privileges.ts index 0ff4babea1996..bf5dd18980861 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment_privileges.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/settings/enrollment_privileges.ts @@ -73,12 +73,12 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_enrollment_settings_privileges', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/fleet_server'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/fleet_server'); await setupTestUsers(getService('security')); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/settings/get.ts b/x-pack/platform/test/fleet_api_integration/apis/settings/get.ts index 2a453a40db2cd..c9b4b081b1571 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/settings/get.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/settings/get.ts @@ -18,13 +18,13 @@ export default function (providerContext: FtrProviderContext) { describe('Settings - get', function () { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await fleetAndAgents.setup(); }); after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it('should respond return settings', async function () { diff --git a/x-pack/platform/test/functional/apps/advanced_settings/feature_controls/advanced_settings_spaces.ts b/x-pack/platform/test/functional/apps/advanced_settings/feature_controls/advanced_settings_spaces.ts index 2b5c01a7769c8..bed9666cf08f2 100644 --- a/x-pack/platform/test/functional/apps/advanced_settings/feature_controls/advanced_settings_spaces.ts +++ b/x-pack/platform/test/functional/apps/advanced_settings/feature_controls/advanced_settings_spaces.ts @@ -19,7 +19,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('spaces feature controls', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); describe('space with no features disabled', () => { diff --git a/x-pack/platform/test/functional/apps/aiops/change_point_detection.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection.ts index d76b657504d28..c0775bd4f59a8 100644 --- a/x-pack/platform/test/functional/apps/aiops/change_point_detection.ts +++ b/x-pack/platform/test/functional/apps/aiops/change_point_detection.ts @@ -19,7 +19,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('change point detection UI', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts index a91d195792fdb..52b77b821dca0 100644 --- a/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts +++ b/x-pack/platform/test/functional/apps/aiops/change_point_detection_cases.ts @@ -20,7 +20,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('change point detection in cases', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts b/x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts index d97ab9f9d2709..72642253c9e83 100644 --- a/x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts +++ b/x-pack/platform/test/functional/apps/aiops/change_point_detection_dashboard.ts @@ -22,7 +22,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('change point detection in dashboard', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts index 68ddf19fefdbf..730d3dbf6eec7 100644 --- a/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts +++ b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis.ts @@ -37,7 +37,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await ml.testResources.createDataViewIfNeeded('logstash-*', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts index b87bf9fcd43db..ba0b8cebe9029 100644 --- a/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts +++ b/x-pack/platform/test/functional/apps/aiops/log_pattern_analysis_in_discover.ts @@ -34,7 +34,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await ml.testResources.createDataViewIfNeeded('logstash-*', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts index 2fc31451c6e5e..1d77f2a826564 100644 --- a/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts +++ b/x-pack/platform/test/functional/apps/aiops/log_rate_analysis_anomaly_table.ts @@ -160,7 +160,7 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); }); diff --git a/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts b/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts index cd3bfe583e7b4..4f9e699f12eaa 100644 --- a/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts +++ b/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts @@ -15,7 +15,7 @@ export default function canvasLensTest({ getService, getPageObjects }: FtrProvid const kibanaServer = getService('kibanaServer'); const testSubjects = getService('testSubjects'); const archives = { - es: 'x-pack/test/functional/es_archives/canvas/logstash_lens', + es: 'x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens', kbn: 'x-pack/test/functional/fixtures/kbn_archiver/canvas/lens', }; diff --git a/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_spaces.ts b/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_spaces.ts index faf114ad93eef..755c1497bfb53 100644 --- a/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_spaces.ts +++ b/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_spaces.ts @@ -22,7 +22,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); after(async () => { diff --git a/x-pack/platform/test/functional/apps/canvas/index.ts b/x-pack/platform/test/functional/apps/canvas/index.ts index 7b4192fbd3924..8669374a2a319 100644 --- a/x-pack/platform/test/functional/apps/canvas/index.ts +++ b/x-pack/platform/test/functional/apps/canvas/index.ts @@ -29,7 +29,7 @@ export default ({ loadTestFile, getService }: FtrProviderContext) => { esNode = isRunningInCcsMode ? getService('remoteEsArchiver' as 'esArchiver') : getService('esArchiver'); - await esNode.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esNode.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); after(async () => { diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/created_by.ts b/x-pack/platform/test/functional/apps/dashboard/group1/created_by.ts index 6487c5d4fdaaf..7b58dd0f08ac5 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/created_by.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/created_by.ts @@ -24,7 +24,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await esArchiver.emptyKibanaIndex(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana' ); @@ -83,7 +85,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await securityService.user.delete(USERNAME_1); await securityService.user.delete(USERNAME_2); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_security.ts b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_security.ts index c94dad10b1a5e..6c5d1cb6f2022 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_security.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_security.ts @@ -38,7 +38,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('dashboard feature controls security', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kbnServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' ); @@ -56,7 +58,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await security.forceLogout(); await kbnServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); describe('global dashboard all privileges, no embeddable application privileges', () => { diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_spaces.ts b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_spaces.ts index 6801d7ad4e467..875c5c68a77c9 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_spaces.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/dashboard_spaces.ts @@ -20,7 +20,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('spaces', () => { const customSpace = 'custom_space'; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); describe('space with no features disabled', () => { diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/time_to_visualize_security.ts b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/time_to_visualize_security.ts index 5d5162c500e46..57aad8fef5706 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/time_to_visualize_security.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/feature_controls/time_to_visualize_security.ts @@ -32,7 +32,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('dashboard time to visualize security', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kbnServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' ); @@ -83,7 +85,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await securityService.user.delete('dashboard_write_vis_read_user'); await kbnServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); describe('lens by value works without library save permissions', () => { diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_lens_by_value.ts b/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_lens_by_value.ts index 804790e7ee060..afcb5f1035ee2 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_lens_by_value.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_lens_by_value.ts @@ -23,7 +23,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('dashboard lens by value', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -33,7 +35,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_maps_by_value.ts b/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_maps_by_value.ts index 285130903e227..00aad2689ba99 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_maps_by_value.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/dashboard_maps_by_value.ts @@ -72,14 +72,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('dashboard maps by value', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/controls_migration_smoke_test.ts b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/controls_migration_smoke_test.ts index 276bb4542343e..662aaa42bcbcd 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/controls_migration_smoke_test.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/controls_migration_smoke_test.ts @@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Export import saved objects between versions', () => { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/getting_started/shakespeare' + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' ); await kibanaServer.uiSettings.replace({}); await settings.navigateTo(); @@ -44,7 +44,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/getting_started/shakespeare'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' + ); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/lens_migration_smoke_test.ts b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/lens_migration_smoke_test.ts index df5860fd20a8b..341bb4f97ca9f 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/lens_migration_smoke_test.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/lens_migration_smoke_test.ts @@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Lens - Export import saved objects between versions', () => { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/getting_started/shakespeare' + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' ); await kibanaServer.uiSettings.replace({}); await settings.navigateTo(); @@ -40,7 +40,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/getting_started/shakespeare'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' + ); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/tsvb_migration_smoke_test.ts b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/tsvb_migration_smoke_test.ts index 4fc81d8c00bf0..9947ef56f3025 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/tsvb_migration_smoke_test.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/tsvb_migration_smoke_test.ts @@ -25,7 +25,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('TSVB - Export import saved objects between versions', () => { describe('From 7.12.1', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({}); await settings.navigateTo(); await settings.clickKibanaSavedObjects(); @@ -83,14 +85,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); }); describe('from 7.13.3', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({}); await settings.navigateTo(); await settings.clickKibanaSavedObjects(); @@ -129,7 +133,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); }); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/visualize_migration_smoke_test.ts b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/visualize_migration_smoke_test.ts index b436887b8d8d1..d59f923b038c6 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/visualize_migration_smoke_test.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/visualize_migration_smoke_test.ts @@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Visualize - Export import saved objects between versions', () => { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/getting_started/shakespeare' + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' ); await kibanaServer.uiSettings.replace({}); await settings.navigateTo(); @@ -40,7 +40,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/getting_started/shakespeare'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/getting_started/shakespeare' + ); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/panel_time_range.ts b/x-pack/platform/test/functional/apps/dashboard/group2/panel_time_range.ts index 78b34f1d55933..9dc0ae3254179 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/panel_time_range.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/panel_time_range.ts @@ -22,7 +22,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('custom time range', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/panel_titles.ts b/x-pack/platform/test/functional/apps/dashboard/group2/panel_titles.ts index 19109ef3b76e0..74ea59688d380 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/panel_titles.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/panel_titles.ts @@ -22,7 +22,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('panel titles', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group2/sync_colors.ts b/x-pack/platform/test/functional/apps/dashboard/group2/sync_colors.ts index a89f35d917130..77d176ec18004 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group2/sync_colors.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group2/sync_colors.ts @@ -31,14 +31,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('sync colors', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); }); after(async function () { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/dashboard/group3/drilldowns/index.ts b/x-pack/platform/test/functional/apps/dashboard/group3/drilldowns/index.ts index a8af67665e845..c1f975747346a 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group3/drilldowns/index.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group3/drilldowns/index.ts @@ -15,7 +15,9 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns' diff --git a/x-pack/platform/test/functional/apps/dashboard/group3/reporting/screenshots.ts b/x-pack/platform/test/functional/apps/dashboard/group3/reporting/screenshots.ts index b9e69edf54c0f..4cb0f69769fae 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group3/reporting/screenshots.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group3/reporting/screenshots.ts @@ -27,14 +27,14 @@ export default function ({ const ecommerceSOPath = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json'; const loadEcommerce = async () => { - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.load(ecommerceSOPath); await kibanaServer.uiSettings.replace({ defaultIndex: '5193f870-d861-11e9-a311-0fa548c5f953', }); }; const unloadEcommerce = async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.unload(ecommerceSOPath); }; @@ -269,7 +269,7 @@ export default function ({ defaultIndex: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f', }); - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce_76'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json' ); @@ -294,7 +294,7 @@ export default function ({ }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce_76'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json' ); diff --git a/x-pack/platform/test/functional/apps/data_views/feature_controls/security.ts b/x-pack/platform/test/functional/apps/data_views/feature_controls/security.ts index 34317932a6b21..a2a861bcf05f1 100644 --- a/x-pack/platform/test/functional/apps/data_views/feature_controls/security.ts +++ b/x-pack/platform/test/functional/apps/data_views/feature_controls/security.ts @@ -20,7 +20,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('security', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); after(async () => { diff --git a/x-pack/platform/test/functional/apps/data_views/feature_controls/spaces.ts b/x-pack/platform/test/functional/apps/data_views/feature_controls/spaces.ts index d1ac998f5e46a..7ffbf60e540d2 100644 --- a/x-pack/platform/test/functional/apps/data_views/feature_controls/spaces.ts +++ b/x-pack/platform/test/functional/apps/data_views/feature_controls/spaces.ts @@ -19,7 +19,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('spaces', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); describe('space with no features disabled', () => { diff --git a/x-pack/platform/test/functional/apps/data_views/spaces/index.ts b/x-pack/platform/test/functional/apps/data_views/spaces/index.ts index 8f9172fbe0c3b..5213822c95893 100644 --- a/x-pack/platform/test/functional/apps/data_views/spaces/index.ts +++ b/x-pack/platform/test/functional/apps/data_views/spaces/index.ts @@ -19,7 +19,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); it('it can add a space', async () => { diff --git a/x-pack/platform/test/functional/apps/discover/group1/reporting_embeddable.ts b/x-pack/platform/test/functional/apps/discover/group1/reporting_embeddable.ts index 6d8d70ac7ebf1..aae6be2325469 100644 --- a/x-pack/platform/test/functional/apps/discover/group1/reporting_embeddable.ts +++ b/x-pack/platform/test/functional/apps/discover/group1/reporting_embeddable.ts @@ -96,7 +96,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Discover Embeddable - Generate CSV report per panel', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); @@ -140,7 +142,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/functional/apps/discover/group2/async_scripted_fields.ts b/x-pack/platform/test/functional/apps/discover/group2/async_scripted_fields.ts index 0c8328a19e1d8..e585cf1687a81 100644 --- a/x-pack/platform/test/functional/apps/discover/group2/async_scripted_fields.ts +++ b/x-pack/platform/test/functional/apps/discover/group2/async_scripted_fields.ts @@ -34,7 +34,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash' ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await security.testUser.setRoles(['test_logstash_reader', 'global_discover_read']); // changing the timepicker default here saves us from having to set it in Discover (~8s) await kibanaServer.uiSettings.update({ @@ -46,7 +48,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async function afterAll() { await kibanaServer.uiSettings.replace({}); await kibanaServer.uiSettings.update({}); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); await security.testUser.restoreDefaults(); }); diff --git a/x-pack/platform/test/functional/apps/discover/group2/error_handling.ts b/x-pack/platform/test/functional/apps/discover/group2/error_handling.ts index a9b469dc3d8f4..8859756e16333 100644 --- a/x-pack/platform/test/functional/apps/discover/group2/error_handling.ts +++ b/x-pack/platform/test/functional/apps/discover/group2/error_handling.ts @@ -16,7 +16,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('errors', function describeIndexTests() { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/invalid_scripted_field' ); diff --git a/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_security.ts b/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_security.ts index 5de5a69114332..d289ede62e093 100644 --- a/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_security.ts +++ b/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_security.ts @@ -60,7 +60,9 @@ export default function (ctx: FtrProviderContext) { await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security' ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); // ensure we're logged out so we can login as the appropriate users await security.forceLogout(); diff --git a/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_spaces.ts b/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_spaces.ts index 6281a713d50ab..0884526337395 100644 --- a/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_spaces.ts +++ b/x-pack/platform/test/functional/apps/discover/group2/feature_controls/discover_spaces.ts @@ -28,7 +28,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('spaces', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); describe('space with no features disabled', () => { diff --git a/x-pack/platform/test/functional/apps/discover/group3/esql_starred.ts b/x-pack/platform/test/functional/apps/discover/group3/esql_starred.ts index 0226d20b40826..741b289828d35 100644 --- a/x-pack/platform/test/functional/apps/discover/group3/esql_starred.ts +++ b/x-pack/platform/test/functional/apps/discover/group3/esql_starred.ts @@ -28,7 +28,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Discover ES|QL starred queries', () => { before('initialize tests', async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -61,7 +63,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after('clean up archives', async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/discover/group3/saved_queries.ts b/x-pack/platform/test/functional/apps/discover/group3/saved_queries.ts index fc3bcd37f0684..be77355b13600 100644 --- a/x-pack/platform/test/functional/apps/discover/group3/saved_queries.ts +++ b/x-pack/platform/test/functional/apps/discover/group3/saved_queries.ts @@ -25,7 +25,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Discover Saved Queries', () => { before('initialize tests', async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -37,7 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after('clean up archives', async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/discover/group3/saved_searches.ts b/x-pack/platform/test/functional/apps/discover/group3/saved_searches.ts index 50f0928afbfb9..cbcfddfcae673 100644 --- a/x-pack/platform/test/functional/apps/discover/group3/saved_searches.ts +++ b/x-pack/platform/test/functional/apps/discover/group3/saved_searches.ts @@ -35,7 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Discover Saved Searches', () => { before('initialize tests', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); @@ -45,7 +45,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after('clean up archives', async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); diff --git a/x-pack/platform/test/functional/apps/discover/group3/value_suggestions.ts b/x-pack/platform/test/functional/apps/discover/group3/value_suggestions.ts index 632bb52c431f3..6900d3c965ac2 100644 --- a/x-pack/platform/test/functional/apps/discover/group3/value_suggestions.ts +++ b/x-pack/platform/test/functional/apps/discover/group3/value_suggestions.ts @@ -30,7 +30,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('value suggestions', function describeIndexTests() { before(async function () { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns' diff --git a/x-pack/platform/test/functional/apps/discover/group3/visualize_field.ts b/x-pack/platform/test/functional/apps/discover/group3/visualize_field.ts index 019b8cda81fd8..1d2ca62c42f5a 100644 --- a/x-pack/platform/test/functional/apps/discover/group3/visualize_field.ts +++ b/x-pack/platform/test/functional/apps/discover/group3/visualize_field.ts @@ -51,7 +51,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('discover field visualize button', () => { before(async () => { await kibanaServer.uiSettings.replace(defaultSettings); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -68,7 +70,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { await timePicker.resetDefaultAbsoluteRangeViaUiSettings(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional/apps/graph/graph.ts b/x-pack/platform/test/functional/apps/graph/graph.ts index 32684342b2201..4b4b98ae49717 100644 --- a/x-pack/platform/test/functional/apps/graph/graph.ts +++ b/x-pack/platform/test/functional/apps/graph/graph.ts @@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await browser.setWindowSize(1600, 1000); log.debug('load graph/secrepo data'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/graph/secrepo'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/graph/secrepo'); await kibanaServer.savedObjects.cleanStandardList(); await common.navigateToApp('settings'); log.debug('create secrepo index pattern'); @@ -38,7 +38,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.clean({ types: ['index-pattern'] }); - await esArchiver.unload('x-pack/test/functional/es_archives/graph/secrepo'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/graph/secrepo'); }); const graphName = 'my Graph workspace name ' + new Date().getTime(); diff --git a/x-pack/platform/test/functional/apps/home/feature_controls/home_security.ts b/x-pack/platform/test/functional/apps/home/feature_controls/home_security.ts index f4b5661be3804..ca82321c0defc 100644 --- a/x-pack/platform/test/functional/apps/home/feature_controls/home_security.ts +++ b/x-pack/platform/test/functional/apps/home/feature_controls/home_security.ts @@ -17,7 +17,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('security', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kbnServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json' ); @@ -32,7 +34,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await PageObjects.security.forceLogout(); await kbnServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); describe('global all privileges', () => { diff --git a/x-pack/platform/test/functional/apps/lens/group1/index.ts b/x-pack/platform/test/functional/apps/lens/group1/index.ts index 4564fc2d54131..0c376c99a2b7c 100644 --- a/x-pack/platform/test/functional/apps/lens/group1/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group1/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 1', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/group2/index.ts b/x-pack/platform/test/functional/apps/lens/group2/index.ts index 7c07fcd4850ec..c0889e140fe0d 100644 --- a/x-pack/platform/test/functional/apps/lens/group2/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group2/index.ts @@ -16,7 +16,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const { timePicker } = getPageObjects(['timePicker']); describe('lens app - group 2', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const localFixtures = { lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', diff --git a/x-pack/platform/test/functional/apps/lens/group3/epoch_millis.ts b/x-pack/platform/test/functional/apps/lens/group3/epoch_millis.ts index 23a1254c1aa24..5eecf086db405 100644 --- a/x-pack/platform/test/functional/apps/lens/group3/epoch_millis.ts +++ b/x-pack/platform/test/functional/apps/lens/group3/epoch_millis.ts @@ -15,14 +15,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('epoch millis', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/lens/epoch_millis'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/lens/epoch_millis'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/lens/epoch_millis'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/lens/epoch_millis'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json' ); diff --git a/x-pack/platform/test/functional/apps/lens/group3/index.ts b/x-pack/platform/test/functional/apps/lens/group3/index.ts index 49cc8ed32eec6..637b92aa1da21 100644 --- a/x-pack/platform/test/functional/apps/lens/group3/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group3/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 3', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/group4/index.ts b/x-pack/platform/test/functional/apps/lens/group4/index.ts index 7caadad31c120..fada9d4e12edb 100644 --- a/x-pack/platform/test/functional/apps/lens/group4/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group4/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 4', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/group5/index.ts b/x-pack/platform/test/functional/apps/lens/group5/index.ts index e0740ab4d4962..a9b9d650ea0ea 100644 --- a/x-pack/platform/test/functional/apps/lens/group5/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group5/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 5', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/group6/index.ts b/x-pack/platform/test/functional/apps/lens/group6/index.ts index 1cad50f778ef4..72fce3c9dfa37 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 6', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/group6/lens_tagging.ts b/x-pack/platform/test/functional/apps/lens/group6/lens_tagging.ts index bb39217bd8868..9ec20342d0c71 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/lens_tagging.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/lens_tagging.ts @@ -29,7 +29,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('lens tagging', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); await dashboard.clickNewDashboard(); diff --git a/x-pack/platform/test/functional/apps/lens/group6/no_data.ts b/x-pack/platform/test/functional/apps/lens/group6/no_data.ts index acedf9903db71..74ecb10553c5c 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/no_data.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/no_data.ts @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.clean({ types: ['index-pattern'] }); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('when no data opens integrations', async () => { @@ -38,7 +38,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); it('adds a new data view when no data views', async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.savedObjects.clean({ types: ['index-pattern'] }); await common.navigateToApp('lens'); diff --git a/x-pack/platform/test/functional/apps/lens/group6/rollup.ts b/x-pack/platform/test/functional/apps/lens/group6/rollup.ts index 7eab6d86b6510..ef280d534b269 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/rollup.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/rollup.ts @@ -18,14 +18,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('lens rollup tests', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/lens/rollup/data'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/lens/rollup/data'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/rollup/config.json' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/lens/rollup/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/lens/rollup/data'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/platform/test/functional/apps/lens/group7/index.ts b/x-pack/platform/test/functional/apps/lens/group7/index.ts index d85b6491b1660..16e08afd4c5f3 100644 --- a/x-pack/platform/test/functional/apps/lens/group7/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group7/index.ts @@ -18,7 +18,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext let remoteEsArchiver; describe('lens app - group 4', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/open_in_lens/agg_based/index.ts b/x-pack/platform/test/functional/apps/lens/open_in_lens/agg_based/index.ts index 3f9c2eb1802eb..d20d91b6f7d54 100644 --- a/x-pack/platform/test/functional/apps/lens/open_in_lens/agg_based/index.ts +++ b/x-pack/platform/test/functional/apps/lens/open_in_lens/agg_based/index.ts @@ -18,7 +18,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid let remoteEsArchiver; describe('lens app - Agg based Vis Open in Lens', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/index.ts b/x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/index.ts index 0c424142fcf03..ee9d63ac36ede 100644 --- a/x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/index.ts +++ b/x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/index.ts @@ -19,7 +19,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid let remoteEsArchiver; describe('lens app - TSVB Open in Lens', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/index.ts b/x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/index.ts index 54ea1f5e4b912..9883cc312658b 100644 --- a/x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/index.ts +++ b/x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/index.ts @@ -18,7 +18,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid let remoteEsArchiver; describe('lens app - TSVB Open in Lens', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/functional/apps/logstash/pipeline_list.js b/x-pack/platform/test/functional/apps/logstash/pipeline_list.js index cf0a6dd42c85e..82e012159da65 100644 --- a/x-pack/platform/test/functional/apps/logstash/pipeline_list.js +++ b/x-pack/platform/test/functional/apps/logstash/pipeline_list.js @@ -22,7 +22,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { originalWindowSize = await browser.getWindowSize(); await browser.setWindowSize(1600, 1000); - await esArchiver.load('x-pack/test/functional/es_archives/logstash/example_pipelines'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines'); }); beforeEach(async () => { @@ -30,7 +30,9 @@ export default function ({ getService, getPageObjects }) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash/example_pipelines'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/logstash/example_pipelines' + ); await browser.setWindowSize(originalWindowSize.width, originalWindowSize.height); }); diff --git a/x-pack/platform/test/functional/apps/managed_content/managed_content.ts b/x-pack/platform/test/functional/apps/managed_content/managed_content.ts index 71c81565d1304..9f4cbda1828bf 100644 --- a/x-pack/platform/test/functional/apps/managed_content/managed_content.ts +++ b/x-pack/platform/test/functional/apps/managed_content/managed_content.ts @@ -28,14 +28,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('Managed Content', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/managed_content' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/managed_content' ); diff --git a/x-pack/platform/test/functional/apps/maps/group1/index.js b/x-pack/platform/test/functional/apps/maps/group1/index.js index 50d3b74a0adf2..7f739755c8e1a 100644 --- a/x-pack/platform/test/functional/apps/maps/group1/index.js +++ b/x-pack/platform/test/functional/apps/maps/group1/index.js @@ -16,7 +16,9 @@ export default function ({ loadTestFile, getService }) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); @@ -44,7 +46,7 @@ export default function ({ loadTestFile, getService }) { .set('kbn-xsrf', 'true') .expect(200); - await esArchiver.load('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.uiSettings.replace({ defaultIndex: 'c698b940-e149-11e8-a35a-370a8516603a', }); @@ -52,7 +54,7 @@ export default function ({ loadTestFile, getService }) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); diff --git a/x-pack/platform/test/functional/apps/maps/group2/index.ts b/x-pack/platform/test/functional/apps/maps/group2/index.ts index fc4543aa756f6..8d0b5d021dd88 100644 --- a/x-pack/platform/test/functional/apps/maps/group2/index.ts +++ b/x-pack/platform/test/functional/apps/maps/group2/index.ts @@ -18,7 +18,9 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); @@ -46,7 +48,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { .set('kbn-xsrf', 'true') .expect(200); - await esArchiver.load('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.uiSettings.replace({ defaultIndex: 'c698b940-e149-11e8-a35a-370a8516603a', }); @@ -54,7 +56,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); diff --git a/x-pack/platform/test/functional/apps/maps/group3/index.js b/x-pack/platform/test/functional/apps/maps/group3/index.js index fda116cecc307..0780eedd2d866 100644 --- a/x-pack/platform/test/functional/apps/maps/group3/index.js +++ b/x-pack/platform/test/functional/apps/maps/group3/index.js @@ -16,7 +16,9 @@ export default function ({ loadTestFile, getService }) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); @@ -44,7 +46,7 @@ export default function ({ loadTestFile, getService }) { .set('kbn-xsrf', 'true') .expect(200); - await esArchiver.load('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.uiSettings.replace({ defaultIndex: 'c698b940-e149-11e8-a35a-370a8516603a', }); @@ -52,7 +54,7 @@ export default function ({ loadTestFile, getService }) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); diff --git a/x-pack/platform/test/functional/apps/maps/group4/index.js b/x-pack/platform/test/functional/apps/maps/group4/index.js index 6af1369928d98..536d86d1081d8 100644 --- a/x-pack/platform/test/functional/apps/maps/group4/index.js +++ b/x-pack/platform/test/functional/apps/maps/group4/index.js @@ -16,7 +16,9 @@ export default function ({ loadTestFile, getService }) { this.tags(['skipFirefox']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); @@ -44,7 +46,7 @@ export default function ({ loadTestFile, getService }) { .set('kbn-xsrf', 'true') .expect(200); - await esArchiver.load('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.uiSettings.replace({ defaultIndex: 'c698b940-e149-11e8-a35a-370a8516603a', }); @@ -52,7 +54,7 @@ export default function ({ loadTestFile, getService }) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/maps/data'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/maps/data'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' ); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_charts_dashboard_embeddables.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_charts_dashboard_embeddables.ts index 7f13c22c9eb91..982e2c16cb9b9 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_charts_dashboard_embeddables.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_charts_dashboard_embeddables.ts @@ -39,7 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_embeddables_migration.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_embeddables_migration.ts index 8e942d8e1e4b5..1a133269ebaa3 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_embeddables_migration.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/anomaly_embeddables_migration.ts @@ -69,7 +69,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/index.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/index.ts index e557dc27d0719..db708eb7d562c 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/index.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/index.ts @@ -26,7 +26,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml.ts index 667b5664ce145..c364de69cff1f 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml.ts @@ -40,7 +40,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await kibanaServer.importExport.load(dashboardArchive); await browser.setWindowSize(1920, 1080); }); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml_with_wizard.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml_with_wizard.ts index 69484d33edbb7..e6ab00a947321 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml_with_wizard.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/lens_to_ml_with_wizard.ts @@ -94,7 +94,7 @@ export default function ({ getService, getPageObject, getPageObjects }: FtrProvi await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await kibanaServer.importExport.load(dashboardArchive); await browser.setWindowSize(1920, 1080); }); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/map_to_ml.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/map_to_ml.ts index aee7ab8695fb0..0b9f263eb199f 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/map_to_ml.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/map_to_ml.ts @@ -34,7 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await kibanaServer.importExport.load(dashboardArchive); await browser.setWindowSize(1920, 1080); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/single_metric_viewer_dashboard_embeddables.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/single_metric_viewer_dashboard_embeddables.ts index 3670b31fe609a..dd1221f140f41 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/single_metric_viewer_dashboard_embeddables.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_integrations/single_metric_viewer_dashboard_embeddables.ts @@ -31,7 +31,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/advanced_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/advanced_job.ts index 46fee05368b0a..ddd8eca40982b 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/advanced_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/advanced_job.ts @@ -197,8 +197,10 @@ export default function ({ getService }: FtrProviderContext) { describe('advanced job', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.createDataViewIfNeeded('ft_categorization_small', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/categorization_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/categorization_job.ts index ae4116c32f0d1..7f86cfcc194af 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/categorization_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/categorization_job.ts @@ -85,7 +85,9 @@ export default function ({ getService }: FtrProviderContext) { describe('categorization', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); await ml.testResources.createDataViewIfNeeded('ft_categorization_small', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_jobs_to_advanced_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_jobs_to_advanced_job.ts index 94ee2d25cf44c..67ced7635e777 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_jobs_to_advanced_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_jobs_to_advanced_job.ts @@ -203,8 +203,10 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/categorization_small' + ); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.createDataViewIfNeeded('ft_categorization_small', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_single_metric_job_to_multi_metric.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_single_metric_job_to_multi_metric.ts index c67c6413775a6..ea8e9268f8817 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_single_metric_job_to_multi_metric.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/convert_single_metric_job_to_multi_metric.ts @@ -24,7 +24,7 @@ export default function ({ getService }: FtrProviderContext) { describe('single metric job conversion to multi-metric job', function () { this.tags(['ml']); before(async () => { - await esNode.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esNode.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded(esIndexPatternString, '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts index b59670ff470e7..6119e2bd1d98d 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/custom_urls.ts @@ -68,7 +68,7 @@ export default function ({ getService }: FtrProviderContext) { let testDashboardId: string | null = null; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); testDashboardId = await ml.testResources.createMLTestDashboardIfNeeded(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/date_nanos_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/date_nanos_job.ts index c9531661cdaf0..8f31e8e0527d5 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/date_nanos_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/date_nanos_job.ts @@ -93,7 +93,9 @@ export default function ({ getService }: FtrProviderContext) { describe('job on data set with date_nanos time field', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/event_rate_nanos'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos' + ); await ml.testResources.createDataViewIfNeeded('ft_event_rate_gen_trend_nanos', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/delete_job_and_delete_annotations.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/delete_job_and_delete_annotations.ts index 7b022f9e73b83..79ec57e3d9f3f 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/delete_job_and_delete_annotations.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/delete_job_and_delete_annotations.ts @@ -63,7 +63,7 @@ export default function ({ getService }: FtrProviderContext) { describe('delete job', function () { this.tags(['ml']); before(async () => { - await esNode.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esNode.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded(esIndexPatternString, '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/geo_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/geo_job.ts index ee3d34569e3d5..9ced8d3076915 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/geo_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/geo_job.ts @@ -83,7 +83,7 @@ export default function ({ getService }: FtrProviderContext) { describe('geo', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/index.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/index.ts index ae67c24c908dc..2ddd4e5fd81ff 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/index.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/index.ts @@ -29,10 +29,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esNode.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esNode.unload('x-pack/test/functional/es_archives/ml/ecommerce'); - await esNode.unload('x-pack/test/functional/es_archives/ml/categorization_small'); - await esNode.unload('x-pack/test/functional/es_archives/ml/event_rate_nanos'); + await esNode.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esNode.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); + await esNode.unload('x-pack/platform/test/fixtures/es_archives/ml/categorization_small'); + await esNode.unload('x-pack/platform/test/fixtures/es_archives/ml/event_rate_nanos'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts index d3c952e8cabba..550ea47e032fd 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/job_expanded_details.ts @@ -41,7 +41,7 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/multi_metric_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/multi_metric_job.ts index 016b78736f9ad..54a84dd318484 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/multi_metric_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/multi_metric_job.ts @@ -83,7 +83,7 @@ export default function ({ getService }: FtrProviderContext) { describe('multi metric', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/population_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/population_job.ts index 759499e304422..285c0f99d22d7 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/population_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/population_job.ts @@ -97,7 +97,7 @@ export default function ({ getService }: FtrProviderContext) { describe('population', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/saved_search_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/saved_search_job.ts index d97ca625d480e..2c49a11f96e54 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/saved_search_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/saved_search_job.ts @@ -268,7 +268,7 @@ export default function ({ getService }: FtrProviderContext) { describe('saved search', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createSavedSearchFarequoteFilterIfNeeded(); await ml.testResources.createSavedSearchFarequoteLuceneIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job.ts index 2726f9f8ba771..e6f448321e127 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job.ts @@ -91,7 +91,7 @@ export default function ({ getService }: FtrProviderContext) { describe('single metric', function () { this.tags(['ml']); before(async () => { - await esNode.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esNode.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded(esIndexPatternString, '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job_without_datafeed_start.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job_without_datafeed_start.ts index e86733fed639a..cc64fba75fc83 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job_without_datafeed_start.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_jobs/single_metric_job_without_datafeed_start.ts @@ -59,7 +59,7 @@ export default function ({ getService }: FtrProviderContext) { describe('single metric without datafeed start', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/aggregated_scripted_job.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/aggregated_scripted_job.ts index e47ee75ffb908..e0ae9da19c7bc 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/aggregated_scripted_job.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/aggregated_scripted_job.ts @@ -354,8 +354,8 @@ export default function ({ getService }: FtrProviderContext) { describe('aggregated or scripted job', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/annotations.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/annotations.ts index 3a980060ed42d..e463b33714d56 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/annotations.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/annotations.ts @@ -31,7 +31,7 @@ export default function ({ getService }: FtrProviderContext) { }; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts index 271d0de7f9877..6ceaa912f48f3 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/anomaly_explorer.ts @@ -97,7 +97,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('anomaly explorer', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createMLTestDashboardIfNeeded(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/forecasts.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/forecasts.ts index 8cc24d872d9ff..4259fcfbcdcfd 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/forecasts.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/forecasts.ts @@ -44,7 +44,7 @@ export default function ({ getService }: FtrProviderContext) { describe('with single metric job', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/index.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/index.ts index 13f7ac9e97b09..1710cb7bee1aa 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/index.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/single_metric_viewer.ts b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/single_metric_viewer.ts index b02d71e1f1a9e..945fa23f70d84 100644 --- a/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/single_metric_viewer.ts +++ b/x-pack/platform/test/functional/apps/ml/anomaly_detection_result_views/single_metric_viewer.ts @@ -45,7 +45,7 @@ export default function ({ getService }: FtrProviderContext) { describe('with single metric job', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); @@ -139,7 +139,7 @@ export default function ({ getService }: FtrProviderContext) { }; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createAndRunAnomalyDetectionLookbackJob(jobConfig, datafeedConfig); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation.ts index d6d9fcb4ea396..626a5e84cb27a 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation.ts @@ -42,7 +42,9 @@ export default function ({ getService }: FtrProviderContext) { describe('classification creation', function () { let testDashboardId: string | null = null; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.createDataViewIfNeeded('ft_bank_marketing'); await ml.testResources.setKibanaTimeZoneToUTC(); testDashboardId = await ml.testResources.createMLTestDashboardIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts index 915a4992d3106..be291275a42c2 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts @@ -17,7 +17,7 @@ export default function ({ getService }: FtrProviderContext) { describe('classification saved search creation', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); await ml.testResources.createDataViewIfNeeded('ft_farequote_small', '@timestamp'); await ml.testResources.createSavedSearchFarequoteLuceneIfNeeded('ft_farequote_small'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded('ft_farequote_small'); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/cloning.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/cloning.ts index 7be8dd7669763..414bd9b02348d 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/cloning.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/cloning.ts @@ -27,7 +27,7 @@ export default function ({ getService }: FtrProviderContext) { return [ { suiteTitle: 'classification job supported by the form', - archive: 'x-pack/test/functional/es_archives/ml/bm_classification', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification', dataView: { name: 'ft_bank_marketing', timeField: '@timestamp' }, job: { id: `bm_1_${timestamp}`, @@ -62,7 +62,7 @@ export default function ({ getService }: FtrProviderContext) { }, { suiteTitle: 'outlier detection job supported by the form', - archive: 'x-pack/test/functional/es_archives/ml/ihp_outlier', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier', dataView: { name: 'ft_ihp_outlier', timeField: '@timestamp' }, job: { id: `ihp_1_${timestamp}`, @@ -91,7 +91,7 @@ export default function ({ getService }: FtrProviderContext) { }, { suiteTitle: 'regression job supported by the form', - archive: 'x-pack/test/functional/es_archives/ml/egs_regression', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/egs_regression', dataView: { name: 'ft_egs_regression', timeField: '@timestamp' }, job: { id: `egs_1_${timestamp}`, diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/custom_urls.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/custom_urls.ts index 728445696c3db..9f9f2a270b189 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/custom_urls.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/custom_urls.ts @@ -69,7 +69,7 @@ export default function ({ getService }: FtrProviderContext) { }; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/index.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/index.ts index 53b21e013c06a..bc1499de76f5a 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/index.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/index.ts @@ -26,11 +26,11 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote_small'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/egs_regression'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/bm_classification'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts index e230ae729c913..64c7885a92680 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts @@ -43,7 +43,7 @@ export default function ({ getService }: FtrProviderContext) { let testDashboardId: string | null = null; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier'); testDashboardId = await ml.testResources.createMLTestDashboardIfNeeded(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts index 6c55bfc1078d7..de889d4a2365c 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts @@ -15,7 +15,7 @@ export default function ({ getService }: FtrProviderContext) { describe('outlier detection saved search creation', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); await ml.testResources.createDataViewIfNeeded('ft_farequote_small', '@timestamp'); await ml.testResources.createSavedSearchFarequoteLuceneIfNeeded('ft_farequote_small'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded('ft_farequote_small'); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation.ts index dc46c068e46da..0c732809b6472 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation.ts @@ -56,7 +56,7 @@ export default function ({ getService }: FtrProviderContext) { describe('regression creation', function () { let testDashboardId: string | null = null; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/egs_regression'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); await ml.testResources.createDataViewIfNeeded('ft_egs_regression'); await ml.testResources.setKibanaTimeZoneToUTC(); testDashboardId = await ml.testResources.createMLTestDashboardIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts index f6addae51ecb9..70843635c1e2c 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts @@ -15,7 +15,7 @@ export default function ({ getService }: FtrProviderContext) { describe('regression saved search creation', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote_small'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote_small'); await ml.testResources.createDataViewIfNeeded('ft_farequote_small', '@timestamp'); await ml.testResources.createSavedSearchFarequoteLuceneIfNeeded('ft_farequote_small'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded('ft_farequote_small'); diff --git a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/results_view_content.ts b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/results_view_content.ts index a0df4f9c9d9f0..84df8393f9ae0 100644 --- a/x-pack/platform/test/functional/apps/ml/data_frame_analytics/results_view_content.ts +++ b/x-pack/platform/test/functional/apps/ml/data_frame_analytics/results_view_content.ts @@ -37,7 +37,7 @@ export default function ({ getService }: FtrProviderContext) { return [ { suiteTitle: 'binary classification job', - archive: 'x-pack/test/functional/es_archives/ml/ihp_outlier', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier', dataView: { name: 'ft_ihp_outlier', timeField: '@timestamp' }, job: { id: `ihp_fi_binary_${timestamp}`, @@ -106,7 +106,7 @@ export default function ({ getService }: FtrProviderContext) { }, { suiteTitle: 'multi class classification job', - archive: 'x-pack/test/functional/es_archives/ml/ihp_outlier', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier', dataView: { name: 'ft_ihp_outlier', timeField: '@timestamp' }, job: { id: `ihp_fi_multi_${timestamp}`, @@ -177,7 +177,7 @@ export default function ({ getService }: FtrProviderContext) { }, { suiteTitle: 'regression job', - archive: 'x-pack/test/functional/es_archives/ml/egs_regression', + archive: 'x-pack/platform/test/fixtures/es_archives/ml/egs_regression', dataView: { name: 'ft_egs_regression', timeField: '@timestamp' }, job: { id: `egs_fi_reg_${timestamp}`, diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/data_drift.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/data_drift.ts index d74da893dca39..eb99cf3e0f9ed 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/data_drift.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/data_drift.ts @@ -87,10 +87,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('data drift', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createSavedSearchFarequoteFilterAndKueryIfNeeded(); @@ -98,8 +98,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await ml.securityUI.loginAsMlPowerUser(); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await Promise.all([ ml.testResources.deleteDataViewByTitle('ft_fare*'), ml.testResources.deleteDataViewByTitle('ft_fare*,ft_fareq*'), diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/esql_data_visualizer.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/esql_data_visualizer.ts index 96e01c67ff91c..a2e3ab6a1a3a9 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/esql_data_visualizer.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/esql_data_visualizer.ts @@ -302,8 +302,10 @@ export default function ({ getPageObject, getService }: FtrProviderContext) { describe('esql data visualizer', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index.ts index bddbcdfb95370..bfc470aff7039 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts index f0185fc371006..a06606a0b9523 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts @@ -144,8 +144,10 @@ export default function ({ getPageObject, getService }: FtrProviderContext) { describe('index based', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_module_sample_logs', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_actions_panel.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_actions_panel.ts index 6f259a8120d28..8c4749e5ae905 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_actions_panel.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_actions_panel.ts @@ -32,7 +32,7 @@ export default function ({ getService }: FtrProviderContext) { // Note query is not currently passed to the wizard before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded(esIndexName, '@timestamp'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_data_view_management.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_data_view_management.ts index 01ce91b96a760..f586fbfbe35ef 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_data_view_management.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_data_view_management.ts @@ -176,7 +176,7 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); const indexPatternTitle = 'ft_farequote'; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_filters.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_filters.ts index 1bce21cc3266f..06cb8ca0eaee7 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_filters.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_filters.ts @@ -128,7 +128,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { } describe('data visualizer with pinned global filters', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createSavedSearchFarequoteFilterAndLuceneIfNeeded(); await ml.testResources.createSavedSearchFarequoteFilterAndKueryIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts index 76f1f0fcd5584..7b2a4ebe07837 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts @@ -113,7 +113,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('field statistics in Dashboard', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createSavedSearchFarequoteFilterAndLuceneIfNeeded(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover.ts index 14e16d5929779..f31fc523e10ed 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover.ts @@ -75,8 +75,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('field statistics in Discover', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_module_sample_logs', '@timestamp'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_basic.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_basic.ts index 7d7e5dfe0760f..9a7bc2dc51c0c 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_basic.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_basic.ts @@ -41,7 +41,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('field statistics in Discover (basic license)', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_module_sample_logs', '@timestamp'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_trial.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_trial.ts index 9a1429805a18f..37fbc5ebdcf68 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_trial.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover_trial.ts @@ -41,7 +41,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('field statistics in Discover (trial license)', function () { before(async function () { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_module_sample_logs', '@timestamp'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded(); diff --git a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_random_sampler.ts b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_random_sampler.ts index e5fee365ff08e..fc7a6f5ea75e7 100644 --- a/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_random_sampler.ts +++ b/x-pack/platform/test/functional/apps/ml/data_visualizer/index_data_visualizer_random_sampler.ts @@ -25,8 +25,10 @@ export default function ({ getPageObject, getService }: FtrProviderContext) { describe('index based random sampler controls', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_logs' + ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_module_sample_logs', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/memory_usage/memory_usage_page.ts b/x-pack/platform/test/functional/apps/ml/memory_usage/memory_usage_page.ts index cc39d598416a1..2e1564f8af750 100644 --- a/x-pack/platform/test/functional/apps/ml/memory_usage/memory_usage_page.ts +++ b/x-pack/platform/test/functional/apps/ml/memory_usage/memory_usage_page.ts @@ -17,7 +17,7 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); const jobConfig = ml.commonConfig.getADFqSingleMetricJobConfig(jobId); diff --git a/x-pack/platform/test/functional/apps/ml/permissions/full_ml_access.ts b/x-pack/platform/test/functional/apps/ml/permissions/full_ml_access.ts index c603401e3981b..b5982aaf5f8f4 100644 --- a/x-pack/platform/test/functional/apps/ml/permissions/full_ml_access.ts +++ b/x-pack/platform/test/functional/apps/ml/permissions/full_ml_access.ts @@ -139,10 +139,10 @@ export default function ({ getService }: FtrProviderContext) { ); const expectedUploadFileTitle = 'artificial_server_log'; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/permissions/index.ts b/x-pack/platform/test/functional/apps/ml/permissions/index.ts index 224544a015d8a..295f83f7eefd7 100644 --- a/x-pack/platform/test/functional/apps/ml/permissions/index.ts +++ b/x-pack/platform/test/functional/apps/ml/permissions/index.ts @@ -26,9 +26,11 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/permissions/no_ml_access.ts b/x-pack/platform/test/functional/apps/ml/permissions/no_ml_access.ts index a91e5fef94034..eadf62fe7da5a 100644 --- a/x-pack/platform/test/functional/apps/ml/permissions/no_ml_access.ts +++ b/x-pack/platform/test/functional/apps/ml/permissions/no_ml_access.ts @@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('for user with no ML access and Kibana features access', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.securityUI.loginAs(USER.ML_DISABLED); await ml.api.cleanMlIndices(); diff --git a/x-pack/platform/test/functional/apps/ml/permissions/read_ml_access.ts b/x-pack/platform/test/functional/apps/ml/permissions/read_ml_access.ts index e8fde6d8ddc04..47160077d7aa7 100644 --- a/x-pack/platform/test/functional/apps/ml/permissions/read_ml_access.ts +++ b/x-pack/platform/test/functional/apps/ml/permissions/read_ml_access.ts @@ -140,10 +140,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ); const expectedUploadFileTitle = 'artificial_server_log'; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/short_tests/index.ts b/x-pack/platform/test/functional/apps/ml/short_tests/index.ts index d446a35933474..d2ff70a18a61f 100644 --- a/x-pack/platform/test/functional/apps/ml/short_tests/index.ts +++ b/x-pack/platform/test/functional/apps/ml/short_tests/index.ts @@ -24,7 +24,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/short_tests/notifications/notification_list.ts b/x-pack/platform/test/functional/apps/ml/short_tests/notifications/notification_list.ts index 2e925168d15b7..e1632135c7d66 100644 --- a/x-pack/platform/test/functional/apps/ml/short_tests/notifications/notification_list.ts +++ b/x-pack/platform/test/functional/apps/ml/short_tests/notifications/notification_list.ts @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Notifications list', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.securityUI.loginAsMlPowerUser(); diff --git a/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_creation.ts b/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_creation.ts index 93a7dab88b0da..f25a29624f53e 100644 --- a/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_creation.ts +++ b/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_creation.ts @@ -17,7 +17,7 @@ export default function ({ getService }: FtrProviderContext) { describe('calendar creation', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await asyncForEach(jobConfigs, async (jobConfig) => { diff --git a/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_edit.ts b/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_edit.ts index bcc788ca358e7..57ca7116308fd 100644 --- a/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_edit.ts +++ b/x-pack/platform/test/functional/apps/ml/short_tests/settings/calendar_edit.ts @@ -23,7 +23,7 @@ export default function ({ getService }: FtrProviderContext) { describe('calendar edit', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await asyncForEach(jobConfigs, async (jobConfig) => { diff --git a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/export_jobs.ts b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/export_jobs.ts index d8bf5a36b90d7..d4719184e0666 100644 --- a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/export_jobs.ts +++ b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/export_jobs.ts @@ -256,16 +256,18 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await ml.api.cleanMlIndices(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.createDataViewIfNeeded('ft_bank_marketing', '@timestamp'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier', '@timestamp'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/egs_regression'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); await ml.testResources.createDataViewIfNeeded('ft_egs_regression', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/import_jobs.ts b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/import_jobs.ts index 25a70d1627208..55aec9fe51528 100644 --- a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/import_jobs.ts +++ b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/import_jobs.ts @@ -34,8 +34,10 @@ export default function ({ getService }: FtrProviderContext) { this.tags(['ml']); before(async () => { await ml.api.cleanMlIndices(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/bm_classification'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/ml/bm_classification' + ); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_bank_marketing', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/index.ts b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/index.ts index 53f4b7cbf943e..683f18a252f2a 100644 --- a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/index.ts +++ b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/index.ts @@ -25,10 +25,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/bm_classification'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/egs_regression'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/bm_classification'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/egs_regression'); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts index 3643a05ab7920..58737e19655c2 100644 --- a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts +++ b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/manage_spaces.ts @@ -109,8 +109,8 @@ export default function ({ getService }: FtrProviderContext) { describe('manage spaces', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier', '@timestamp'); diff --git a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/synchronize.ts b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/synchronize.ts index 7afb68548645c..9c0105836cce9 100644 --- a/x-pack/platform/test/functional/apps/ml/stack_management_jobs/synchronize.ts +++ b/x-pack/platform/test/functional/apps/ml/stack_management_jobs/synchronize.ts @@ -22,8 +22,8 @@ export default function ({ getService }: FtrProviderContext) { describe('synchronize', function () { this.tags(['ml']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/monitoring/beats/beat_detail.js b/x-pack/platform/test/functional/apps/monitoring/beats/beat_detail.js index 35a74a0877aa5..828fe49c5cb86 100644 --- a/x-pack/platform/test/functional/apps/monitoring/beats/beat_detail.js +++ b/x-pack/platform/test/functional/apps/monitoring/beats/beat_detail.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/beats', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/beats', { from: 'Dec 19, 2017 @ 17:14:09.000', to: 'Dec 19, 2017 @ 18:15:09.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/beats/cluster.js b/x-pack/platform/test/functional/apps/monitoring/beats/cluster.js index 9d291814ae19c..41b69e3e048bb 100644 --- a/x-pack/platform/test/functional/apps/monitoring/beats/cluster.js +++ b/x-pack/platform/test/functional/apps/monitoring/beats/cluster.js @@ -15,7 +15,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/beats', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/beats', { from: 'Dec 19, 2017 @ 17:14:09.000', to: 'Dec 19, 2017 @ 18:15:09.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/beats/listing.js b/x-pack/platform/test/functional/apps/monitoring/beats/listing.js index 67dc9181bda39..62586baa707bd 100644 --- a/x-pack/platform/test/functional/apps/monitoring/beats/listing.js +++ b/x-pack/platform/test/functional/apps/monitoring/beats/listing.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/beats', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/beats', { from: 'Dec 19, 2017 @ 17:14:09.000', to: 'Dec 19, 2017 @ 18:15:09.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/beats/overview.js b/x-pack/platform/test/functional/apps/monitoring/beats/overview.js index 7d2eaa0689b23..023fc9d6bc471 100644 --- a/x-pack/platform/test/functional/apps/monitoring/beats/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/beats/overview.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/beats', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/beats', { from: 'Dec 19, 2017 @ 17:14:09.000', to: 'Dec 19, 2017 @ 18:15:09.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/cluster/list.js b/x-pack/platform/test/functional/apps/monitoring/cluster/list.js index ed7801424f56d..2351cc8941dc7 100644 --- a/x-pack/platform/test/functional/apps/monitoring/cluster/list.js +++ b/x-pack/platform/test/functional/apps/monitoring/cluster/list.js @@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }) { const UNSUPPORTED_CLUSTER_UUID = '6d-9tDFTRe-qT5GoBytdlQ'; before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/multicluster', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/multicluster', { from: 'Aug 15, 2017 @ 21:00:00.000', to: 'Aug 16, 2017 @ 00:00:00.000', }); @@ -79,7 +79,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/standalone_cluster', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster', { from: 'Feb 4, 2019 @ 17:50:00.000', to: 'Feb 4, 2019 @ 17:52:00.000', }); @@ -105,7 +105,7 @@ export default function ({ getService, getPageObjects }) { const SUPPORTED_CLUSTER_UUID = 'NDKg6VXAT6-TaGzEK2Zy7g'; before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/multi_basic', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/multi_basic', { from: 'Sep 7, 2017 @ 20:12:04.011', to: 'Sep 7, 2017 @ 20:18:55.733', }); @@ -180,7 +180,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/multicluster', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/multicluster', { from: 'Aug 15, 2017 @ 21:00:00.000', to: 'Aug 16, 2017 @ 00:00:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/cluster/list_mb.js b/x-pack/platform/test/functional/apps/monitoring/cluster/list_mb.js index ea2b2fb421f0c..0d037da3d4661 100644 --- a/x-pack/platform/test/functional/apps/monitoring/cluster/list_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/cluster/list_mb.js @@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/standalone_cluster_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/standalone_cluster_mb', { from: 'Feb 4, 2019 @ 17:50:00.000', to: 'Feb 4, 2019 @ 17:52:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/cluster/overview.js b/x-pack/platform/test/functional/apps/monitoring/cluster/overview.js index 799ae88cf44df..ba562ee5b0604 100644 --- a/x-pack/platform/test/functional/apps/monitoring/cluster/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/cluster/overview.js @@ -21,10 +21,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold', { - from: 'Aug 23, 2017 @ 21:29:35.267', - to: 'Aug 23, 2017 @ 21:47:25.556', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold', + { + from: 'Aug 23, 2017 @ 21:29:35.267', + to: 'Aug 23, 2017 @ 21:47:25.556', + } + ); await overview.closeAlertsModal(); }); @@ -74,10 +77,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum', { - from: 'Aug 29, 2017 @ 17:23:47.528', - to: 'Aug 29, 2017 @ 17:25:50.701', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum', + { + from: 'Aug 29, 2017 @ 17:23:47.528', + to: 'Aug 29, 2017 @ 17:25:50.701', + } + ); await overview.closeAlertsModal(); }); @@ -118,10 +124,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_basic', { - from: 'Aug 29, 2017 @ 17:55:43.879', - to: 'Aug 29, 2017 @ 18:01:34.958', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_basic', + { + from: 'Aug 29, 2017 @ 17:55:43.879', + to: 'Aug 29, 2017 @ 18:01:34.958', + } + ); await overview.closeAlertsModal(); }); @@ -161,10 +170,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_green_gold', { - from: 'Aug 23, 2017 @ 21:29:35.267', - to: 'Aug 23, 2017 @ 21:47:25.556', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_green_gold', + { + from: 'Aug 23, 2017 @ 21:29:35.267', + to: 'Aug 23, 2017 @ 21:47:25.556', + } + ); }); after(async () => { diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail.js index 918f050d3c975..3c9bac0c534d5 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail.js @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail_mb.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail_mb.js index 2a457f20e86a7..4c9f5588801de 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/index_detail_mb.js @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices.js index ae35f53350ec9..432bb82c8a46c 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices.js @@ -17,10 +17,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum', { - from: 'Oct 6, 2017 @ 19:53:06.748', - to: 'Oct 6, 2017 @ 20:15:30.212', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum', + { + from: 'Oct 6, 2017 @ 19:53:06.748', + to: 'Oct 6, 2017 @ 20:15:30.212', + } + ); await overview.closeAlertsModal(); diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices_mb.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices_mb.js index 31032df99a077..9fdf0260ac1e4 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/indices_mb.js @@ -17,11 +17,14 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_mb', { - from: 'Oct 6, 2017 @ 19:53:06.748', - to: 'Oct 6, 2017 @ 20:15:30.212', - useCreate: true, - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_mb', + { + from: 'Oct 6, 2017 @ 19:53:06.748', + to: 'Oct 6, 2017 @ 20:15:30.212', + useCreate: true, + } + ); await overview.closeAlertsModal(); diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail.js index 44b83b16c60cf..c8d2da3104049 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail.js @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', @@ -85,10 +85,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum', { - from: 'Oct 6, 2017 @ 19:53:06.748', - to: 'Oct 6, 2017 @ 20:15:30.212', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum', + { + from: 'Oct 6, 2017 @ 19:53:06.748', + to: 'Oct 6, 2017 @ 20:15:30.212', + } + ); await overview.closeAlertsModal(); @@ -124,7 +127,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:12.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail_mb.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail_mb.js index 84381fc74edd2..006efeac29451 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/node_detail_mb.js @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', @@ -86,11 +86,14 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_red_platinum_mb', { - from: 'Oct 6, 2017 @ 19:53:06.748', - to: 'Oct 6, 2017 @ 20:15:30.212', - useCreate: true, - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_red_platinum_mb', + { + from: 'Oct 6, 2017 @ 19:53:06.748', + to: 'Oct 6, 2017 @ 20:15:30.212', + useCreate: true, + } + ); await overview.closeAlertsModal(); @@ -126,7 +129,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:12.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes.js index ae38b4fc9d5a1..22302b5ae1e76 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes.js @@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:28:28.475', to: 'Oct 5, 2017 @ 20:34:38.341', @@ -284,7 +284,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:12.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes_mb.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes_mb.js index 059e18bc865ff..2d66786e7d6bf 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/nodes_mb.js @@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:28:28.475', to: 'Oct 5, 2017 @ 20:34:38.341', @@ -281,7 +281,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:12.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview.js index d03ca3303d12c..e1450c6744789 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview_mb.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview_mb.js index 08bc94212ec74..237365c745367 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/overview_mb.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb', { from: 'Oct 5, 2017 @ 20:31:48.354', to: 'Oct 5, 2017 @ 20:35:30.176', diff --git a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/shards.js b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/shards.js index b4b2ba521cb1e..9adbde6e5799e 100644 --- a/x-pack/platform/test/functional/apps/monitoring/elasticsearch/shards.js +++ b/x-pack/platform/test/functional/apps/monitoring/elasticsearch/shards.js @@ -22,7 +22,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_three_nodes_shard_relocation', { from: 'Oct 5, 2017 @ 19:34:48.000', to: 'Oct 5, 2017 @ 20:35:12.000', diff --git a/x-pack/platform/test/functional/apps/monitoring/enterprise_search/cluster.js b/x-pack/platform/test/functional/apps/monitoring/enterprise_search/cluster.js index a23006db74ce4..a11abacd21324 100644 --- a/x-pack/platform/test/functional/apps/monitoring/enterprise_search/cluster.js +++ b/x-pack/platform/test/functional/apps/monitoring/enterprise_search/cluster.js @@ -15,7 +15,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/ent_search/with_es', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es', { from: 'Oct 15, 2021 @ 14:00:00.000', to: 'Oct 15, 2021 @ 22:00:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/enterprise_search/overview.js b/x-pack/platform/test/functional/apps/monitoring/enterprise_search/overview.js index 9c5f065e15f21..6b4b0fc019d7c 100644 --- a/x-pack/platform/test/functional/apps/monitoring/enterprise_search/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/enterprise_search/overview.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/ent_search/with_es', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/ent_search/with_es', { from: 'Oct 15, 2021 @ 14:00:00.000', to: 'Oct 15, 2021 @ 22:00:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/instance.js b/x-pack/platform/test/functional/apps/monitoring/kibana/instance.js index f98c1ccd2b717..08266500e4369 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/instance.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/instance.js @@ -17,10 +17,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum', { - from: 'Aug 29, 2017 @ 17:24:14.254', - to: 'Aug 29, 2017 @ 17:25:44.142', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum', + { + from: 'Aug 29, 2017 @ 17:24:14.254', + to: 'Aug 29, 2017 @ 17:25:44.142', + } + ); await clusterOverview.closeAlertsModal(); diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/instance_mb.js b/x-pack/platform/test/functional/apps/monitoring/kibana/instance_mb.js index b8e37b247bf07..71a7ef0581c49 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/instance_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/instance_mb.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_mb', { from: 'Aug 29, 2017 @ 17:24:14.254', to: 'Aug 29, 2017 @ 17:25:44.142', diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/instances.js b/x-pack/platform/test/functional/apps/monitoring/kibana/instances.js index bbd6fd7098d4e..06a6f6682e2e6 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/instances.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/instances.js @@ -17,10 +17,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum', { - from: 'Aug 29, 2017 @ 17:24:14.254', - to: 'Aug 29, 2017 @ 17:25:44.142', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum', + { + from: 'Aug 29, 2017 @ 17:24:14.254', + to: 'Aug 29, 2017 @ 17:25:44.142', + } + ); await clusterOverview.closeAlertsModal(); diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/instances_mb.js b/x-pack/platform/test/functional/apps/monitoring/kibana/instances_mb.js index a8a2ca729f005..37bf6c2bd7d5a 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/instances_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/instances_mb.js @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_mb', { from: 'Aug 29, 2017 @ 17:24:14.254', to: 'Aug 29, 2017 @ 17:25:44.142', diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/overview.js b/x-pack/platform/test/functional/apps/monitoring/kibana/overview.js index 45cd52cda9c4a..a069c8ea98fd1 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/overview.js @@ -17,10 +17,13 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum', { - from: 'Aug 29, 2017 @ 17:24:14.254', - to: 'Aug 29, 2017 @ 17:25:44.142', - }); + await setup( + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum', + { + from: 'Aug 29, 2017 @ 17:24:14.254', + to: 'Aug 29, 2017 @ 17:25:44.142', + } + ); await clusterOverview.closeAlertsModal(); diff --git a/x-pack/platform/test/functional/apps/monitoring/kibana/overview_mb.js b/x-pack/platform/test/functional/apps/monitoring/kibana/overview_mb.js index e402db41c6147..743002556c019 100644 --- a/x-pack/platform/test/functional/apps/monitoring/kibana/overview_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/kibana/overview_mb.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/singlecluster_yellow_platinum_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/singlecluster_yellow_platinum_mb', { from: 'Aug 29, 2017 @ 17:24:14.254', to: 'Aug 29, 2017 @ 17:25:44.142', diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail.js b/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail.js index 074d41dcfc295..644cc2dd29432 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail.js @@ -31,7 +31,7 @@ export default function ({ getService, getPageObjects }) { }; before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail_mb.js b/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail_mb.js index df450ae3be6e2..fc91d277d877e 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/node_detail_mb.js @@ -31,7 +31,7 @@ export default function ({ getService, getPageObjects }) { }; before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/nodes.js b/x-pack/platform/test/functional/apps/monitoring/logstash/nodes.js index 8d64870cae64e..381c0f681e098 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/nodes.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/nodes.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/nodes_mb.js b/x-pack/platform/test/functional/apps/monitoring/logstash/nodes_mb.js index 205e7b18ec374..93cbca35dba9d 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/nodes_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/nodes_mb.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/overview.js b/x-pack/platform/test/functional/apps/monitoring/logstash/overview.js index 593159ec6b266..51fbd0834d7ca 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/overview.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/overview.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/overview_mb.js b/x-pack/platform/test/functional/apps/monitoring/logstash/overview_mb.js index d2bcca1103a5e..0b52aa03ee395 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/overview_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/overview_mb.js @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer.js b/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer.js index bc9e366f18fe2..bb623fab47d51 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer.js @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer_mb.js b/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer_mb.js index 35687ed113f5e..f80f98eda9cce 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/pipeline_viewer_mb.js @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines.js b/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines.js index a810a12b98378..887018dcefa50 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines.js @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', }); diff --git a/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines_mb.js b/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines_mb.js index 4dcae6601ff87..2b30644faa9b3 100644 --- a/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/logstash/pipelines_mb.js @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }) { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/logstash_pipelines_mb', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/logstash_pipelines_mb', { from: 'Jan 22, 2018 @ 09:10:00.000', to: 'Jan 22, 2018 @ 09:41:00.000', useCreate: true, diff --git a/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration.js b/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration.js index a9a58f8b373ff..a6e9c585a1afb 100644 --- a/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration.js +++ b/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration.js @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana', + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana', { from: 'Apr 9, 2019 @ 00:00:00.741', to: 'Apr 9, 2019 @ 23:59:59.741', diff --git a/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration_mb.js b/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration_mb.js index d5402dda790e5..d52cbe1f8647e 100644 --- a/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration_mb.js +++ b/x-pack/platform/test/functional/apps/monitoring/setup/metricbeat_migration_mb.js @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }) { before(async () => { await setup( - 'x-pack/test/functional/es_archives/monitoring/setup/collection/es_and_kibana_mb', + 'x-pack/platform/test/fixtures/es_archives/monitoring/setup/collection/es_and_kibana_mb', { from: 'Apr 9, 2019 @ 00:00:00.741', to: 'Apr 9, 2019 @ 23:59:59.741', diff --git a/x-pack/platform/test/functional/apps/monitoring/time_filter.js b/x-pack/platform/test/functional/apps/monitoring/time_filter.js index 76e7bc5cd043d..811a581638fcd 100644 --- a/x-pack/platform/test/functional/apps/monitoring/time_filter.js +++ b/x-pack/platform/test/functional/apps/monitoring/time_filter.js @@ -27,7 +27,7 @@ export default function ({ getService, getPageObjects }) { const to = 'Aug 16, 2017 @ 00:00:00.000'; before(async () => { - await setup('x-pack/test/functional/es_archives/monitoring/multicluster', { + await setup('x-pack/platform/test/fixtures/es_archives/monitoring/multicluster', { from, to, }); diff --git a/x-pack/platform/test/functional/apps/reporting_management/report_listing.ts b/x-pack/platform/test/functional/apps/reporting_management/report_listing.ts index ad0506fb2f22c..7fc5cb21fe390 100644 --- a/x-pack/platform/test/functional/apps/reporting_management/report_listing.ts +++ b/x-pack/platform/test/functional/apps/reporting_management/report_listing.ts @@ -40,13 +40,15 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { beforeEach(async () => { // to reset the data after deletion testing - await esArchiver.load('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/archived_reports'); await pageObjects.common.navigateToApp('reporting'); await testSubjects.existOrFail(REPORT_TABLE_ID, { timeout: 200000 }); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/reporting/archived_reports' + ); }); it('Confirm single report deletion works', async () => { diff --git a/x-pack/platform/test/functional/apps/saved_objects_management/import_saved_objects_between_versions.ts b/x-pack/platform/test/functional/apps/saved_objects_management/import_saved_objects_between_versions.ts index bd2185a16cc87..f2f797ebe71ff 100644 --- a/x-pack/platform/test/functional/apps/saved_objects_management/import_saved_objects_between_versions.ts +++ b/x-pack/platform/test/functional/apps/saved_objects_management/import_saved_objects_between_versions.ts @@ -28,7 +28,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Export import saved objects between versions', function () { before(async function () { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await esArchiver.loadIfNeeded( 'src/platform/test/functional/fixtures/es_archiver/getting_started/shakespeare' ); @@ -42,7 +44,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await esArchiver.unload( 'src/platform/test/functional/fixtures/es_archiver/getting_started/shakespeare' ); diff --git a/x-pack/platform/test/functional/apps/saved_objects_management/multi_space_import.ts b/x-pack/platform/test/functional/apps/saved_objects_management/multi_space_import.ts index 9e7c9e3b001f5..eb910d6ef0572 100644 --- a/x-pack/platform/test/functional/apps/saved_objects_management/multi_space_import.ts +++ b/x-pack/platform/test/functional/apps/saved_objects_management/multi_space_import.ts @@ -58,12 +58,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { disabledFeatures: [], }); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); }); after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await spacesService.delete('another_space'); await spacesService.delete('third_space'); }); diff --git a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts index 3a498263fd393..5cc898e14ec7c 100644 --- a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts +++ b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts @@ -117,7 +117,9 @@ export function createSecurityTests( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); // ensure we're logged out, so we can log in as the appropriate users await security.forceLogout(); diff --git a/x-pack/platform/test/functional/apps/security/doc_level_security_roles.ts b/x-pack/platform/test/functional/apps/security/doc_level_security_roles.ts index d91a9d8f6e003..d15c0b9f575dd 100644 --- a/x-pack/platform/test/functional/apps/security/doc_level_security_roles.ts +++ b/x-pack/platform/test/functional/apps/security/doc_level_security_roles.ts @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before('initialize tests', async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/security/dlstest'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/security/dlstest'); await browser.setWindowSize(1600, 1000); await PageObjects.common.navigateToApp('settings'); diff --git a/x-pack/platform/test/functional/apps/security/field_level_security.ts b/x-pack/platform/test/functional/apps/security/field_level_security.ts index b4b21f6c38b3d..f71c2d54c80bb 100644 --- a/x-pack/platform/test/functional/apps/security/field_level_security.ts +++ b/x-pack/platform/test/functional/apps/security/field_level_security.ts @@ -21,7 +21,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('field_level_security', () => { before('initialize tests', async () => { await security.testUser.setRoles(['cluster_security_manager', 'kibana_admin']); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/security/flstest/data'); // ( data) + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/security/flstest/data' + ); // ( data) await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern' ); diff --git a/x-pack/platform/test/functional/apps/security/remote_cluster_security_roles.ts b/x-pack/platform/test/functional/apps/security/remote_cluster_security_roles.ts index 1525406b2fa02..5fe248190f1fe 100644 --- a/x-pack/platform/test/functional/apps/security/remote_cluster_security_roles.ts +++ b/x-pack/platform/test/functional/apps/security/remote_cluster_security_roles.ts @@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before('initialize tests', async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/security/dlstest'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/security/dlstest'); await browser.setWindowSize(1600, 1000); await PageObjects.common.navigateToApp('settings'); diff --git a/x-pack/platform/test/functional/apps/security/secure_roles_perm.ts b/x-pack/platform/test/functional/apps/security/secure_roles_perm.ts index 8ae870165ab6a..9f84a7a34fc44 100644 --- a/x-pack/platform/test/functional/apps/security/secure_roles_perm.ts +++ b/x-pack/platform/test/functional/apps/security/secure_roles_perm.ts @@ -32,7 +32,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await browser.setWindowSize(1600, 1000); log.debug('users'); await security.testUser.setRoles(['cluster_security_manager', 'kibana_admin']); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); log.debug('load kibana index with default index pattern'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/security/discover' diff --git a/x-pack/platform/test/functional/apps/transform/actions/deleting.ts b/x-pack/platform/test/functional/apps/transform/actions/deleting.ts index 911c656e9fd5f..aea786d2308de 100644 --- a/x-pack/platform/test/functional/apps/transform/actions/deleting.ts +++ b/x-pack/platform/test/functional/apps/transform/actions/deleting.ts @@ -64,7 +64,7 @@ export default function ({ getService }: FtrProviderContext) { ]; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); for (const testData of testDataList) { diff --git a/x-pack/platform/test/functional/apps/transform/actions/index.ts b/x-pack/platform/test/functional/apps/transform/actions/index.ts index 8a156b4bba84d..cb85a6735e707 100644 --- a/x-pack/platform/test/functional/apps/transform/actions/index.ts +++ b/x-pack/platform/test/functional/apps/transform/actions/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/actions/reauthorizing.ts b/x-pack/platform/test/functional/apps/transform/actions/reauthorizing.ts index bec4045146287..adc08146a6573 100644 --- a/x-pack/platform/test/functional/apps/transform/actions/reauthorizing.ts +++ b/x-pack/platform/test/functional/apps/transform/actions/reauthorizing.ts @@ -137,7 +137,7 @@ export default function ({ getService }: FtrProviderContext) { apiKeysForTransformUsers.set(user.name as USER, apiKey) ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); for (const testData of testDataList) { diff --git a/x-pack/platform/test/functional/apps/transform/actions/resetting.ts b/x-pack/platform/test/functional/apps/transform/actions/resetting.ts index b62772f63454b..a4daa6cc8ab11 100644 --- a/x-pack/platform/test/functional/apps/transform/actions/resetting.ts +++ b/x-pack/platform/test/functional/apps/transform/actions/resetting.ts @@ -66,7 +66,7 @@ export default function ({ getService }: FtrProviderContext) { ]; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); for (const testData of testDataList) { diff --git a/x-pack/platform/test/functional/apps/transform/actions/starting.ts b/x-pack/platform/test/functional/apps/transform/actions/starting.ts index ea12af4f234c9..4c99098ccd03a 100644 --- a/x-pack/platform/test/functional/apps/transform/actions/starting.ts +++ b/x-pack/platform/test/functional/apps/transform/actions/starting.ts @@ -109,7 +109,7 @@ export default function ({ getService }: FtrProviderContext) { ]; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); for (const testData of testDataList) { diff --git a/x-pack/platform/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts b/x-pack/platform/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts index 9cfbebfdfa577..7c528e2005905 100644 --- a/x-pack/platform/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts +++ b/x-pack/platform/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts @@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('creation_index_pattern', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await transform.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/transform/creation/index_pattern/index.ts b/x-pack/platform/test/functional/apps/transform/creation/index_pattern/index.ts index f1cf20997029b..020a790756f3d 100644 --- a/x-pack/platform/test/functional/apps/transform/creation/index_pattern/index.ts +++ b/x-pack/platform/test/functional/apps/transform/creation/index_pattern/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts index 2c6ef99ddb1d3..4ee92a84a7076 100644 --- a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts +++ b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_runtime_mappings.ts @@ -35,7 +35,7 @@ export default function ({ getService }: FtrProviderContext) { describe('creation with runtime mappings', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await transform.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_saved_search.ts b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_saved_search.ts index c85a1a88b429c..702f8889155dc 100644 --- a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_saved_search.ts +++ b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/creation_saved_search.ts @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { describe('creation_saved_search', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await transform.testResources.createDataViewIfNeeded('ft_farequote', '@timestamp'); await transform.testResources.createSavedSearchFarequoteFilterIfNeeded(); await transform.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/index.ts b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/index.ts index 943fb97200a7b..86be677b22f31 100644 --- a/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/index.ts +++ b/x-pack/platform/test/functional/apps/transform/creation/runtime_mappings_saved_search/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/edit_clone/cloning.ts b/x-pack/platform/test/functional/apps/transform/edit_clone/cloning.ts index a8539cfcaf28b..f1448e21a0546 100644 --- a/x-pack/platform/test/functional/apps/transform/edit_clone/cloning.ts +++ b/x-pack/platform/test/functional/apps/transform/edit_clone/cloning.ts @@ -198,7 +198,7 @@ export default function ({ getService }: FtrProviderContext) { const transformConfigWithLatest = getLatestTransformConfig('cloning'); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await transform.api.createAndRunTransform( transformConfigWithPivot.id, diff --git a/x-pack/platform/test/functional/apps/transform/edit_clone/editing.ts b/x-pack/platform/test/functional/apps/transform/edit_clone/editing.ts index aa6bab0610a75..e333dfe42bbe9 100644 --- a/x-pack/platform/test/functional/apps/transform/edit_clone/editing.ts +++ b/x-pack/platform/test/functional/apps/transform/edit_clone/editing.ts @@ -26,7 +26,7 @@ export default function ({ getService }: FtrProviderContext) { }; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await transform.api.createAndRunTransform( diff --git a/x-pack/platform/test/functional/apps/transform/edit_clone/index.ts b/x-pack/platform/test/functional/apps/transform/edit_clone/index.ts index 93dbaa51c396e..26331341442d6 100644 --- a/x-pack/platform/test/functional/apps/transform/edit_clone/index.ts +++ b/x-pack/platform/test/functional/apps/transform/edit_clone/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/feature_controls/index.ts b/x-pack/platform/test/functional/apps/transform/feature_controls/index.ts index 987bd36172847..d36230925a95d 100644 --- a/x-pack/platform/test/functional/apps/transform/feature_controls/index.ts +++ b/x-pack/platform/test/functional/apps/transform/feature_controls/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/permissions/full_transform_access.ts b/x-pack/platform/test/functional/apps/transform/permissions/full_transform_access.ts index 5cd04c4e33577..53bf7e106e3c2 100644 --- a/x-pack/platform/test/functional/apps/transform/permissions/full_transform_access.ts +++ b/x-pack/platform/test/functional/apps/transform/permissions/full_transform_access.ts @@ -54,7 +54,7 @@ export default function ({ getService }: FtrProviderContext) { const transformConfigWithPivot = getPivotTransformConfig(PREFIX, false); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await transform.api.createAndRunTransform( diff --git a/x-pack/platform/test/functional/apps/transform/permissions/index.ts b/x-pack/platform/test/functional/apps/transform/permissions/index.ts index 30936edc877ef..ba8c8be8161f7 100644 --- a/x-pack/platform/test/functional/apps/transform/permissions/index.ts +++ b/x-pack/platform/test/functional/apps/transform/permissions/index.ts @@ -26,8 +26,8 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await transform.securityCommon.cleanTransformUsers(); await transform.securityCommon.cleanTransformRoles(); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional/apps/transform/permissions/read_transform_access.ts b/x-pack/platform/test/functional/apps/transform/permissions/read_transform_access.ts index 216bb287f0e5e..e6809e4d23cbb 100644 --- a/x-pack/platform/test/functional/apps/transform/permissions/read_transform_access.ts +++ b/x-pack/platform/test/functional/apps/transform/permissions/read_transform_access.ts @@ -54,7 +54,7 @@ export default function ({ getService }: FtrProviderContext) { const transformConfigWithPivot = getPivotTransformConfig(PREFIX, false); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await transform.api.createAndRunTransform( diff --git a/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_security.ts b/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_security.ts index e3f7de552dbc4..971b9a06af43f 100644 --- a/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_security.ts +++ b/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_security.ts @@ -34,7 +34,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); // ensure we're logged out so we can login as the appropriate users await security.forceLogout(); }); diff --git a/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_spaces.ts b/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_spaces.ts index 8c806d6350ec8..e80d0ed26c810 100644 --- a/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_spaces.ts +++ b/x-pack/platform/test/functional/apps/visualize/feature_controls/visualize_spaces.ts @@ -20,8 +20,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('visualize spaces', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/visualize/default'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/visualize/default'); }); describe('space with no features disabled', () => { diff --git a/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts b/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts index 3d5878689d48c..78bb23acede83 100644 --- a/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts +++ b/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts @@ -19,16 +19,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json' ); - await esArchiver.load('x-pack/test/functional/es_archives/hybrid/logstash'); - await esArchiver.load('x-pack/test/functional/es_archives/hybrid/rollup'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/hybrid/logstash'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); }); after(async () => { await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json' ); - await esArchiver.unload('x-pack/test/functional/es_archives/hybrid/logstash'); - await esArchiver.unload('x-pack/test/functional/es_archives/hybrid/rollup'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/hybrid/logstash'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); await kibanaServer.savedObjects.cleanStandardList(); await common.unsetTime(); }); diff --git a/x-pack/platform/test/functional/apps/visualize/precalculated_histogram.ts b/x-pack/platform/test/functional/apps/visualize/precalculated_histogram.ts index b6d2fd762aab6..7dc9f957a7f1a 100644 --- a/x-pack/platform/test/functional/apps/visualize/precalculated_histogram.ts +++ b/x-pack/platform/test/functional/apps/visualize/precalculated_histogram.ts @@ -24,12 +24,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('pre_calculated_histogram', function () { before(async function () { log.debug('Starting pre_calculated_histogram before method'); - await esArchiver.load('x-pack/test/functional/es_archives/pre_calculated_histogram'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram'); await kibanaServer.uiSettings.replace({ defaultIndex: 'test-histogram' }); }); after(async function () { - await esArchiver.unload('x-pack/test/functional/es_archives/pre_calculated_histogram'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram'); await kibanaServer.uiSettings.unset('defaultIndex'); }); diff --git a/x-pack/platform/test/functional/apps/visualize/reporting.ts b/x-pack/platform/test/functional/apps/visualize/reporting.ts index a97265f3a355d..e8fc33bac0c8a 100644 --- a/x-pack/platform/test/functional/apps/visualize/reporting.ts +++ b/x-pack/platform/test/functional/apps/visualize/reporting.ts @@ -47,7 +47,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before('initialize tests', async () => { log.debug('ReportingPage:initTests'); - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.load(ecommerceSOPath); await kibanaServer.uiSettings.replace({ 'timepicker:timeDefaults': @@ -56,7 +56,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); }); after('clean up archives', async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.unload(ecommerceSOPath); await es.deleteByQuery({ index: '.reporting-*', @@ -101,7 +101,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { defaultIndex: '5193f870-d861-11e9-a311-0fa548c5f953', }); - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce_76'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76'); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json' ); @@ -111,7 +111,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce_76'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce_76'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json' ); diff --git a/x-pack/platform/test/functional/apps/visualize/telemetry.ts b/x-pack/platform/test/functional/apps/visualize/telemetry.ts index 19c4ad83ce906..0ca0992a92dd9 100644 --- a/x-pack/platform/test/functional/apps/visualize/telemetry.ts +++ b/x-pack/platform/test/functional/apps/visualize/telemetry.ts @@ -28,7 +28,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async function () { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( `x-pack/test/functional/fixtures/kbn_archiver/dashboard/with_by_value_visualizations` ); diff --git a/x-pack/platform/test/functional/page_objects/security_page.ts b/x-pack/platform/test/functional/page_objects/security_page.ts index a2fdfc157ce69..33b2aeaa4cd99 100644 --- a/x-pack/platform/test/functional/page_objects/security_page.ts +++ b/x-pack/platform/test/functional/page_objects/security_page.ts @@ -253,7 +253,9 @@ export class SecurityPageObject extends FtrService { async initTests() { this.log.debug('SecurityPage:initTests'); await this.kibanaServer.savedObjects.cleanStandardList(); - await this.esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await this.esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await this.browser.setWindowSize(1600, 1000); } diff --git a/x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts index d53203a06da2f..0481a195083f5 100644 --- a/x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts +++ b/x-pack/platform/test/functional/services/aiops/log_rate_analysis_data_generator.ts @@ -233,7 +233,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'farequote_with_spike': - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await es.updateByQuery({ index: 'ft_farequote', @@ -320,7 +320,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'large_arrays': - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/large_arrays'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/large_arrays'); break; default: @@ -337,7 +337,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'farequote_with_spike': - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); break; case 'artificial_logs_with_spike': @@ -358,7 +358,7 @@ export function LogRateAnalysisDataGeneratorProvider({ getService }: FtrProvider break; case 'large_arrays': - await esArchiver.unload('x-pack/test/functional/es_archives/large_arrays'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/large_arrays'); break; default: diff --git a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group1/index.ts b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group1/index.ts index 1a8d15bfcc9e5..4a1a1a0a29885 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group1/index.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group1/index.ts @@ -28,8 +28,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle('ft_farequote'); await ml.testResources.deleteDataViewByTitle('ft_module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group2/index.ts b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group2/index.ts index adc11ed4e41f9..024526eaeb74a 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group2/index.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group2/index.ts @@ -28,8 +28,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle('ft_farequote'); await ml.testResources.deleteDataViewByTitle('ft_module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index.ts b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index.ts index e3b3f8eb733fc..259bcfcbdcc2b 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index.ts @@ -28,8 +28,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle('ft_farequote'); await ml.testResources.deleteDataViewByTitle('ft_module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index_data_visualizer_actions_panel.ts b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index_data_visualizer_actions_panel.ts index 3189a5cf35822..5b7153b50bc1c 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index_data_visualizer_actions_panel.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/data_visualizer/group3/index_data_visualizer_actions_panel.ts @@ -19,7 +19,7 @@ export default function ({ getService }: FtrProviderContext) { const expectedQuery = 'airline: A* and responsetime > 5'; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/farequote'); await ml.testResources.createDataViewIfNeeded(indexPatternName, '@timestamp'); await ml.testResources.createSavedSearchFarequoteKueryIfNeeded(); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional_basic/apps/ml/permissions/full_ml_access.ts b/x-pack/platform/test/functional_basic/apps/ml/permissions/full_ml_access.ts index 3574d81836d24..305f204eacc5e 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/permissions/full_ml_access.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/permissions/full_ml_access.ts @@ -33,7 +33,7 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await ml.testResources.createDataViewIfNeeded(ecIndexPattern, 'order_date'); diff --git a/x-pack/platform/test/functional_basic/apps/ml/permissions/index.ts b/x-pack/platform/test/functional_basic/apps/ml/permissions/index.ts index 8e72bb7bf51e2..62144453f14e9 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/permissions/index.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/permissions/index.ts @@ -28,8 +28,10 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await ml.testResources.deleteDataViewByTitle('ft_farequote'); await ml.testResources.deleteDataViewByTitle('ft_module_sample_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/farequote'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' + ); await ml.testResources.resetKibanaTimeZone(); }); diff --git a/x-pack/platform/test/functional_basic/apps/ml/permissions/read_ml_access.ts b/x-pack/platform/test/functional_basic/apps/ml/permissions/read_ml_access.ts index 26b28ff772b33..c625b08a2f04d 100644 --- a/x-pack/platform/test/functional_basic/apps/ml/permissions/read_ml_access.ts +++ b/x-pack/platform/test/functional_basic/apps/ml/permissions/read_ml_access.ts @@ -33,7 +33,7 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' + 'x-pack/platform/test/fixtures/es_archives/ml/module_sample_ecommerce' ); await ml.testResources.createDataViewIfNeeded(ecIndexPattern, 'order_date'); diff --git a/x-pack/platform/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 index dc9c3d6d09fa2..5ad4d02ce3087 100644 --- a/x-pack/platform/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 @@ -1078,7 +1078,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { describe('Tabs - alerts linked to case', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/rule_registry/alerts' + ); await cases.navigation.navigateToApp(); const theCase = await cases.api.createCase(); await cases.casesTable.waitForCasesToBeListed(); @@ -1098,7 +1100,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { await cases.api.deleteAllCases(); - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts/'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts/'); }); beforeEach(async () => { diff --git a/x-pack/platform/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 index 09509ea45b88d..7144af5fb6335 100644 --- a/x-pack/platform/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 @@ -120,7 +120,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { let dataViewId = ''; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); const res = await createLogStashDataView(supertest); dataViewId = res.data_view.id; @@ -131,7 +133,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { await cases.api.deleteAllCases(); await deleteLogStashDataView(supertest, dataViewId); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('renders a persistable attachment type correctly', async () => { @@ -149,7 +151,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { let dataViewId = ''; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); const res = await createLogStashDataView(supertest); dataViewId = res.data_view.id; @@ -179,7 +183,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { await cases.api.deleteAllCases(); await deleteLogStashDataView(supertest, dataViewId); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('renders multiple attachment types correctly', async () => { @@ -364,7 +368,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { const myDashboardName = `My-dashboard-${uuidv4()}`; before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -388,7 +394,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { await listingTable.checkListingSelectAllCheckbox(); await listingTable.clickDeleteSelected(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts index 0d14c7aef39af..73d397f6f8035 100644 --- a/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/alert_flyout.ts @@ -69,7 +69,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { describe('anomaly detection alert', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); await ml.testResources.setKibanaTimeZoneToUTC(); diff --git a/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts index ea21b37e86a66..34f2f5287dca5 100644 --- a/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/index.ts @@ -24,7 +24,7 @@ export default ({ loadTestFile, getService }: FtrProviderContext) => { await ml.securityUI.logout(); await ml.testResources.deleteDataViewByTitle('ft_ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.securityCommon.cleanMlUsers(); await ml.securityCommon.cleanMlRoles(); await ml.testResources.resetKibanaTimeZone(); diff --git a/x-pack/platform/test/localization/tests/lens/index.ts b/x-pack/platform/test/localization/tests/lens/index.ts index c54db350dd83b..58045942f624b 100644 --- a/x-pack/platform/test/localization/tests/lens/index.ts +++ b/x-pack/platform/test/localization/tests/lens/index.ts @@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects, loadTestFile }: FtrProvid let remoteEsArchiver; describe('lens app', () => { - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/platform/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts b/x-pack/platform/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts index ed7d31efe1c10..9091832aed634 100644 --- a/x-pack/platform/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts +++ b/x-pack/platform/test/plugin_api_integration/test_suites/event_log/public_api_integration.ts @@ -164,7 +164,9 @@ export default function ({ getService }: FtrProviderContext) { describe(`Index Lifecycle`, () => { it('should query across indices matching the Event Log data view', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/event_log_multiple_indicies'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies' + ); const id = `421f2511-5cd1-44fd-95df-e0df83e354d5`; @@ -184,16 +186,18 @@ export default function ({ getService }: FtrProviderContext) { 'test 2020-10-28T15:19:55.962Z', ]); - await esArchiver.unload('x-pack/test/functional/es_archives/event_log_multiple_indicies'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/event_log_multiple_indicies' + ); }); }); describe(`Legacy Ids`, () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/event_log_legacy_ids'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/event_log_legacy_ids'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/event_log_legacy_ids'); }); it('should support search event by ids and legacyIds', async () => { const legacyId = `521f2511-5cd1-44fd-95df-e0df83e354d5`; diff --git a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/migrations.ts b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/migrations.ts index 5e776d5e2f3e4..01d535859351a 100644 --- a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/migrations.ts +++ b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/migrations.ts @@ -26,11 +26,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); it('8.0.0 migrates actions tasks with legacy id to saved object ids', async () => { diff --git a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_removed_types.ts b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_removed_types.ts index a7447353e805a..5d4dea1bf67dd 100644 --- a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_removed_types.ts +++ b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_removed_types.ts @@ -49,11 +49,13 @@ export default function ({ getService }: FtrProviderContext) { describe('not registered task types', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_removed_types'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_removed_types'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_removed_types'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/task_manager_removed_types' + ); }); afterEach(async () => { diff --git a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_scheduled_at.ts b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_scheduled_at.ts index a70225035d03c..9ee9d1746d87f 100644 --- a/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_scheduled_at.ts +++ b/x-pack/platform/test/plugin_api_integration/test_suites/task_manager/task_management_scheduled_at.ts @@ -16,11 +16,11 @@ export default function createTaskManagementScheduledAtTests({ getService }: Ftr describe('task management scheduled at', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); await esArchiver.emptyKibanaIndex(); }); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts index 45ba01a45ffd6..42024bd7dade9 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts @@ -35,7 +35,7 @@ export default function ({ getService }: FtrProviderContext) { ); // archive with reporting index mappings v6.2 - await esArchiver.load('x-pack/test/functional/es_archives/reporting/bwc/6_2'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2'); // The index name in the reporting/bwc/6_2 archive. const ARCHIVED_REPORTING_INDEX = '.reporting-2018.03.11'; @@ -54,7 +54,7 @@ export default function ({ getService }: FtrProviderContext) { ); await cleanupIndexAlias(); - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/bwc/6_2'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/bwc/6_2'); }); it('single job posted can complete in an index created with an older version', async () => { diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts index 266065e120eb6..36c2e40f7d15a 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts @@ -34,27 +34,27 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { - data: 'x-pack/test/functional/es_archives/reporting/ecommerce', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', }, unmappedFields: { - data: 'x-pack/test/functional/es_archives/reporting/unmapped_fields', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json', }, logs: { - data: 'x-pack/test/functional/es_archives/logstash_functional', + data: 'x-pack/platform/test/fixtures/es_archives/logstash_functional', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', }, nanos: { - data: 'x-pack/test/functional/es_archives/reporting/nanos', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/nanos', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', }, sales: { - data: 'x-pack/test/functional/es_archives/reporting/sales', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/sales', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', }, bigIntIdField: { - data: 'x-pack/test/functional/es_archives/reporting/big_int_id_field', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/big_int_id_field', }, }; diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts index 58caa61f770c2..6e7db9e6b3507 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts @@ -24,11 +24,13 @@ export default function ({ getService }: FtrProviderContext) { { space: spaceId } ); await reportingAPI.initEcommerce(); - await esArchiver.load('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/archived_reports'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/reporting/archived_reports' + ); await reportingAPI.teardownEcommerce(); await reportingAPI.deleteAllReports(); await spacesService.delete(spaceId); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts b/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts index 036e8881a7690..291b2bef3579c 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts @@ -50,12 +50,12 @@ export default function ({ getService }: FtrProviderContext) { describe('Job Listing APIs', () => { before(async () => { await reportingAPI.initLogs(); - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); after(async () => { await reportingAPI.teardownLogs(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); afterEach(async () => { diff --git a/x-pack/platform/test/reporting_api_integration/services/scenarios.ts b/x-pack/platform/test/reporting_api_integration/services/scenarios.ts index e932506618df0..f99da14044342 100644 --- a/x-pack/platform/test/reporting_api_integration/services/scenarios.ts +++ b/x-pack/platform/test/reporting_api_integration/services/scenarios.ts @@ -65,23 +65,23 @@ export function createScenarios({ getService }: Pick { - await esArchiver.load('x-pack/test/functional/es_archives/reporting/ecommerce', { + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', { performance, }); await kibanaServer.importExport.load(ecommerceSOPath); }; const teardownEcommerce = async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/ecommerce'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); await kibanaServer.importExport.unload(ecommerceSOPath); }; const initLogs = async () => { - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.load(logsSOPath); }; const teardownLogs = async () => { await kibanaServer.importExport.unload(logsSOPath); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }; const createDataAnalystRole = async () => { diff --git a/x-pack/platform/test/reporting_functional/reporting_and_security/download.ts b/x-pack/platform/test/reporting_functional/reporting_and_security/download.ts index 3a0af56793e6b..f35dcc74da9a9 100644 --- a/x-pack/platform/test/reporting_functional/reporting_and_security/download.ts +++ b/x-pack/platform/test/reporting_functional/reporting_and_security/download.ts @@ -17,11 +17,13 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { describe('Download report', () => { // use archived reports to allow reporting_user to view report jobs they've created before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/archived_reports'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/archived_reports'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/reporting/archived_reports' + ); }); it('user can access download link', async () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/bulk_update_alerts.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/bulk_update_alerts.ts index b78135ab812f1..b101dd6b29a6f 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/bulk_update_alerts.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/bulk_update_alerts.ts @@ -92,11 +92,11 @@ export default ({ getService }: FtrProviderContext) => { }); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); function addTests({ space, authorizedUsers, unauthorizedUsers, alertId, index }: TestCase) { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/find_alerts.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/find_alerts.ts index 43e28f94fe00a..5feab80252215 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/find_alerts.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/find_alerts.ts @@ -62,11 +62,11 @@ export default ({ getService }: FtrProviderContext) => { describe('Alert - Find - RBAC - spaces', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it(`${superUser.username} should reject at route level when aggs contains script alerts which match query in ${SPACE1}/${SECURITY_SOLUTION_ALERT_INDEX}`, async () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_by_id.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_by_id.ts index 7fcc5fa4a6774..be5a764da8098 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_by_id.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_by_id.ts @@ -89,11 +89,11 @@ export default ({ getService }: FtrProviderContext) => { await getSecuritySolutionIndexName(superUser); await getAPMIndexName(superUser); - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('superuser should be able to access an alert in a given space', async () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_summary.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_summary.ts index da4f82fb322ef..f0a5d58d8e90a 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_summary.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alert_summary.ts @@ -24,11 +24,13 @@ export default ({ getService }: FtrProviderContext) => { describe('Alerts - GET - _alert_summary', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/o11y_alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/o11y_alerts'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/rule_registry/o11y_alerts' + ); }); it('Alert summary for all LOGS alerts with features', async () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alerts_index.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alerts_index.ts index 3bd28305d04d7..3373fff70e6c1 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alerts_index.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_alerts_index.ts @@ -47,11 +47,11 @@ export default ({ getService }: FtrProviderContext) => { describe('Alert - Get Index - RBAC - spaces', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); before(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); describe('Users:', () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_rule_type_ids.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_rule_type_ids.ts index a41943ab298b6..76c52bd5ffee0 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_rule_type_ids.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_rule_type_ids.ts @@ -75,7 +75,7 @@ export default ({ getService }: FtrProviderContext) => { let esQueryRuleId: string; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); const { body: createdESRule } = await supertest .post('/api/alerting/rule') .set('kbn-xsrf', 'foo') @@ -86,7 +86,7 @@ export default ({ getService }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); await supertest.delete(`/api/alerting/rule/${esQueryRuleId}`).set('kbn-xsrf', 'foo'); }); diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/update_alert.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/update_alert.ts index bcf1e2b9028aa..54861ef6ed96c 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/update_alert.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/basic/update_alert.ts @@ -91,11 +91,11 @@ export default ({ getService }: FtrProviderContext) => { }); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); function addTests({ space, authorizedUsers, unauthorizedUsers, alertId, index }: TestCase) { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/get_alerts.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/get_alerts.ts index 9d468259ef3e6..32b1a4459b881 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/get_alerts.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/get_alerts.ts @@ -45,11 +45,11 @@ export default ({ getService }: FtrProviderContext) => { describe('rbac with subfeatures', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); describe('Users:', () => { diff --git a/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/update_alert.ts b/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/update_alert.ts index 0a2a36646d877..3b89d6a749abf 100644 --- a/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/update_alert.ts +++ b/x-pack/platform/test/rule_registry/security_and_spaces/tests/trial/update_alert.ts @@ -44,11 +44,11 @@ export default ({ getService }: FtrProviderContext) => { describe('rbac', () => { describe('Users update:', () => { beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it(`${superUser.username} should be able to update the APM alert in ${SPACE1}`, async () => { diff --git a/x-pack/platform/test/rule_registry/spaces_only/tests/trial/get_alert_by_id.ts b/x-pack/platform/test/rule_registry/spaces_only/tests/trial/get_alert_by_id.ts index 71d9b202c716a..92ddd3c5d9c1b 100644 --- a/x-pack/platform/test/rule_registry/spaces_only/tests/trial/get_alert_by_id.ts +++ b/x-pack/platform/test/rule_registry/spaces_only/tests/trial/get_alert_by_id.ts @@ -54,11 +54,11 @@ export default ({ getService }: FtrProviderContext) => { await getSecuritySolutionIndexName(superUser); await getAPMIndexName(superUser); - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('should return a 404 when superuser accesses not-existent alert', async () => { diff --git a/x-pack/platform/test/rule_registry/spaces_only/tests/trial/update_alert.ts b/x-pack/platform/test/rule_registry/spaces_only/tests/trial/update_alert.ts index 497b5429b1088..b68e01c9c077c 100644 --- a/x-pack/platform/test/rule_registry/spaces_only/tests/trial/update_alert.ts +++ b/x-pack/platform/test/rule_registry/spaces_only/tests/trial/update_alert.ts @@ -56,11 +56,11 @@ export default ({ getService }: FtrProviderContext) => { }); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('should return a 404 when superuser accesses not-existent alert', async () => { diff --git a/x-pack/platform/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 index a53ff9447925c..dbb0d3e0f810b 100644 --- a/x-pack/platform/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 @@ -76,7 +76,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { describe('anomaly detection alert', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ecommerce'); await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); const { job, datafeed } = createTestJobAndDatafeed(); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts index 4aafb68de0e88..7977d68d068b9 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/index.ts @@ -15,7 +15,9 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid describe('Dashboard', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search' diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts index bae4cdb3f7e3a..c2e9cd187d481 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/index.ts @@ -15,7 +15,9 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid describe('Search session sharing', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); await common.navigateToApp('dashboard'); }); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts index 8d10b26f33177..2161032ea073e 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/async_search.ts @@ -32,7 +32,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('discover async search', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/discover/default' ); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts index 2af94730ff918..8b8aa0939e2f6 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/index.ts @@ -15,7 +15,9 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid describe('Discover', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); await PageObjects.common.navigateToApp('discover'); }); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts index 647cff3432200..770b8adc00fd8 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/index.ts @@ -14,7 +14,9 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { describe('lens search sessions', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); }); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts index 01359da876a55..b81842a40d37a 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/lens/search_sessions.ts @@ -17,7 +17,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('lens search sessions', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts index f2a86a0b7f488..b896949f7fa17 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/management/search_sessions/index.ts @@ -14,9 +14,13 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { describe('search sessions management', function () { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/dashboard/async_search'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/dashboard/async_search' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search' ); diff --git a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/datastream.ts b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/datastream.ts index 38fbb23ddf063..1192c3eedb61b 100644 --- a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/datastream.ts +++ b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/datastream.ts @@ -27,7 +27,7 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { - data: 'x-pack/test/functional/es_archives/reporting/ecommerce', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', }, }; diff --git a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/generate_csv_discover.ts b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/generate_csv_discover.ts index 3fd65e9805dbf..0b9ba9d5069cb 100644 --- a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/generate_csv_discover.ts +++ b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/generate_csv_discover.ts @@ -39,27 +39,27 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { - data: 'x-pack/test/functional/es_archives/reporting/ecommerce', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', }, unmappedFields: { - data: 'x-pack/test/functional/es_archives/reporting/unmapped_fields', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json', }, logs: { - data: 'x-pack/test/functional/es_archives/logstash_functional', + data: 'x-pack/platform/test/fixtures/es_archives/logstash_functional', savedObjects: 'x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting/logs', }, nanos: { - data: 'x-pack/test/functional/es_archives/reporting/nanos', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/nanos', savedObjects: 'x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting/logs', }, sales: { - data: 'x-pack/test/functional/es_archives/reporting/sales', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/sales', savedObjects: 'x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting/logs', }, bigIntIdField: { - data: 'x-pack/test/functional/es_archives/reporting/big_int_id_field', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/big_int_id_field', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/big_int_id_field', }, }; diff --git a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/management.ts b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/management.ts index d7c845e1d9819..fd42c6499ccf1 100644 --- a/x-pack/platform/test/serverless/api_integration/test_suites/reporting/management.ts +++ b/x-pack/platform/test/serverless/api_integration/test_suites/reporting/management.ts @@ -24,7 +24,7 @@ export default ({ getService }: FtrProviderContext) => { const archives = { ecommerce: { - data: 'x-pack/test/functional/es_archives/reporting/ecommerce', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', }, }; diff --git a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/migrations.ts b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/migrations.ts index 1d67e02a80d57..ec2f767d27ead 100644 --- a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/migrations.ts +++ b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/migrations.ts @@ -26,11 +26,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); it('8.0.0 migrates actions tasks with legacy id to saved object ids', async () => { diff --git a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_removed_types.ts b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_removed_types.ts index a7447353e805a..5d4dea1bf67dd 100644 --- a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_removed_types.ts +++ b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_removed_types.ts @@ -49,11 +49,13 @@ export default function ({ getService }: FtrProviderContext) { describe('not registered task types', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_removed_types'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_removed_types'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_removed_types'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/task_manager_removed_types' + ); }); afterEach(async () => { diff --git a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_scheduled_at.ts b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_scheduled_at.ts index a70225035d03c..9ee9d1746d87f 100644 --- a/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_scheduled_at.ts +++ b/x-pack/platform/test/task_manager_claimer_update_by_query/test_suites/task_manager/task_management_scheduled_at.ts @@ -16,11 +16,11 @@ export default function createTaskManagementScheduledAtTests({ getService }: Ftr describe('task management scheduled at', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/task_manager_tasks'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/task_manager_tasks'); await esArchiver.emptyKibanaIndex(); }); diff --git a/x-pack/platform/test/upgrade_assistant_integration/upgrade_assistant/reindexing.ts b/x-pack/platform/test/upgrade_assistant_integration/upgrade_assistant/reindexing.ts index 6dfe249fae9b7..b82ba19eea557 100644 --- a/x-pack/platform/test/upgrade_assistant_integration/upgrade_assistant/reindexing.ts +++ b/x-pack/platform/test/upgrade_assistant_integration/upgrade_assistant/reindexing.ts @@ -59,7 +59,7 @@ export default function ({ getService }: FtrProviderContext) { }); it('should create a new index with the same documents', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex'); const { dummydata: originalIndex } = await es.indices.get({ index: 'dummydata', @@ -107,7 +107,7 @@ export default function ({ getService }: FtrProviderContext) { }); it('should match the same original index settings after reindex', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex'); const originalSettings = { 'index.number_of_replicas': 1, @@ -153,7 +153,7 @@ export default function ({ getService }: FtrProviderContext) { }); it('can resume after reindexing was stopped right after creating the new index', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex'); // This new index is the new soon to be created reindexed index. We create it // upfront to simulate a situation in which the user restarted kibana half @@ -179,7 +179,7 @@ export default function ({ getService }: FtrProviderContext) { }); it('should update any aliases', async () => { - await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/upgrade_assistant/reindex'); // Add aliases and ensure each returns the right number of docs await es.indices.updateAliases({ diff --git a/x-pack/solutions/observability/test/observability_functional/apps/observability/feature_controls/observability_security.ts b/x-pack/solutions/observability/test/observability_functional/apps/observability/feature_controls/observability_security.ts index f761476784a25..45869811f66c3 100644 --- a/x-pack/solutions/observability/test/observability_functional/apps/observability/feature_controls/observability_security.ts +++ b/x-pack/solutions/observability/test/observability_functional/apps/observability/feature_controls/observability_security.ts @@ -26,11 +26,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('observability security feature controls', function () { this.tags(['skipFirefox', 'skipFIPS']); before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/default'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/default'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/cases/default'); // Since the above unload removes the default config, // the following command will set it back to avoid changing the test environment await kibanaServer.uiSettings.update(config.get('uiSettings.defaults')); diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v1.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v1.ts index 659f999dc7905..d69298e44182a 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v1.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v1.ts @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -111,7 +111,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return non-empty array filled with Rules if user has CSP integrations`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts index e359d7146fcd7..d444265e2ac3d 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -111,7 +111,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return all benchmarks if user has CSP integrations`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/find_csp_benchmark_rule.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/find_csp_benchmark_rule.ts index f2497d08de913..7ccce7c328394 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/find_csp_benchmark_rule.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/find_csp_benchmark_rule.ts @@ -23,7 +23,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -39,7 +39,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return 500 error code when not provide package policy id or benchmark id`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v1.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v1.ts index 4959c8998a5b3..55d80300de107 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v1.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v1.ts @@ -23,7 +23,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -39,7 +39,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return 500 error code when not provide package policy id or benchmark id`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v2.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v2.ts index c7b0bda53e948..1e8c03daa7eb4 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v2.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/rules/v2.ts @@ -29,7 +29,7 @@ export default function ({ getService }: FtrProviderContext) { ]; before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); beforeEach(async () => { @@ -112,7 +112,7 @@ export default function ({ getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return 500 error code when not provide benchmark id`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_index_timeout.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_index_timeout.ts index d0357a3fe58b0..2908ba3f05bfb 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_index_timeout.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_index_timeout.ts @@ -51,7 +51,7 @@ export default function (providerContext: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const getPkRes = await supertest .get(`/api/fleet/epm/packages/fleet_server`) .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') @@ -97,7 +97,9 @@ export default function (providerContext: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); await findingsIndex.deleteAll(); await latestFindingsIndex.deleteAll(); diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexed.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexed.ts index edf1956703b9a..7f99fe8323efe 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexed.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexed.ts @@ -40,7 +40,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = INDEXED TEST', () => { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -63,7 +63,9 @@ export default function (providerContext: FtrProviderContext) { await latestVulnerabilitiesIndex.deleteAll(); await _3pIndex.destroyIndex(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Return hasMisconfigurationsFindings true when there are latest findings but no installed integrations`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexing.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexing.ts index dec99faa32150..4c39a76d9e838 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexing.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_indexing.ts @@ -31,7 +31,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = INDEXING TEST', () => { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -51,7 +51,9 @@ export default function (providerContext: FtrProviderContext) { await findingsIndex.deleteAll(); await vulnerabilitiesIndex.deleteAll(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Return kspm status indexing when security_solution-cloud_security_posture.misconfiguration_latest doesn't contain new kspm documents, but has newly connected agents`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_not_deployed_not_installed.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_not_deployed_not_installed.ts index bb8af48c4fa14..ba59e2e5684fe 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_not_deployed_not_installed.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_not_deployed_not_installed.ts @@ -29,7 +29,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = NOT-DEPLOYED and STATUS = NOT-INSTALLED TEST', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); beforeEach(async () => { @@ -56,7 +56,9 @@ export default function (providerContext: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Should return not-deployed when installed kspm, no findings on either indices and no healthy agents`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_unprivileged.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_unprivileged.ts index 4b2e6883d57ed..a74f66ca5e3d3 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_unprivileged.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_unprivileged.ts @@ -43,14 +43,16 @@ export default function (providerContext: FtrProviderContext) { await createCSPRole(security, UNPRIVILEGED_ROLE); await createUser(security, UNPRIVILEGED_USERNAME, UNPRIVILEGED_ROLE); await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); after(async () => { await deleteUser(security, UNPRIVILEGED_USERNAME); await deleteRole(security, UNPRIVILEGED_ROLE); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); beforeEach(async () => { @@ -128,12 +130,14 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await esArchiver.loadIfNeeded( - 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Return unprivileged when missing access to findings_latest index`, async () => { diff --git a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_waiting_for_results.ts b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_waiting_for_results.ts index e231a26de2eff..1faad5f410e40 100644 --- a/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_waiting_for_results.ts +++ b/x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/status/status_waiting_for_results.ts @@ -28,7 +28,7 @@ export default function (providerContext: FtrProviderContext) { }); beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const getPkRes = await supertest .get(`/api/fleet/epm/packages/fleet_server`) .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') @@ -69,7 +69,9 @@ export default function (providerContext: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Should return waiting_for_result when installed kspm, has no findings and it has been less than 10 minutes since the installation`, async () => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/delete_cases.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/delete_cases.ts index e001cde5195a5..577ff4216edd5 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/delete_cases.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/delete_cases.ts @@ -270,7 +270,7 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); const signals = await createSecuritySolutionAlerts(supertest, log, 2); alerts = [signals.hits.hits[0] as Alerts[number], signals.hits.hits[1] as Alerts[number]]; @@ -279,7 +279,7 @@ export default ({ getService }: FtrProviderContext): void => { afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('removes a case from the alert schema when deleting a case', async () => { @@ -378,11 +378,11 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('removes a case from the alert schema when deleting a case', async () => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/patch_cases.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/patch_cases.ts index 446e4200eeb75..2ee578a95866f 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/patch_cases.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/cases/patch_cases.ts @@ -1689,10 +1689,12 @@ export default ({ getService }: FtrProviderContext): void => { const defaultSignalsIndex = 'siem-signals-default-000001'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/signals/default'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/default' + ); await deleteAllCaseItems(es); }); @@ -1823,10 +1825,14 @@ export default ({ getService }: FtrProviderContext): void => { const defaultSignalsIndex = 'siem-signals-default-000001'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/duplicate_ids'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids' + ); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/duplicate_ids'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/duplicate_ids' + ); await deleteAllCaseItems(es); }); @@ -1948,14 +1954,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('detections rule', () => { beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); }); afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('updates alert status when the status is updated and syncAlerts=true', async () => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/client/update_alert_status.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/client/update_alert_status.ts index 67b7e78ebb892..43d195b9d8ccb 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/client/update_alert_status.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/client/update_alert_status.ts @@ -27,10 +27,10 @@ export default ({ getService }: FtrProviderContext): void => { const defaultSignalsIndex = 'siem-signals-default-000001'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/signals/default'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/cases/signals/default'); await deleteAllCaseItems(es); }); diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comment.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comment.ts index 5ffe0e5125bee..d8db3eb9b83b5 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comment.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comment.ts @@ -133,7 +133,7 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); const signals = await createSecuritySolutionAlerts(supertest, log, 2); alerts = [signals.hits.hits[0] as Alerts[number], signals.hits.hits[1] as Alerts[number]]; @@ -142,7 +142,7 @@ export default ({ getService }: FtrProviderContext): void => { afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('removes a case from the alert schema when deleting an alert attachment', async () => { @@ -230,11 +230,11 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('removes a case from the alert schema when deleting an alert attachment', async () => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comments.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comments.ts index b0ad92b50c7da..b6a982f5dfadc 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comments.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/delete_comments.ts @@ -128,7 +128,7 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); const signals = await createSecuritySolutionAlerts(supertest, log, 2); alerts = [signals.hits.hits[0] as Alerts[number], signals.hits.hits[1] as Alerts[number]]; @@ -137,7 +137,7 @@ export default ({ getService }: FtrProviderContext): void => { afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('deletes alerts and comments', async () => { @@ -266,11 +266,11 @@ export default ({ getService }: FtrProviderContext): void => { }; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); it('deletes alerts and comments', async () => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/post_comment.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/post_comment.ts index 2754ba6624c34..80a7cba5a19b2 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/post_comment.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/comments/post_comment.ts @@ -547,14 +547,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('alerts', () => { describe('security_solution', () => { beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); }); afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); const createCommentAndRefreshIndex = async ({ @@ -845,11 +845,11 @@ export default ({ getService }: FtrProviderContext): void => { const apmIndex = '.alerts-observability.apm.alerts'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); const bulkCreateAlertsAndVerifyCaseIdsInAlertSchema = async (totalCases: number) => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_create_attachments.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_create_attachments.ts index 261fdbfb5103d..fa1d9648ff8e4 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_create_attachments.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_create_attachments.ts @@ -793,14 +793,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('alerts', () => { describe('security_solution', () => { beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await createAlertsIndex(supertest, log); }); afterEach(async () => { await deleteAllAlerts(supertest, log, es); await deleteAllRules(supertest, log); - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); const bulkCreateAttachmentsAndRefreshIndex = async ({ @@ -1097,11 +1097,11 @@ export default ({ getService }: FtrProviderContext): void => { const apmIndex = '.alerts-observability.apm.alerts'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/rule_registry/alerts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/rule_registry/alerts'); }); const bulkCreateAlertsAndVerifyCaseIdsInAlertSchema = async (totalCases: number) => { diff --git a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/trial/cases/push_case.ts b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/trial/cases/push_case.ts index f6758b651ead7..69c8dd82b3410 100644 --- a/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/trial/cases/push_case.ts +++ b/x-pack/solutions/security/test/cases_api_integration/security_and_spaces/tests/trial/cases/push_case.ts @@ -625,11 +625,13 @@ export default ({ getService }: FtrProviderContext): void => { const signalID2 = '1023bcfea939643c5e51fd8df53797e0ea693cee547db579ab56d96402365c1e'; beforeEach(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/cases/signals/default'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/cases/signals/default'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/cases/signals/default' + ); await deleteAllCaseItems(es); }); diff --git a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts index 36a37551f715b..338c7c4b11787 100644 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts @@ -46,7 +46,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'cloud-security-posture-settings', ], }); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -85,7 +85,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'cloud-security-posture-settings', ], }); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); afterEach(async () => { diff --git a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts index 18e811343d29d..f738d193f4ea0 100644 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts @@ -40,7 +40,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { findings = pageObjects.findings; await findings.index.remove(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -80,7 +80,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); afterEach(async () => { diff --git a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts index 400fabdb17187..e05b2b92dfa14 100644 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts @@ -46,7 +46,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'cloud-security-posture-settings', ], }); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -85,7 +85,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'cloud-security-posture-settings', ], }); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); afterEach(async () => { diff --git a/x-pack/solutions/security/test/fleet_api_integration/apis/agents/status.ts b/x-pack/solutions/security/test/fleet_api_integration/apis/agents/status.ts index 6c528a3cd0c32..9805b4e5145cf 100644 --- a/x-pack/solutions/security/test/fleet_api_integration/apis/agents/status.ts +++ b/x-pack/solutions/security/test/fleet_api_integration/apis/agents/status.ts @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { // Failed test: https://github.com/elastic/kibana/issues/228565 describe.skip('fleet_agents_status', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/fleet/agents'); await es.create({ id: 'ingest-agent-policies:policy-inactivity-timeout', index: INGEST_SAVED_OBJECT_INDEX, @@ -235,7 +235,7 @@ export default function ({ getService }: FtrProviderContext) { }); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/agents'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); }); it('should return the status of agents', async () => { diff --git a/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/get.ts b/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/get.ts index a24f4d3bc0a15..3ec2aa0871780 100644 --- a/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/get.ts +++ b/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/get.ts @@ -35,11 +35,11 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/update.ts b/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/update.ts index da0586e06db02..461a5afd31c69 100644 --- a/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/update.ts +++ b/x-pack/solutions/security/test/fleet_api_integration/apis/package_policy/update.ts @@ -67,7 +67,7 @@ export default function (providerContext: FtrProviderContext) { let inputOnlyBasePackagePolicy: NewPackagePolicy; before(async function () { - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); if (!isDockerRegistryEnabledOrSkipped(providerContext)) { return; @@ -268,7 +268,7 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .expect(200); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test/functional/es_archives/alerts_legacy/rules/data.json b/x-pack/test/functional/es_archives/alerts_legacy/rules/data.json deleted file mode 100644 index a4a9ab8f9848f..0000000000000 --- a/x-pack/test/functional/es_archives/alerts_legacy/rules/data.json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "type": "doc", - "value": { - "id": "space1:action:17f38826-5a8d-4a76-975a-b496e7fffe0b", - "index": ".kibana_1", - "source": { - "action": { - "actionTypeId": "test.index-record", - "config": { - "unencrypted": "This value shouldn't get encrypted" - }, - "name": "My action", - "secrets": "/ZW1x3z3KWzPB0H3ociZNVBeWJGQytz2P5OEUCmz4ahO7S8709DDJ+uC9ztGRig7e73GtCgT6XU42Cn8l8rm90INusLWf2oXaXbdGctjMDtTXv5S3b75YdEwIHClhLTLswmraGQHUwMsTMe+EVh9gUhwGsjDLTQAiDqsDonMto8XkTdtyP6C5axn" - }, - "namespace": "space1", - "references": [ - ], - "type": "action", - "updated_at": "2020-09-04T11:50:50.815Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "space1:alert:6ee9630a-a20e-44af-9465-217a3717d2ab", - "index": ".kibana_1", - "source": { - "alert": { - "actions": [ - { - "actionRef": "action_0", - "actionTypeId": "test.index-record", - "group": "default", - "params": { - "index": "kibana-alerting-test-data", - "message": "alertId: {{alertId}},\nalertName: {{alertName}},\nspaceId: {{spaceId}},\ntags: {{tags}},\nalertInstanceId: {{alertInstanceId}},\ninstanceContextValue: {{context.instanceContextValue}},\ninstanceStateValue: {{state.instanceStateValue}}", - "reference": "alert:migrated-to-7.10:space_1_all_alerts_none_actions" - } - } - ], - "alertTypeId": "test.always-firing", - "apiKey": "5kB2ao8TYvwpj+CGsgnAmWvzvuPCt9Wu6q4d4Y56rTKbqO352RjiRG8dbvEzKcRveiMjfKYFOXs6dlh8cMIRBrBnF7z19+A1sq+RhrvMiqXFxbN+udBEwtUXNjgoaFH5Ajvm0t5Yg3f4XSGhaWc/n2URo6eXq/OkVsp/xjHs1rfGow5dojDEtotkFuvzPLstH2mBImYLwwejvw==", - "apiKeyOwner": "superuser", - "consumer": "alertsFixture", - "createdAt": "2020-09-04T11:51:04.584Z", - "createdBy": "superuser", - "enabled": true, - "muteAll": false, - "mutedInstanceIds": [ - ], - "name": "abc", - "params": { - "index": "kibana-alerting-test-data", - "reference": "alert:migrated-to-7.10:space_1_all_alerts_none_actions" - }, - "schedule": { - "interval": "2s" - }, - "scheduledTaskId": "e9c069d0-eea4-11ea-a285-352ee3aecffa", - "tags": [ - "tag-A", - "tag-B" - ], - "throttle": "2s", - "updatedBy": "superuser" - }, - "migrationVersion": { - "alert": "7.9.0" - }, - "namespace": "space1", - "references": [ - { - "id": "17f38826-5a8d-4a76-975a-b496e7fffe0b", - "name": "action_0", - "type": "action" - } - ], - "type": "alert", - "updated_at": "2020-09-04T11:51:05.222Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "space1:alert:b384be60-ec53-4b26-857e-0253ee55b277", - "index": ".kibana_1", - "source": { - "alert": { - "actions": [ - { - "actionRef": "action_0", - "actionTypeId": "test.index-record", - "group": "default", - "params": { - "index": "kibana-alerting-test-data", - "message": "alertId: {{alertId}},\nalertName: {{alertName}},\nspaceId: {{spaceId}},\ntags: {{tags}},\nalertInstanceId: {{alertInstanceId}},\ninstanceContextValue: {{context.instanceContextValue}},\ninstanceStateValue: {{state.instanceStateValue}}", - "reference": "alert:migrated-to-7.10:superuser" - } - } - ], - "alertTypeId": "test.always-firing", - "apiKey": "Aj+qLwjCZ/WUeMUmLbe9xsf3/O4YAGGYg063WHGoPdftE7WKRxhn45ZUGu4SZ45BAloAsX113sCjIjhSwyVFTHG41lv0sGDLheviV/FwxmNnUDwX8Bn5PcbFw6n+eRsgBgXXC1qgNjhd1SfuEPd1BfmtjT58NLPN6G5NMKRAeWA7Tp5U25Aw6JYaPXwyFV5sfNhWi21pLs2fJQ==", - "apiKeyOwner": "superuser", - "consumer": "alertsFixture", - "createdAt": "2020-09-04T11:50:54.493Z", - "createdBy": "superuser", - "enabled": true, - "muteAll": false, - "mutedInstanceIds": [ - ], - "name": "abc", - "params": { - "index": "kibana-alerting-test-data", - "reference": "alert:migrated-to-7.10:superuser" - }, - "schedule": { - "interval": "2s" - }, - "scheduledTaskId": "e39a02f0-eea4-11ea-a285-352ee3aecffa", - "tags": [ - "tag-A", - "tag-B" - ], - "throttle": "2s", - "updatedBy": "superuser" - }, - "migrationVersion": { - "alert": "7.9.0" - }, - "namespace": "space1", - "references": [ - { - "id": "17f38826-5a8d-4a76-975a-b496e7fffe0b", - "name": "action_0", - "type": "action" - } - ], - "type": "alert", - "updated_at": "2020-09-04T11:50:54.902Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "space1:alert:5cc59319-74ee-4edc-8646-a79ea91067cd", - "index": ".kibana_1", - "source": { - "alert": { - "actions": [ - { - "actionRef": "action_0", - "actionTypeId": "test.index-record", - "group": "default", - "params": { - "index": "kibana-alerting-test-data", - "message": "alertId: {{alertId}},\nalertName: {{alertName}},\nspaceId: {{spaceId}},\ntags: {{tags}},\nalertInstanceId: {{alertInstanceId}},\ninstanceContextValue: {{context.instanceContextValue}},\ninstanceStateValue: {{state.instanceStateValue}}", - "reference": "alert:migrated-to-7.10:space_1_all_with_restricted_fixture" - } - } - ], - "alertTypeId": "test.always-firing", - "apiKey": "OFpEg7T+jq0nVoGkqHEN5W0fgcEu4LmCXCz6F5EzQ8mgxr2+270/nqv2+zSTnkef7rK2Xz2MDmQsdrRrsAFb5ItFb5YnR/zfqbq0+QBlvgqChKORE1+ggI1oQsYnjDtPWOqMwbUUNGYQXdyUZVdRqeeoYq847NgSo5UBoCJgEZ9ah1gzPA6XYvzbBtJdZ+QgCjfuXsrBSlImhQ==", - "apiKeyOwner": "superuser", - "consumer": "alertsFixture", - "createdAt": "2020-09-04T11:51:02.571Z", - "createdBy": "superuser", - "enabled": true, - "muteAll": false, - "mutedInstanceIds": [ - ], - "name": "abc", - "params": { - "index": "kibana-alerting-test-data", - "reference": "alert:migrated-to-7.10:space_1_all_with_restricted_fixture" - }, - "schedule": { - "interval": "2s" - }, - "scheduledTaskId": "e8885f00-eea4-11ea-a285-352ee3aecffa", - "tags": [ - "tag-A", - "tag-B" - ], - "throttle": "2s", - "updatedBy": "superuser" - }, - "migrationVersion": { - "alert": "7.9.0" - }, - "namespace": "space1", - "references": [ - { - "id": "17f38826-5a8d-4a76-975a-b496e7fffe0b", - "name": "action_0", - "type": "action" - } - ], - "type": "alert", - "updated_at": "2020-09-04T11:51:03.175Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "space1:alert:d41a6abb-b93b-46df-a80a-926221ea847c", - "index": ".kibana_1", - "source": { - "alert": { - "actions": [ - { - "actionRef": "action_0", - "actionTypeId": "test.index-record", - "group": "default", - "params": { - "index": "kibana-alerting-test-data", - "message": "alertId: {{alertId}},\nalertName: {{alertName}},\nspaceId: {{spaceId}},\ntags: {{tags}},\nalertInstanceId: {{alertInstanceId}},\ninstanceContextValue: {{context.instanceContextValue}},\ninstanceStateValue: {{state.instanceStateValue}}", - "reference": "alert:migrated-to-7.10:space_1_all" - } - } - ], - "alertTypeId": "test.always-firing", - "apiKey": "5qbDONVFRacd8IukMksh11NZ8OFxSN31sJRgIdRw4GHME2qKqyqczHz/CDANEjKF78M98yc5xSr8vNnco2PDOHTD7YfMdnlrl1/lOdIkJ/IM8YxGBCLZfk5hRx/dD3X84ZtSEZ2hYWjAemFKtD5GpTWtczhkx9jRgUMbPgBzrhyEmDJoHMQQSOEpIJKmQpAcpHGsE5/+SVIcGQ==", - "apiKeyOwner": "superuser", - "consumer": "alertsFixture", - "createdAt": "2020-09-04T11:50:58.533Z", - "createdBy": "superuser", - "enabled": true, - "muteAll": false, - "mutedInstanceIds": [ - ], - "name": "abc", - "params": { - "index": "kibana-alerting-test-data", - "reference": "alert:migrated-to-7.10:space_1_all" - }, - "schedule": { - "interval": "2s" - }, - "scheduledTaskId": "e616c2c0-eea4-11ea-a285-352ee3aecffa", - "tags": [ - "tag-A", - "tag-B" - ], - "throttle": "2s", - "updatedBy": "superuser" - }, - "migrationVersion": { - "alert": "7.9.0" - }, - "namespace": "space1", - "references": [ - { - "id": "17f38826-5a8d-4a76-975a-b496e7fffe0b", - "name": "action_0", - "type": "action" - } - ], - "type": "alert", - "updated_at": "2020-09-04T11:50:59.083Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "space1:alert:362e362b-a137-4aa2-9434-43e3d0d84a34", - "index": ".kibana_1", - "source": { - "alert": { - "actions": [ - { - "actionRef": "action_0", - "actionTypeId": "test.index-record", - "group": "default", - "params": { - "index": "kibana-alerting-test-data", - "message": "alertId: {{alertId}},\nalertName: {{alertName}},\nspaceId: {{spaceId}},\ntags: {{tags}},\nalertInstanceId: {{alertInstanceId}},\ninstanceContextValue: {{context.instanceContextValue}},\ninstanceStateValue: {{state.instanceStateValue}}", - "reference": "alert:migrated-to-7.10:global_read" - } - } - ], - "alertTypeId": "test.always-firing", - "apiKey": "asFMeAR9MRRO5bwGiA5z3arqWOs9ZVPHYTvLL2S9JFRZSsA88yauEPxHeri3UpHWqLktDbOSpR4C1bmIQySDt1VOpe13JzGC/Z+/S0I9PaFQ8oHQ2VqjQ26j9hxuS+B9sXtAOhgYu2WBQw1ugeW2Eo86c9wpFux4p3SbKiNhwyC/9WUR5qI63cBnvRs8Zi8ePOMdnTJoiBzduw==", - "apiKeyOwner": "superuser", - "consumer": "alertsFixture", - "createdAt": "2020-09-04T11:50:56.513Z", - "createdBy": "superuser", - "enabled": true, - "muteAll": false, - "mutedInstanceIds": [ - ], - "name": "abc", - "params": { - "index": "kibana-alerting-test-data", - "reference": "alert:migrated-to-7.10:global_read" - }, - "schedule": { - "interval": "2s" - }, - "scheduledTaskId": "e4df5430-eea4-11ea-a285-352ee3aecffa", - "tags": [ - "tag-A", - "tag-B" - ], - "throttle": "2s", - "updatedBy": "superuser" - }, - "migrationVersion": { - "alert": "7.9.0" - }, - "namespace": "space1", - "references": [ - { - "id": "17f38826-5a8d-4a76-975a-b496e7fffe0b", - "name": "action_0", - "type": "action" - } - ], - "type": "alert", - "updated_at": "2020-09-04T11:50:57.048Z" - } - } -} diff --git a/x-pack/test/functional/es_archives/alerts_legacy/rules/mappings.json b/x-pack/test/functional/es_archives/alerts_legacy/rules/mappings.json deleted file mode 100644 index 23f170737f498..0000000000000 --- a/x-pack/test/functional/es_archives/alerts_legacy/rules/mappings.json +++ /dev/null @@ -1,2522 +0,0 @@ -{ - "type": "index", - "value": { - "aliases": { - ".kibana": { - } - }, - "index": ".kibana_1", - "mappings": { - "_meta": { - "migrationMappingPropertyHashes": { - "action": "6e96ac5e648f57523879661ea72525b7", - "action_task_params": "a9d49f184ee89641044be0ca2950fa3a", - "alert": "ee7356e3d77d357fe62a10350eed4b3c", - "apm-indices": "9bb9b2bf1fa636ed8619cbab5ce6a1dd", - "apm-telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "app_search_telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724", - "application_usage_transactional": "43b8830d5d0df85a6823d290885fc9fd", - "canvas-element": "7390014e1091044523666d97247392fc", - "canvas-workpad": "b0a1706d356228dbdcb4a17e6b9eb231", - "canvas-workpad-template": "ae2673f678281e2c055d764b153e9715", - "cases": "32aa96a6d3855ddda53010ae2048ac22", - "cases-comments": "c2061fb929f585df57425102fa928b4b", - "cases-configure": "42711cbb311976c0687853f4c1354572", - "cases-user-actions": "32277330ec6b721abe3b846cfd939a71", - "config": "c63748b75f39d0c54de12d12c1ccbc20", - "dashboard": "74eb4b909f81222fa1ddeaba2881a37e", - "endpoint:user-artifact": "4a11183eee21e6fbad864f7a30b39ad0", - "endpoint:user-artifact-manifest": "a0d7b04ad405eed54d76e279c3727862", - "epm-packages": "8f6e0b09ea0374c4ffe98c3755373cff", - "exception-list": "497afa2f881a675d72d58e20057f3d8b", - "exception-list-agnostic": "497afa2f881a675d72d58e20057f3d8b", - "file-upload-telemetry": "0ed4d3e1983d1217a30982630897092e", - "fleet-agent-actions": "e520c855577170c24481be05c3ae14ec", - "fleet-agent-events": "e20a508b6e805189356be381dbfac8db", - "fleet-agents": "6012d61d15e72564e47fc3402332756e", - "fleet-enrollment-api-keys": "a69ef7ae661dab31561d6c6f052ef2a7", - "graph-workspace": "cd7ba1330e6682e9cc00b78850874be1", - "index-pattern": "45915a1ad866812242df474eb0479052", - "infrastructure-ui-source": "2b2809653635caf490c93f090502d04c", - "ingest-agent-policies": "8b0733cce189659593659dad8db426f0", - "ingest-outputs": "8aa988c376e65443fefc26f1075e93a3", - "ingest-package-policies": "f74dfe498e1849267cda41580b2be110", - "ingest_manager_settings": "012cf278ec84579495110bb827d1ed09", - "inventory-view": "88fc7e12fd1b45b6f0787323ce4f18d2", - "kql-telemetry": "d12a98a6f19a2d273696597547e064ee", - "lens": "52346cfec69ff7b47d5f0c12361a2797", - "lens-ui-telemetry": "509bfa5978586998e05f9e303c07a327", - "map": "4a05b35c3a3a58fbc72dd0202dc3487f", - "maps-telemetry": "5ef305b18111b77789afefbd36b66171", - "metrics-explorer-view": "a8df1d270ee48c969d22d23812d08187", - "migrationVersion": "4a1746014a75ade3a714e1db5763276f", - "ml-telemetry": "257fd1d4b4fdbb9cb4b8a3b27da201e9", - "namespace": "2f4316de49999235636386fe51dc06c1", - "namespaces": "2f4316de49999235636386fe51dc06c1", - "query": "11aaeb7f5f7fa5bb43f25e18ce26e7d9", - "references": "7997cf5a56cc02bdc9c93361bde732b0", - "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4", - "search": "7f9e077078cab612f6a58e3bfdedb71a", - "search-telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "siem-detection-engine-rule-actions": "6569b288c169539db10cb262bf79de18", - "siem-detection-engine-rule-status": "ae783f41c6937db6b7a2ef5c93a9e9b0", - "siem-ui-timeline": "94bc38c7a421d15fbfe8ea565370a421", - "siem-ui-timeline-note": "8874706eedc49059d4cf0f5094559084", - "siem-ui-timeline-pinned-event": "20638091112f0e14f0e443d512301c29", - "space": "c5ca8acafa0beaa4d08d014a97b6bc6b", - "telemetry": "36a616f7026dfa617d6655df850fe16d", - "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215", - "type": "2f4316de49999235636386fe51dc06c1", - "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3", - "updated_at": "00da57df13e94e9d98437d13ace4bfe0", - "upgrade-assistant-reindex-operation": "215107c281839ea9b3ad5f6419819763", - "upgrade-assistant-telemetry": "56702cec857e0a9dacfb696655b4ff7b", - "uptime-dynamic-settings": "3d1b76c39bfb2cc8296b024d73854724", - "url": "c7f66a0df8b1b52f17c28c4adb111105", - "visualization": "44d6bd48a1a653bcb60ea01614b9e3c9", - "workplace_search_telemetry": "3d1b76c39bfb2cc8296b024d73854724" - } - }, - "dynamic": "strict", - "properties": { - "action": { - "properties": { - "actionTypeId": { - "type": "keyword" - }, - "config": { - "enabled": false, - "type": "object" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - }, - "secrets": { - "type": "binary" - } - } - }, - "action_task_params": { - "properties": { - "actionId": { - "type": "keyword" - }, - "apiKey": { - "type": "binary" - }, - "params": { - "enabled": false, - "type": "object" - } - } - }, - "alert": { - "properties": { - "actions": { - "properties": { - "actionRef": { - "type": "keyword" - }, - "actionTypeId": { - "type": "keyword" - }, - "group": { - "type": "keyword" - }, - "params": { - "enabled": false, - "type": "object" - } - }, - "type": "nested" - }, - "alertTypeId": { - "type": "keyword" - }, - "apiKey": { - "type": "binary" - }, - "apiKeyOwner": { - "type": "keyword" - }, - "consumer": { - "type": "keyword" - }, - "createdAt": { - "type": "date" - }, - "createdBy": { - "type": "keyword" - }, - "enabled": { - "type": "boolean" - }, - "muteAll": { - "type": "boolean" - }, - "mutedInstanceIds": { - "type": "keyword" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - }, - "params": { - "enabled": false, - "type": "object" - }, - "schedule": { - "properties": { - "interval": { - "type": "keyword" - } - } - }, - "scheduledTaskId": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "throttle": { - "type": "keyword" - }, - "updatedBy": { - "type": "keyword" - } - } - }, - "apm-indices": { - "properties": { - "error": { - "type": "keyword" - }, - "metric": { - "type": "keyword" - }, - "onboarding": { - "type": "keyword" - }, - "sourcemap": { - "type": "keyword" - }, - "span": { - "type": "keyword" - }, - "transaction": { - "type": "keyword" - } - } - }, - "apm-telemetry": { - "dynamic": "false", - "type": "object" - }, - "app_search_telemetry": { - "dynamic": "false", - "type": "object" - }, - "application_usage_totals": { - "dynamic": "false", - "type": "object" - }, - "application_usage_transactional": { - "dynamic": "false", - "properties": { - "timestamp": { - "type": "date" - } - } - }, - "canvas-element": { - "dynamic": "false", - "properties": { - "@created": { - "type": "date" - }, - "@timestamp": { - "type": "date" - }, - "content": { - "type": "text" - }, - "help": { - "type": "text" - }, - "image": { - "type": "text" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "canvas-workpad": { - "dynamic": "false", - "properties": { - "@created": { - "type": "date" - }, - "@timestamp": { - "type": "date" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "canvas-workpad-template": { - "dynamic": "false", - "properties": { - "help": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - }, - "tags": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - }, - "template_key": { - "type": "keyword" - } - } - }, - "cases": { - "properties": { - "closed_at": { - "type": "date" - }, - "closed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "connector_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "description": { - "type": "text" - }, - "external_service": { - "properties": { - "connector_id": { - "type": "keyword" - }, - "connector_name": { - "type": "keyword" - }, - "external_id": { - "type": "keyword" - }, - "external_title": { - "type": "text" - }, - "external_url": { - "type": "text" - }, - "pushed_at": { - "type": "date" - }, - "pushed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "status": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "title": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-comments": { - "properties": { - "comment": { - "type": "text" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "pushed_at": { - "type": "date" - }, - "pushed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-configure": { - "properties": { - "closure_type": { - "type": "keyword" - }, - "connector_id": { - "type": "keyword" - }, - "connector_name": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-user-actions": { - "properties": { - "action": { - "type": "keyword" - }, - "action_at": { - "type": "date" - }, - "action_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "action_field": { - "type": "keyword" - }, - "new_value": { - "type": "text" - }, - "old_value": { - "type": "text" - } - } - }, - "config": { - "dynamic": "false", - "properties": { - "buildNum": { - "type": "keyword" - } - } - }, - "dashboard": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "optionsJSON": { - "index": false, - "type": "text" - }, - "panelsJSON": { - "index": false, - "type": "text" - }, - "refreshInterval": { - "properties": { - "display": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "pause": { - "doc_values": false, - "index": false, - "type": "boolean" - }, - "section": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "value": { - "doc_values": false, - "index": false, - "type": "integer" - } - } - }, - "timeFrom": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "timeRestore": { - "doc_values": false, - "index": false, - "type": "boolean" - }, - "timeTo": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "endpoint:user-artifact": { - "properties": { - "body": { - "type": "binary" - }, - "compressionAlgorithm": { - "index": false, - "type": "keyword" - }, - "created": { - "index": false, - "type": "date" - }, - "decodedSha256": { - "index": false, - "type": "keyword" - }, - "decodedSize": { - "index": false, - "type": "long" - }, - "encodedSha256": { - "type": "keyword" - }, - "encodedSize": { - "index": false, - "type": "long" - }, - "encryptionAlgorithm": { - "index": false, - "type": "keyword" - }, - "identifier": { - "type": "keyword" - } - } - }, - "endpoint:user-artifact-manifest": { - "properties": { - "created": { - "index": false, - "type": "date" - }, - "schemaVersion": { - "type": "keyword" - }, - "semanticVersion": { - "index": false, - "type": "keyword" - }, - "artifacts": { - "type": "nested", - "properties": { - "policyId": { - "type": "keyword", - "index": false - }, - "artifactId": { - "type": "keyword", - "index": false - } - } - } - } - }, - "epm-packages": { - "properties": { - "es_index_patterns": { - "enabled": false, - "type": "object" - }, - "installed_es": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" - }, - "installed_kibana": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" - }, - "internal": { - "type": "boolean" - }, - "name": { - "type": "keyword" - }, - "removable": { - "type": "boolean" - }, - "version": { - "type": "keyword" - } - } - }, - "exception-list": { - "properties": { - "_tags": { - "type": "keyword" - }, - "comments": { - "properties": { - "comment": { - "type": "keyword" - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "updated_at": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "keyword" - }, - "entries": { - "properties": { - "entries": { - "properties": { - "field": { - "type": "keyword" - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "fields": { - "text": { - "type": "text" - } - }, - "type": "keyword" - } - } - }, - "field": { - "type": "keyword" - }, - "list": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "fields": { - "text": { - "type": "text" - } - }, - "type": "keyword" - } - } - }, - "immutable": { - "type": "boolean" - }, - "item_id": { - "type": "keyword" - }, - "list_id": { - "type": "keyword" - }, - "list_type": { - "type": "keyword" - }, - "meta": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "tie_breaker_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - }, - "version": { - "type": "keyword" - } - } - }, - "exception-list-agnostic": { - "properties": { - "_tags": { - "type": "keyword" - }, - "comments": { - "properties": { - "comment": { - "type": "keyword" - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "updated_at": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "keyword" - }, - "entries": { - "properties": { - "entries": { - "properties": { - "field": { - "type": "keyword" - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "fields": { - "text": { - "type": "text" - } - }, - "type": "keyword" - } - } - }, - "field": { - "type": "keyword" - }, - "list": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "fields": { - "text": { - "type": "text" - } - }, - "type": "keyword" - } - } - }, - "immutable": { - "type": "boolean" - }, - "item_id": { - "type": "keyword" - }, - "list_id": { - "type": "keyword" - }, - "list_type": { - "type": "keyword" - }, - "meta": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "tie_breaker_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - }, - "version": { - "type": "keyword" - } - } - }, - "file-upload-telemetry": { - "properties": { - "filesUploadedTotalCount": { - "type": "long" - } - } - }, - "fleet-agent-actions": { - "properties": { - "agent_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "data": { - "type": "binary" - }, - "sent_at": { - "type": "date" - }, - "type": { - "type": "keyword" - } - } - }, - "fleet-agent-events": { - "properties": { - "action_id": { - "type": "keyword" - }, - "agent_id": { - "type": "keyword" - }, - "data": { - "type": "text" - }, - "message": { - "type": "text" - }, - "payload": { - "type": "text" - }, - "policy_id": { - "type": "keyword" - }, - "stream_id": { - "type": "keyword" - }, - "subtype": { - "type": "keyword" - }, - "timestamp": { - "type": "date" - }, - "type": { - "type": "keyword" - } - } - }, - "fleet-agents": { - "properties": { - "access_api_key_id": { - "type": "keyword" - }, - "active": { - "type": "boolean" - }, - "current_error_events": { - "index": false, - "type": "text" - }, - "default_api_key": { - "type": "binary" - }, - "default_api_key_id": { - "type": "keyword" - }, - "enrolled_at": { - "type": "date" - }, - "last_checkin": { - "type": "date" - }, - "last_checkin_status": { - "type": "keyword" - }, - "last_updated": { - "type": "date" - }, - "local_metadata": { - "type": "flattened" - }, - "packages": { - "type": "keyword" - }, - "policy_id": { - "type": "keyword" - }, - "policy_revision": { - "type": "integer" - }, - "shared_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "unenrolled_at": { - "type": "date" - }, - "unenrollment_started_at": { - "type": "date" - }, - "updated_at": { - "type": "date" - }, - "user_provided_metadata": { - "type": "flattened" - }, - "version": { - "type": "keyword" - } - } - }, - "fleet-enrollment-api-keys": { - "properties": { - "active": { - "type": "boolean" - }, - "api_key": { - "type": "binary" - }, - "api_key_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "expire_at": { - "type": "date" - }, - "name": { - "type": "keyword" - }, - "policy_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - } - } - }, - "graph-workspace": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "numLinks": { - "type": "integer" - }, - "numVertices": { - "type": "integer" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - }, - "wsState": { - "type": "text" - } - } - }, - "index-pattern": { - "dynamic": "false", - "properties": { - "title": { - "type": "text" - }, - "type": { - "type": "keyword" - } - } - }, - "infrastructure-ui-source": { - "properties": { - "description": { - "type": "text" - }, - "fields": { - "properties": { - "container": { - "type": "keyword" - }, - "host": { - "type": "keyword" - }, - "pod": { - "type": "keyword" - }, - "tiebreaker": { - "type": "keyword" - }, - "timestamp": { - "type": "keyword" - } - } - }, - "inventoryDefaultView": { - "type": "keyword" - }, - "logAlias": { - "type": "keyword" - }, - "logColumns": { - "properties": { - "fieldColumn": { - "properties": { - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - } - } - }, - "messageColumn": { - "properties": { - "id": { - "type": "keyword" - } - } - }, - "timestampColumn": { - "properties": { - "id": { - "type": "keyword" - } - } - } - }, - "type": "nested" - }, - "metricAlias": { - "type": "keyword" - }, - "metricsExplorerDefaultView": { - "type": "keyword" - }, - "name": { - "type": "text" - } - } - }, - "ingest-agent-policies": { - "properties": { - "description": { - "type": "text" - }, - "is_default": { - "type": "boolean" - }, - "monitoring_enabled": { - "index": false, - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "namespace": { - "type": "keyword" - }, - "package_policies": { - "type": "keyword" - }, - "revision": { - "type": "integer" - }, - "status": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "ingest-outputs": { - "properties": { - "ca_sha256": { - "index": false, - "type": "keyword" - }, - "config": { - "type": "flattened" - }, - "fleet_enroll_password": { - "type": "binary" - }, - "fleet_enroll_username": { - "type": "binary" - }, - "hosts": { - "type": "keyword" - }, - "is_default": { - "type": "boolean" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "ingest-package-policies": { - "properties": { - "created_at": { - "type": "date" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "enabled": { - "type": "boolean" - }, - "inputs": { - "enabled": false, - "properties": { - "config": { - "type": "flattened" - }, - "enabled": { - "type": "boolean" - }, - "streams": { - "properties": { - "compiled_stream": { - "type": "flattened" - }, - "config": { - "type": "flattened" - }, - "data_stream": { - "properties": { - "dataset": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "enabled": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "vars": { - "type": "flattened" - } - }, - "type": "nested" - }, - "type": { - "type": "keyword" - }, - "vars": { - "type": "flattened" - } - }, - "type": "nested" - }, - "name": { - "type": "keyword" - }, - "namespace": { - "type": "keyword" - }, - "output_id": { - "type": "keyword" - }, - "package": { - "properties": { - "name": { - "type": "keyword" - }, - "title": { - "type": "keyword" - }, - "version": { - "type": "keyword" - } - } - }, - "policy_id": { - "type": "keyword" - }, - "revision": { - "type": "integer" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "ingest_manager_settings": { - "properties": { - "agent_auto_upgrade": { - "type": "keyword" - }, - "has_seen_add_data_notice": { - "index": false, - "type": "boolean" - }, - "kibana_ca_sha256": { - "type": "keyword" - }, - "kibana_url": { - "type": "keyword" - }, - "package_auto_upgrade": { - "type": "keyword" - } - } - }, - "inventory-view": { - "properties": { - "accountId": { - "type": "keyword" - }, - "autoBounds": { - "type": "boolean" - }, - "autoReload": { - "type": "boolean" - }, - "boundsOverride": { - "properties": { - "max": { - "type": "integer" - }, - "min": { - "type": "integer" - } - } - }, - "customMetrics": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "label": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" - }, - "customOptions": { - "properties": { - "field": { - "type": "keyword" - }, - "text": { - "type": "keyword" - } - }, - "type": "nested" - }, - "filterQuery": { - "properties": { - "expression": { - "type": "keyword" - }, - "kind": { - "type": "keyword" - } - } - }, - "groupBy": { - "properties": { - "field": { - "type": "keyword" - }, - "label": { - "type": "keyword" - } - }, - "type": "nested" - }, - "legend": { - "properties": { - "palette": { - "type": "keyword" - }, - "reverseColors": { - "type": "boolean" - }, - "steps": { - "type": "long" - } - } - }, - "metric": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "label": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "name": { - "type": "keyword" - }, - "nodeType": { - "type": "keyword" - }, - "region": { - "type": "keyword" - }, - "sort": { - "properties": { - "by": { - "type": "keyword" - }, - "direction": { - "type": "keyword" - } - } - }, - "time": { - "type": "long" - }, - "view": { - "type": "keyword" - } - } - }, - "kql-telemetry": { - "properties": { - "optInCount": { - "type": "long" - }, - "optOutCount": { - "type": "long" - } - } - }, - "lens": { - "properties": { - "description": { - "type": "text" - }, - "expression": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "state": { - "type": "flattened" - }, - "title": { - "type": "text" - }, - "visualizationType": { - "type": "keyword" - } - } - }, - "lens-ui-telemetry": { - "properties": { - "count": { - "type": "integer" - }, - "date": { - "type": "date" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "map": { - "properties": { - "description": { - "type": "text" - }, - "layerListJSON": { - "type": "text" - }, - "mapStateJSON": { - "type": "text" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "maps-telemetry": { - "enabled": false, - "type": "object" - }, - "metrics-explorer-view": { - "properties": { - "chartOptions": { - "properties": { - "stack": { - "type": "boolean" - }, - "type": { - "type": "keyword" - }, - "yAxisMode": { - "type": "keyword" - } - } - }, - "currentTimerange": { - "properties": { - "from": { - "type": "keyword" - }, - "interval": { - "type": "keyword" - }, - "to": { - "type": "keyword" - } - } - }, - "name": { - "type": "keyword" - }, - "options": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "filterQuery": { - "type": "keyword" - }, - "forceInterval": { - "type": "boolean" - }, - "groupBy": { - "type": "keyword" - }, - "limit": { - "type": "integer" - }, - "metrics": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "color": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "label": { - "type": "keyword" - } - }, - "type": "nested" - }, - "source": { - "type": "keyword" - } - } - } - } - }, - "migrationVersion": { - "dynamic": "true", - "properties": { - "alert": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "config": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "space": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "ml-telemetry": { - "properties": { - "file_data_visualizer": { - "properties": { - "index_creation_count": { - "type": "long" - } - } - } - } - }, - "namespace": { - "type": "keyword" - }, - "namespaces": { - "type": "keyword" - }, - "query": { - "properties": { - "description": { - "type": "text" - }, - "filters": { - "enabled": false, - "type": "object" - }, - "query": { - "properties": { - "language": { - "type": "keyword" - }, - "query": { - "index": false, - "type": "keyword" - } - } - }, - "timefilter": { - "enabled": false, - "type": "object" - }, - "title": { - "type": "text" - } - } - }, - "references": { - "properties": { - "id": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" - }, - "sample-data-telemetry": { - "properties": { - "installCount": { - "type": "long" - }, - "unInstallCount": { - "type": "long" - } - } - }, - "search": { - "properties": { - "columns": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "description": { - "type": "text" - }, - "hits": { - "doc_values": false, - "index": false, - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "sort": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "search-telemetry": { - "dynamic": "false", - "type": "object" - }, - "siem-detection-engine-rule-actions": { - "properties": { - "actions": { - "properties": { - "action_type_id": { - "type": "keyword" - }, - "group": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "params": { - "enabled": false, - "type": "object" - } - } - }, - "alertThrottle": { - "type": "keyword" - }, - "ruleAlertId": { - "type": "keyword" - }, - "ruleThrottle": { - "type": "keyword" - } - } - }, - "siem-detection-engine-rule-status": { - "properties": { - "alertId": { - "type": "keyword" - }, - "bulkCreateTimeDurations": { - "type": "float" - }, - "gap": { - "type": "text" - }, - "lastFailureAt": { - "type": "date" - }, - "lastFailureMessage": { - "type": "text" - }, - "lastLookBackDate": { - "type": "date" - }, - "lastSuccessAt": { - "type": "date" - }, - "lastSuccessMessage": { - "type": "text" - }, - "searchAfterTimeDurations": { - "type": "float" - }, - "status": { - "type": "keyword" - }, - "statusDate": { - "type": "date" - } - } - }, - "siem-ui-timeline": { - "properties": { - "columns": { - "properties": { - "aggregatable": { - "type": "boolean" - }, - "category": { - "type": "keyword" - }, - "columnHeaderType": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "example": { - "type": "text" - }, - "id": { - "type": "keyword" - }, - "indexes": { - "type": "keyword" - }, - "name": { - "type": "text" - }, - "placeholder": { - "type": "text" - }, - "searchable": { - "type": "boolean" - }, - "type": { - "type": "keyword" - } - } - }, - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "dataProviders": { - "properties": { - "and": { - "properties": { - "enabled": { - "type": "boolean" - }, - "excluded": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "kqlQuery": { - "type": "text" - }, - "name": { - "type": "text" - }, - "queryMatch": { - "properties": { - "displayField": { - "type": "text" - }, - "displayValue": { - "type": "text" - }, - "field": { - "type": "text" - }, - "operator": { - "type": "text" - }, - "value": { - "type": "text" - } - } - }, - "type": { - "type": "text" - } - } - }, - "enabled": { - "type": "boolean" - }, - "excluded": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "kqlQuery": { - "type": "text" - }, - "name": { - "type": "text" - }, - "queryMatch": { - "properties": { - "displayField": { - "type": "text" - }, - "displayValue": { - "type": "text" - }, - "field": { - "type": "text" - }, - "operator": { - "type": "text" - }, - "value": { - "type": "text" - } - } - }, - "type": { - "type": "text" - } - } - }, - "dateRange": { - "properties": { - "end": { - "type": "date" - }, - "start": { - "type": "date" - } - } - }, - "description": { - "type": "text" - }, - "eventType": { - "type": "keyword" - }, - "excludedRowRendererIds": { - "type": "text" - }, - "favorite": { - "properties": { - "favoriteDate": { - "type": "date" - }, - "fullName": { - "type": "text" - }, - "keySearch": { - "type": "text" - }, - "userName": { - "type": "text" - } - } - }, - "filters": { - "properties": { - "exists": { - "type": "text" - }, - "match_all": { - "type": "text" - }, - "meta": { - "properties": { - "alias": { - "type": "text" - }, - "controlledBy": { - "type": "text" - }, - "disabled": { - "type": "boolean" - }, - "field": { - "type": "text" - }, - "formattedValue": { - "type": "text" - }, - "index": { - "type": "keyword" - }, - "key": { - "type": "keyword" - }, - "negate": { - "type": "boolean" - }, - "params": { - "type": "text" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "text" - } - } - }, - "missing": { - "type": "text" - }, - "query": { - "type": "text" - }, - "range": { - "type": "text" - }, - "script": { - "type": "text" - } - } - }, - "kqlMode": { - "type": "keyword" - }, - "kqlQuery": { - "properties": { - "filterQuery": { - "properties": { - "kuery": { - "properties": { - "expression": { - "type": "text" - }, - "kind": { - "type": "keyword" - } - } - }, - "serializedQuery": { - "type": "text" - } - } - } - } - }, - "savedQueryId": { - "type": "keyword" - }, - "sort": { - "properties": { - "columnId": { - "type": "keyword" - }, - "sortDirection": { - "type": "keyword" - } - } - }, - "status": { - "type": "keyword" - }, - "templateTimelineId": { - "type": "text" - }, - "templateTimelineVersion": { - "type": "integer" - }, - "timelineType": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "siem-ui-timeline-note": { - "properties": { - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "eventId": { - "type": "keyword" - }, - "note": { - "type": "text" - }, - "timelineId": { - "type": "keyword" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "siem-ui-timeline-pinned-event": { - "properties": { - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "eventId": { - "type": "keyword" - }, - "timelineId": { - "type": "keyword" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "space": { - "properties": { - "_reserved": { - "type": "boolean" - }, - "color": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "disabledFeatures": { - "type": "keyword" - }, - "imageUrl": { - "index": false, - "type": "text" - }, - "initials": { - "type": "keyword" - }, - "name": { - "fields": { - "keyword": { - "ignore_above": 2048, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "telemetry": { - "properties": { - "allowChangingOptInStatus": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - }, - "lastReported": { - "type": "date" - }, - "lastVersionChecked": { - "type": "keyword" - }, - "reportFailureCount": { - "type": "integer" - }, - "reportFailureVersion": { - "type": "keyword" - }, - "sendUsageFrom": { - "type": "keyword" - }, - "userHasSeenNotice": { - "type": "boolean" - } - } - }, - "tsvb-validation-telemetry": { - "properties": { - "failedRequests": { - "type": "long" - } - } - }, - "type": { - "type": "keyword" - }, - "ui-metric": { - "properties": { - "count": { - "type": "integer" - } - } - }, - "updated_at": { - "type": "date" - }, - "upgrade-assistant-reindex-operation": { - "properties": { - "errorMessage": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "indexName": { - "type": "keyword" - }, - "lastCompletedStep": { - "type": "long" - }, - "locked": { - "type": "date" - }, - "newIndexName": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "reindexOptions": { - "properties": { - "openAndClose": { - "type": "boolean" - }, - "queueSettings": { - "properties": { - "queuedAt": { - "type": "long" - }, - "startedAt": { - "type": "long" - } - } - } - } - }, - "reindexTaskId": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "reindexTaskPercComplete": { - "type": "float" - }, - "runningReindexCount": { - "type": "integer" - }, - "status": { - "type": "integer" - } - } - }, - "upgrade-assistant-telemetry": { - "properties": { - "features": { - "properties": { - "deprecation_logging": { - "properties": { - "enabled": { - "null_value": true, - "type": "boolean" - } - } - } - } - }, - "ui_open": { - "properties": { - "cluster": { - "null_value": 0, - "type": "long" - }, - "indices": { - "null_value": 0, - "type": "long" - }, - "overview": { - "null_value": 0, - "type": "long" - } - } - }, - "ui_reindex": { - "properties": { - "close": { - "null_value": 0, - "type": "long" - }, - "open": { - "null_value": 0, - "type": "long" - }, - "start": { - "null_value": 0, - "type": "long" - }, - "stop": { - "null_value": 0, - "type": "long" - } - } - } - } - }, - "uptime-dynamic-settings": { - "dynamic": "false", - "type": "object" - }, - "url": { - "properties": { - "accessCount": { - "type": "long" - }, - "accessDate": { - "type": "date" - }, - "createDate": { - "type": "date" - }, - "url": { - "fields": { - "keyword": { - "ignore_above": 2048, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "visualization": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "index": false, - "type": "text" - } - } - }, - "savedSearchRefName": { - "doc_values": false, - "index": false, - "type": "keyword" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "index": false, - "type": "text" - }, - "version": { - "type": "integer" - }, - "visState": { - "index": false, - "type": "text" - } - } - }, - "workplace_search_telemetry": { - "dynamic": "false", - "type": "object" - } - } - }, - "settings": { - "index": { - "auto_expand_replicas": "0-1", - "number_of_replicas": "0", - "number_of_shards": "1" - } - } - } -} diff --git a/x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json b/x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json deleted file mode 100644 index e7c99521ff360..0000000000000 --- a/x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "type": "doc", - "value": { - "id": "task:e9c069d0-eea4-11ea-a285-352ee3aecffa", - "index": ".kibana_task_manager_1", - "source": { - "migrationVersion": { - "task": "7.6.0" - }, - "references": [ - ], - "task": { - "attempts": 0, - "params": "{\"alertId\":\"6ee9630a-a20e-44af-9465-217a3717d2ab\",\"spaceId\":\"space1\"}", - "retryAt": null, - "runAt": "2020-09-04T11:51:05.197Z", - "scheduledAt": "2020-09-04T11:51:05.197Z", - "scope": [ - "alerting" - ], - "startedAt": null, - "state": "{\"previousStartedAt\":null,\"alertTypeState\":{},\"alertInstances\":{}}", - "status": "idle", - "taskType": "alerting:test.always-firing" - }, - "type": "task", - "updated_at": "2020-09-04T11:51:05.197Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "task:e39a02f0-eea4-11ea-a285-352ee3aecffa", - "index": ".kibana_task_manager_1", - "source": { - "migrationVersion": { - "task": "7.6.0" - }, - "references": [ - ], - "task": { - "attempts": 0, - "ownerId": null, - "params": "{\"alertId\":\"b384be60-ec53-4b26-857e-0253ee55b277\",\"spaceId\":\"space1\"}", - "retryAt": null, - "runAt": "2020-09-04T11:51:04.804Z", - "scheduledAt": "2020-09-04T11:50:54.879Z", - "scope": [ - "alerting" - ], - "startedAt": null, - "state": "{\"previousStartedAt\":null,\"alertTypeState\":{},\"alertInstances\":{}}", - "status": "idle", - "taskType": "alerting:test.always-firing" - }, - "type": "task", - "updated_at": "2020-09-04T11:51:04.273Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "task:e8885f00-eea4-11ea-a285-352ee3aecffa", - "index": ".kibana_task_manager_1", - "source": { - "migrationVersion": { - "task": "7.6.0" - }, - "references": [ - ], - "task": { - "attempts": 1, - "ownerId": "kibana:5b2de169-2785-441b-ae8c-186a1936b17d", - "params": "{\"alertId\":\"5cc59319-74ee-4edc-8646-a79ea91067cd\",\"spaceId\":\"space1\"}", - "retryAt": "2020-09-04T12:01:05.793Z", - "runAt": "2020-09-04T11:51:03.152Z", - "scheduledAt": "2020-09-04T11:51:03.152Z", - "scope": [ - "alerting" - ], - "startedAt": "2020-09-04T11:51:05.793Z", - "state": "{\"previousStartedAt\":null,\"alertTypeState\":{},\"alertInstances\":{}}", - "status": "running", - "taskType": "alerting:test.always-firing" - }, - "type": "task", - "updated_at": "2020-09-04T11:51:05.794Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "task:e616c2c0-eea4-11ea-a285-352ee3aecffa", - "index": ".kibana_task_manager_1", - "source": { - "migrationVersion": { - "task": "7.6.0" - }, - "references": [ - ], - "task": { - "attempts": 1, - "ownerId": "kibana:5b2de169-2785-441b-ae8c-186a1936b17d", - "params": "{\"alertId\":\"d41a6abb-b93b-46df-a80a-926221ea847c\",\"spaceId\":\"space1\"}", - "retryAt": "2020-09-04T12:01:05.793Z", - "runAt": "2020-09-04T11:51:04.804Z", - "scheduledAt": "2020-09-04T11:50:59.052Z", - "scope": [ - "alerting" - ], - "startedAt": "2020-09-04T11:51:05.793Z", - "state": "{\"previousStartedAt\":null,\"alertTypeState\":{},\"alertInstances\":{}}", - "status": "idle", - "taskType": "alerting:test.always-firing" - }, - "type": "task", - "updated_at": "2020-09-04T11:51:05.794Z" - } - } -} - -{ - "type": "doc", - "value": { - "id": "task:e4df5430-eea4-11ea-a285-352ee3aecffa", - "index": ".kibana_task_manager_1", - "source": { - "migrationVersion": { - "task": "7.6.0" - }, - "references": [ - ], - "task": { - "attempts": 1, - "ownerId": "kibana:5b2de169-2785-441b-ae8c-186a1936b17d", - "params": "{\"alertId\":\"362e362b-a137-4aa2-9434-43e3d0d84a34\",\"spaceId\":\"space1\"}", - "retryAt": "2020-09-04T12:01:05.793Z", - "runAt": "2020-09-04T11:51:04.804Z", - "scheduledAt": "2020-09-04T11:50:57.011Z", - "scope": [ - "alerting" - ], - "startedAt": "2020-09-04T11:51:05.793Z", - "state": "{\"previousStartedAt\":null,\"alertTypeState\":{},\"alertInstances\":{}}", - "status": "running", - "taskType": "alerting:test.always-firing" - }, - "type": "task", - "updated_at": "2020-09-04T11:51:05.794Z" - } - } -} diff --git a/x-pack/test/functional/es_archives/alerts_legacy/tasks/mappings.json b/x-pack/test/functional/es_archives/alerts_legacy/tasks/mappings.json deleted file mode 100644 index d139264b8de93..0000000000000 --- a/x-pack/test/functional/es_archives/alerts_legacy/tasks/mappings.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "type": "index", - "value": { - "aliases": { - ".kibana_task_manager": { - } - }, - "index": ".kibana_task_manager_1", - "mappings": { - "_meta": { - "migrationMappingPropertyHashes": { - "migrationVersion": "4a1746014a75ade3a714e1db5763276f", - "namespace": "2f4316de49999235636386fe51dc06c1", - "namespaces": "2f4316de49999235636386fe51dc06c1", - "references": "7997cf5a56cc02bdc9c93361bde732b0", - "task": "235412e52d09e7165fac8a67a43ad6b4", - "type": "2f4316de49999235636386fe51dc06c1", - "updated_at": "00da57df13e94e9d98437d13ace4bfe0" - } - }, - "dynamic": "strict", - "properties": { - "migrationVersion": { - "dynamic": "true", - "properties": { - "task": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "namespace": { - "type": "keyword" - }, - "namespaces": { - "type": "keyword" - }, - "references": { - "properties": { - "id": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - }, - "type": "nested" - }, - "task": { - "properties": { - "attempts": { - "type": "integer" - }, - "ownerId": { - "type": "keyword" - }, - "params": { - "type": "text" - }, - "retryAt": { - "type": "date" - }, - "runAt": { - "type": "date" - }, - "schedule": { - "properties": { - "interval": { - "type": "keyword" - } - } - }, - "scheduledAt": { - "type": "date" - }, - "scope": { - "type": "keyword" - }, - "startedAt": { - "type": "date" - }, - "state": { - "type": "text" - }, - "status": { - "type": "keyword" - }, - "taskType": { - "type": "keyword" - }, - "user": { - "type": "keyword" - } - } - }, - "type": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - } - } - }, - "settings": { - "index": { - "auto_expand_replicas": "0-1", - "number_of_replicas": "0", - "number_of_shards": "1" - } - } - } -} diff --git a/x-pack/test/functional/es_archives/beats/list/data.json b/x-pack/test/functional/es_archives/beats/list/data.json deleted file mode 100644 index c2c4aba83a1c6..0000000000000 --- a/x-pack/test/functional/es_archives/beats/list/data.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "value": { - "id": "beat:qux", - "index": ".management-beats", - "source": { - "beat": { - "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI", - "active": true, - "host_ip": "1.2.3.4", - "host_name": "foo.bar.com", - "id": "qux", - "name": "qux_filebeat", - "type": "filebeat" - }, - "type": "beat" - } - } -} - -{ - "value": { - "id": "beat:baz", - "index": ".management-beats", - "source": { - "beat": { - "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI", - "active": true, - "host_ip": "22.33.11.44", - "host_name": "baz.bar.com", - "id": "baz", - "name": "baz_metricbeat", - "type": "metricbeat" - }, - "type": "beat" - } - } -} - -{ - "value": { - "id": "beat:foo", - "index": ".management-beats", - "source": { - "beat": { - "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI", - "active": true, - "host_ip": "1.2.3.4", - "host_name": "foo.bar.com", - "id": "foo", - "name": "foo_metricbeat", - "tags": [ - "production", - "qa" - ], - "type": "metricbeat", - "verified_on": "2018-05-15T16:25:38.924Z" - }, - "type": "beat" - } - } -} - -{ - "value": { - "id": "beat:bar", - "index": ".management-beats", - "source": { - "beat": { - "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI", - "active": true, - "host_ip": "11.22.33.44", - "host_name": "foo.com", - "id": "bar", - "name": "bar_filebeat", - "type": "filebeat" - }, - "type": "beat" - } - } -} - -{ - "value": { - "id": "tag:production", - "index": ".management-beats", - "source": { - "tag": { - "color": "blue" - }, - "type": "tag" - } - } -} - -{ - "value": { - "id": "tag:development", - "index": ".management-beats", - "source": { - "tag": { - "color": "red" - }, - "type": "tag" - } - } -} - -{ - "value": { - "id": "tag:qa", - "index": ".management-beats", - "source": { - "tag": { - "color": "green" - }, - "type": "tag" - } - } -} - -{ - "value": { - "id": "configuration_block:SDfsdfIBdsfsf50zbta", - "index": ".management-beats", - "source": { - "configuration_block": { - "config": "{ \"username\": \"some-username\", \"hosts\": [\"localhost:11211\"] }", - "description": "some description", - "last_updated": "2018-05-15T16:25:38.924Z", - "tag": "production", - "type": "output" - }, - "type": "configuration_block" - }, - "type": "_doc" - } -} - -{ - "value": { - "id": "configuration_block:W0tpsmIBdsfsf50zbta", - "index": ".management-beats", - "source": { - "configuration_block": { - "config": "{ \"module\": \"memcached\", \"hosts\": [\"localhost:11211\"] }", - "last_updated": "2018-05-15T16:25:38.924Z", - "tag": "production", - "type": "metricbeat.modules" - }, - "type": "configuration_block" - }, - "type": "_doc" - } -} - -{ - "value": { - "id": "configuration_block:W0tpsmIBdwcYyG50zbta", - "index": ".management-beats", - "source": { - "configuration_block": { - "config": "{\"module\": \"memcached\", \"node.namespace\": \"node\", \"hosts\": [\"localhost:4949\"] }", - "last_updated": "2018-05-15T16:25:38.924Z", - "tag": "qa", - "type": "metricbeat.modules" - }, - "type": "configuration_block" - }, - "type": "_doc" - } -} \ No newline at end of file diff --git a/x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json b/x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json deleted file mode 100644 index bf91e696174f6..0000000000000 --- a/x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "1", - "source": { - "event.kind" : "event", - "@timestamp": "2020-12-16T15:16:18.570Z", - "message": "hello world 1", - "orchestrator.namespace": "namespace", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "2", - "source": { - "event.kind" : "event", - "@timestamp": "2020-12-16T15:16:18.570Z", - "message": "hello world 1", - "orchestrator.namespace": "namespace", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "3", - "source": { - "event.kind" : "event", - "@timestamp": "2020-12-16T15:16:19.570Z", - "message": "hello world 1", - "orchestrator.namespace": "namespace02", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "4", - "source": { - "event.kind" : "event", - "@timestamp": "2020-12-16T15:16:20.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace02", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "2" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "5", - "source": { - "event.kind" : "event", - "@timestamp": "2020-12-16T15:16:21.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace03", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "6", - "source": { - "@timestamp": "2020-12-16T15:16:22.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace03", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "7", - "source": { - "@timestamp": "2020-12-16T15:16:23.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace04", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "8", - "source": { - "@timestamp": "2020-12-16T15:16:24.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace05", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "9", - "source": { - "@timestamp": "2020-12-16T15:16:25.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace06", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "10", - "source": { - "@timestamp": "2020-12-16T15:16:26.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace07", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "11", - "source": { - "@timestamp": "2020-12-16T15:16:27.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace08", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "12", - "source": { - "@timestamp": "2020-12-16T15:16:28.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace09", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "13", - "source": { - "@timestamp": "2020-12-16T15:16:29.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace10", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "14", - "source": { - "@timestamp": "2020-12-16T15:16:30.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace11", - "container.image.name": "debian11", - "process.entry_leader.entity_id": "1" - } - } -} - -{ - "type": "doc", - "value": { - "index": "kubernetes-test-index", - "id": "15", - "source": { - "@timestamp": "2020-12-16T15:16:31.570Z", - "message": "hello world security", - "orchestrator.namespace": "namespace09", - "process.entry_leader.entity_id": "1" - } - } -} diff --git a/x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json b/x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json deleted file mode 100644 index 06a34e1295449..0000000000000 --- a/x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "index", - "value": { - "index": "kubernetes-test-index", - "mappings": { - "properties": { - "message": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 256 - } - } - }, - "orchestrator.namespace": { - "type": "keyword", - "ignore_above": 256 - }, - "container.image.name": { - "type": "keyword", - "ignore_above": 256 - }, - "process.entry_leader.entity_id": { - "type": "keyword", - "ignore_above": 256 - } - } - } - } -} - diff --git a/x-pack/test/functional/es_archives/lists/data.json b/x-pack/test/functional/es_archives/lists/data.json deleted file mode 100644 index eabc721f4887e..0000000000000 --- a/x-pack/test/functional/es_archives/lists/data.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "doc", - "value": { - "id": "exception-list-agnostic:1", - "index": ".kibana", - "source": { - "type": "exception-list-agnostic", - "exception-list-agnostic": { - "_tags": [ - "endpoint", - "process", - "malware", - "os:linux" - ], - "created_at": "2020-04-23T00:19:13.289Z", - "created_by": "user_name", - "description": "This is a sample endpoint type exception list", - "list_id": "endpoint_list", - "list_type": "list", - "name": "Sample Endpoint Exception List", - "tags": [ - "user added string for a tag", - "malware" - ], - "tie_breaker_id": "77fd1909-6786-428a-a671-30229a719c1f", - "type": "endpoint", - "updated_by": "user_name" - } - } - } -} - -{ - "type": "doc", - "value": { - "id": "exception-list-agnostic:2", - "index": ".kibana", - "source": { - "type": "exception-list-agnostic", - "exception-list-agnostic": { - "_tags": [ - "endpoint", - "process", - "malware", - "os:linux" - ], - "comments": [], - "created_at": "2020-04-23T00:19:13.289Z", - "created_by": "user_name", - "description": "This is a sample endpoint type exception", - "entries": [ - { - "entries": [ - { - "field": "nested.field", - "operator": "included", - "type": "match", - "value": "some value" - } - ], - "field": "some.parentField", - "type": "nested" - }, - { - "field": "some.not.nested.field", - "operator": "included", - "type": "match", - "value": "some value" - } - ], - "item_id": "endpoint_list_item", - "list_id": "endpoint_list", - "list_type": "item", - "name": "Sample Endpoint Exception List", - "tags": [ - "user added string for a tag", - "malware" - ], - "tie_breaker_id": "77fd1909-6786-428a-a671-30229a719c1f", - "type": "simple", - "updated_by": "user_name" - } - } - } -} \ No newline at end of file diff --git a/x-pack/test/functional/es_archives/lists/mappings.json b/x-pack/test/functional/es_archives/lists/mappings.json deleted file mode 100644 index e687285f91b29..0000000000000 --- a/x-pack/test/functional/es_archives/lists/mappings.json +++ /dev/null @@ -1,2461 +0,0 @@ -{ - "type": "index", - "value": { - "aliases": { - ".kibana": {} - }, - "index": ".kibana_1", - "mappings": { - "dynamic": "strict", - "_meta": { - "migrationMappingPropertyHashes": { - "ml-telemetry": "257fd1d4b4fdbb9cb4b8a3b27da201e9", - "visualization": "52d7a13ad68a150c4525b292d23e12cc", - "endpoint:user-artifact": "4a11183eee21e6fbad864f7a30b39ad0", - "references": "7997cf5a56cc02bdc9c93361bde732b0", - "graph-workspace": "cd7ba1330e6682e9cc00b78850874be1", - "epm-packages": "04696e7dba1b9597f7d6ed78a4a76658", - "type": "2f4316de49999235636386fe51dc06c1", - "space": "c5ca8acafa0beaa4d08d014a97b6bc6b", - "infrastructure-ui-source": "2b2809653635caf490c93f090502d04c", - "ingest_manager_settings": "012cf278ec84579495110bb827d1ed09", - "application_usage_totals": "3d1b76c39bfb2cc8296b024d73854724", - "action": "6e96ac5e648f57523879661ea72525b7", - "dashboard": "d00f614b29a80360e1190193fd333bab", - "metrics-explorer-view": "a8df1d270ee48c969d22d23812d08187", - "siem-detection-engine-rule-actions": "6569b288c169539db10cb262bf79de18", - "query": "11aaeb7f5f7fa5bb43f25e18ce26e7d9", - "file-upload-telemetry": "0ed4d3e1983d1217a30982630897092e", - "application_usage_transactional": "43b8830d5d0df85a6823d290885fc9fd", - "action_task_params": "a9d49f184ee89641044be0ca2950fa3a", - "fleet-agent-events": "3231653fafe4ef3196fe3b32ab774bf2", - "apm-indices": "9bb9b2bf1fa636ed8619cbab5ce6a1dd", - "inventory-view": "88fc7e12fd1b45b6f0787323ce4f18d2", - "upgrade-assistant-reindex-operation": "296a89039fc4260292be36b1b005d8f2", - "canvas-workpad-template": "ae2673f678281e2c055d764b153e9715", - "cases-comments": "c2061fb929f585df57425102fa928b4b", - "fleet-enrollment-api-keys": "28b91e20b105b6f928e2012600085d8f", - "canvas-element": "7390014e1091044523666d97247392fc", - "ingest-outputs": "8aa988c376e65443fefc26f1075e93a3", - "telemetry": "36a616f7026dfa617d6655df850fe16d", - "upgrade-assistant-telemetry": "56702cec857e0a9dacfb696655b4ff7b", - "lens-ui-telemetry": "509bfa5978586998e05f9e303c07a327", - "namespaces": "2f4316de49999235636386fe51dc06c1", - "siem-ui-timeline-note": "8874706eedc49059d4cf0f5094559084", - "lens": "d33c68a69ff1e78c9888dedd2164ac22", - "exception-list-agnostic": "4818e7dfc3e538562c80ec34eb6f841b", - "sample-data-telemetry": "7d3cfeb915303c9641c59681967ffeb4", - "fleet-agent-actions": "e520c855577170c24481be05c3ae14ec", - "exception-list": "4818e7dfc3e538562c80ec34eb6f841b", - "app_search_telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "search": "5c4b9a6effceb17ae8a0ab22d0c49767", - "updated_at": "00da57df13e94e9d98437d13ace4bfe0", - "cases-configure": "42711cbb311976c0687853f4c1354572", - "canvas-workpad": "b0a1706d356228dbdcb4a17e6b9eb231", - "alert": "7b44fba6773e37c806ce290ea9b7024e", - "siem-detection-engine-rule-status": "ae783f41c6937db6b7a2ef5c93a9e9b0", - "map": "4a05b35c3a3a58fbc72dd0202dc3487f", - "uptime-dynamic-settings": "fcdb453a30092f022f2642db29523d80", - "cases": "32aa96a6d3855ddda53010ae2048ac22", - "apm-telemetry": "3d1b76c39bfb2cc8296b024d73854724", - "siem-ui-timeline": "94bc38c7a421d15fbfe8ea565370a421", - "kql-telemetry": "d12a98a6f19a2d273696597547e064ee", - "ui-metric": "0d409297dc5ebe1e3a1da691c6ee32e3", - "ingest-agent-policies": "9326f99c977fd2ef5ab24b6336a0675c", - "url": "c7f66a0df8b1b52f17c28c4adb111105", - "endpoint:user-artifact-manifest": "a0d7b04ad405eed54d76e279c3727862", - "migrationVersion": "4a1746014a75ade3a714e1db5763276f", - "index-pattern": "66eccb05066c5a89924f48a9e9736499", - "fleet-agents": "034346488514b7058a79140b19ddf631", - "maps-telemetry": "5ef305b18111b77789afefbd36b66171", - "namespace": "2f4316de49999235636386fe51dc06c1", - "cases-user-actions": "32277330ec6b721abe3b846cfd939a71", - "ingest-package-policies": "48e8bd97e488008e21c0b5a2367b83ad", - "siem-ui-timeline-pinned-event": "20638091112f0e14f0e443d512301c29", - "config": "c63748b75f39d0c54de12d12c1ccbc20", - "tsvb-validation-telemetry": "3a37ef6c8700ae6fc97d5c7da00e9215", - "workplace_search_telemetry": "3d1b76c39bfb2cc8296b024d73854724" - } - }, - "properties": { - "action": { - "properties": { - "actionTypeId": { - "type": "keyword" - }, - "config": { - "type": "object", - "enabled": false - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "secrets": { - "type": "binary" - } - } - }, - "action_task_params": { - "properties": { - "actionId": { - "type": "keyword" - }, - "apiKey": { - "type": "binary" - }, - "params": { - "type": "object", - "enabled": false - } - } - }, - "alert": { - "properties": { - "actions": { - "type": "nested", - "properties": { - "actionRef": { - "type": "keyword" - }, - "actionTypeId": { - "type": "keyword" - }, - "group": { - "type": "keyword" - }, - "params": { - "type": "object", - "enabled": false - } - } - }, - "alertTypeId": { - "type": "keyword" - }, - "apiKey": { - "type": "binary" - }, - "apiKeyOwner": { - "type": "keyword" - }, - "consumer": { - "type": "keyword" - }, - "createdAt": { - "type": "date" - }, - "createdBy": { - "type": "keyword" - }, - "enabled": { - "type": "boolean" - }, - "muteAll": { - "type": "boolean" - }, - "mutedInstanceIds": { - "type": "keyword" - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "params": { - "type": "object", - "enabled": false - }, - "schedule": { - "properties": { - "interval": { - "type": "keyword" - } - } - }, - "scheduledTaskId": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "throttle": { - "type": "keyword" - }, - "updatedBy": { - "type": "keyword" - } - } - }, - "apm-indices": { - "properties": { - "error": { - "type": "keyword" - }, - "metric": { - "type": "keyword" - }, - "onboarding": { - "type": "keyword" - }, - "sourcemap": { - "type": "keyword" - }, - "span": { - "type": "keyword" - }, - "transaction": { - "type": "keyword" - } - } - }, - "apm-telemetry": { - "type": "object", - "dynamic": "false" - }, - "app_search_telemetry": { - "type": "object", - "dynamic": "false" - }, - "application_usage_totals": { - "type": "object", - "dynamic": "false" - }, - "application_usage_transactional": { - "dynamic": "false", - "properties": { - "timestamp": { - "type": "date" - } - } - }, - "canvas-element": { - "dynamic": "false", - "properties": { - "@created": { - "type": "date" - }, - "@timestamp": { - "type": "date" - }, - "content": { - "type": "text" - }, - "help": { - "type": "text" - }, - "image": { - "type": "text" - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - } - } - }, - "canvas-workpad": { - "dynamic": "false", - "properties": { - "@created": { - "type": "date" - }, - "@timestamp": { - "type": "date" - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - } - } - }, - "canvas-workpad-template": { - "dynamic": "false", - "properties": { - "help": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "tags": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "template_key": { - "type": "keyword" - } - } - }, - "cases": { - "properties": { - "closed_at": { - "type": "date" - }, - "closed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "connector_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "description": { - "type": "text" - }, - "external_service": { - "properties": { - "connector_id": { - "type": "keyword" - }, - "connector_name": { - "type": "keyword" - }, - "external_id": { - "type": "keyword" - }, - "external_title": { - "type": "text" - }, - "external_url": { - "type": "text" - }, - "pushed_at": { - "type": "date" - }, - "pushed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "status": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "title": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-comments": { - "properties": { - "comment": { - "type": "text" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "pushed_at": { - "type": "date" - }, - "pushed_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-configure": { - "properties": { - "closure_type": { - "type": "keyword" - }, - "connector_id": { - "type": "keyword" - }, - "connector_name": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - } - } - }, - "cases-user-actions": { - "properties": { - "action": { - "type": "keyword" - }, - "action_at": { - "type": "date" - }, - "action_by": { - "properties": { - "email": { - "type": "keyword" - }, - "full_name": { - "type": "keyword" - }, - "username": { - "type": "keyword" - } - } - }, - "action_field": { - "type": "keyword" - }, - "new_value": { - "type": "text" - }, - "old_value": { - "type": "text" - } - } - }, - "config": { - "dynamic": "false", - "properties": { - "buildNum": { - "type": "keyword" - } - } - }, - "dashboard": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "optionsJSON": { - "type": "text" - }, - "panelsJSON": { - "type": "text" - }, - "refreshInterval": { - "properties": { - "display": { - "type": "keyword" - }, - "pause": { - "type": "boolean" - }, - "section": { - "type": "integer" - }, - "value": { - "type": "integer" - } - } - }, - "timeFrom": { - "type": "keyword" - }, - "timeRestore": { - "type": "boolean" - }, - "timeTo": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "endpoint:user-artifact": { - "properties": { - "body": { - "type": "binary" - }, - "compressionAlgorithm": { - "type": "keyword", - "index": false - }, - "created": { - "type": "date", - "index": false - }, - "decodedSha256": { - "type": "keyword", - "index": false - }, - "decodedSize": { - "type": "long", - "index": false - }, - "encodedSha256": { - "type": "keyword" - }, - "encodedSize": { - "type": "long", - "index": false - }, - "encryptionAlgorithm": { - "type": "keyword", - "index": false - }, - "identifier": { - "type": "keyword" - } - } - }, - "endpoint:user-artifact-manifest": { - "properties": { - "created": { - "type": "date", - "index": false - }, - "schemaVersion": { - "type": "keyword" - }, - "semanticVersion": { - "index": false, - "type": "keyword" - }, - "artifacts": { - "type": "nested", - "properties": { - "policyId": { - "type": "keyword", - "index": false - }, - "artifactId": { - "type": "keyword", - "index": false - } - } - } - } - }, - "epm-packages": { - "properties": { - "es_index_patterns": { - "type": "object", - "enabled": false - }, - "installed": { - "type": "nested", - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "internal": { - "type": "boolean" - }, - "name": { - "type": "keyword" - }, - "removable": { - "type": "boolean" - }, - "version": { - "type": "keyword" - } - } - }, - "exception-list": { - "properties": { - "_tags": { - "type": "keyword" - }, - "comments": { - "properties": { - "comment": { - "type": "keyword" - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "updated_at": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "keyword" - }, - "entries": { - "properties": { - "entries": { - "properties": { - "field": { - "type": "keyword" - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "keyword", - "fields": { - "text": { - "type": "text" - } - } - } - } - }, - "field": { - "type": "keyword" - }, - "list": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "keyword", - "fields": { - "text": { - "type": "text" - } - } - } - } - }, - "item_id": { - "type": "keyword" - }, - "list_id": { - "type": "keyword" - }, - "list_type": { - "type": "keyword" - }, - "meta": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "tie_breaker_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "exception-list-agnostic": { - "properties": { - "_tags": { - "type": "keyword" - }, - "comments": { - "properties": { - "comment": { - "type": "keyword" - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "updated_at": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "created_at": { - "type": "keyword" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "keyword" - }, - "entries": { - "properties": { - "entries": { - "properties": { - "field": { - "type": "keyword" - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "keyword", - "fields": { - "text": { - "type": "text" - } - } - } - } - }, - "field": { - "type": "keyword" - }, - "list": { - "properties": { - "id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "operator": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "keyword", - "fields": { - "text": { - "type": "text" - } - } - } - } - }, - "item_id": { - "type": "keyword" - }, - "list_id": { - "type": "keyword" - }, - "list_type": { - "type": "keyword" - }, - "meta": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "tags": { - "type": "keyword" - }, - "tie_breaker_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "file-upload-telemetry": { - "properties": { - "filesUploadedTotalCount": { - "type": "long" - } - } - }, - "fleet-agent-actions": { - "properties": { - "agent_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "data": { - "type": "binary" - }, - "sent_at": { - "type": "date" - }, - "type": { - "type": "keyword" - } - } - }, - "fleet-agent-events": { - "properties": { - "action_id": { - "type": "keyword" - }, - "agent_id": { - "type": "keyword" - }, - "policy_id": { - "type": "keyword" - }, - "data": { - "type": "text" - }, - "message": { - "type": "text" - }, - "payload": { - "type": "text" - }, - "stream_id": { - "type": "keyword" - }, - "subtype": { - "type": "keyword" - }, - "timestamp": { - "type": "date" - }, - "type": { - "type": "keyword" - } - } - }, - "fleet-agents": { - "properties": { - "access_api_key_id": { - "type": "keyword" - }, - "active": { - "type": "boolean" - }, - "policy_id": { - "type": "keyword" - }, - "policy_revision": { - "type": "integer" - }, - "current_error_events": { - "type": "text", - "index": false - }, - "default_api_key": { - "type": "binary" - }, - "default_api_key_id": { - "type": "keyword" - }, - "enrolled_at": { - "type": "date" - }, - "last_checkin": { - "type": "date" - }, - "last_checkin_status": { - "type": "keyword" - }, - "last_updated": { - "type": "date" - }, - "local_metadata": { - "type": "flattened" - }, - "packages": { - "type": "keyword" - }, - "shared_id": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "unenrolled_at": { - "type": "date" - }, - "unenrollment_started_at": { - "type": "date" - }, - "updated_at": { - "type": "date" - }, - "user_provided_metadata": { - "type": "flattened" - }, - "version": { - "type": "keyword" - } - } - }, - "fleet-enrollment-api-keys": { - "properties": { - "active": { - "type": "boolean" - }, - "api_key": { - "type": "binary" - }, - "api_key_id": { - "type": "keyword" - }, - "policy_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "expire_at": { - "type": "date" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - } - } - }, - "graph-workspace": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "numLinks": { - "type": "integer" - }, - "numVertices": { - "type": "integer" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - }, - "wsState": { - "type": "text" - } - } - }, - "index-pattern": { - "properties": { - "fieldFormatMap": { - "type": "text" - }, - "fields": { - "type": "text" - }, - "intervalName": { - "type": "keyword" - }, - "notExpandable": { - "type": "boolean" - }, - "sourceFilters": { - "type": "text" - }, - "timeFieldName": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "type": { - "type": "keyword" - }, - "typeMeta": { - "type": "keyword" - } - } - }, - "infrastructure-ui-source": { - "properties": { - "description": { - "type": "text" - }, - "fields": { - "properties": { - "container": { - "type": "keyword" - }, - "host": { - "type": "keyword" - }, - "pod": { - "type": "keyword" - }, - "tiebreaker": { - "type": "keyword" - }, - "timestamp": { - "type": "keyword" - } - } - }, - "inventoryDefaultView": { - "type": "keyword" - }, - "logAlias": { - "type": "keyword" - }, - "logColumns": { - "type": "nested", - "properties": { - "fieldColumn": { - "properties": { - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - } - } - }, - "messageColumn": { - "properties": { - "id": { - "type": "keyword" - } - } - }, - "timestampColumn": { - "properties": { - "id": { - "type": "keyword" - } - } - } - } - }, - "metricAlias": { - "type": "keyword" - }, - "metricsExplorerDefaultView": { - "type": "keyword" - }, - "name": { - "type": "text" - } - } - }, - "ingest-agent-policies": { - "properties": { - "description": { - "type": "text" - }, - "is_default": { - "type": "boolean" - }, - "monitoring_enabled": { - "type": "keyword", - "index": false - }, - "name": { - "type": "keyword" - }, - "namespace": { - "type": "keyword" - }, - "package_policies": { - "type": "keyword" - }, - "revision": { - "type": "integer" - }, - "status": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "ingest-outputs": { - "properties": { - "ca_sha256": { - "type": "keyword", - "index": false - }, - "config": { - "type": "flattened" - }, - "fleet_enroll_password": { - "type": "binary" - }, - "fleet_enroll_username": { - "type": "binary" - }, - "hosts": { - "type": "keyword" - }, - "is_default": { - "type": "boolean" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "ingest-package-policies": { - "properties": { - "policy_id": { - "type": "keyword" - }, - "created_at": { - "type": "date" - }, - "created_by": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "enabled": { - "type": "boolean" - }, - "inputs": { - "type": "nested", - "enabled": false, - "properties": { - "config": { - "type": "flattened" - }, - "enabled": { - "type": "boolean" - }, - "streams": { - "type": "nested", - "properties": { - "compiled_stream": { - "type": "flattened" - }, - "config": { - "type": "flattened" - }, - "data_stream": { - "properties": { - "dataset": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "enabled": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "vars": { - "type": "flattened" - } - } - }, - "type": { - "type": "keyword" - }, - "vars": { - "type": "flattened" - } - } - }, - "name": { - "type": "keyword" - }, - "namespace": { - "type": "keyword" - }, - "output_id": { - "type": "keyword" - }, - "package": { - "properties": { - "name": { - "type": "keyword" - }, - "title": { - "type": "keyword" - }, - "version": { - "type": "keyword" - } - } - }, - "revision": { - "type": "integer" - }, - "updated_at": { - "type": "date" - }, - "updated_by": { - "type": "keyword" - } - } - }, - "ingest_manager_settings": { - "properties": { - "agent_auto_upgrade": { - "type": "keyword" - }, - "has_seen_add_data_notice": { - "type": "boolean", - "index": false - }, - "kibana_ca_sha256": { - "type": "keyword" - }, - "kibana_url": { - "type": "keyword" - }, - "package_auto_upgrade": { - "type": "keyword" - } - } - }, - "inventory-view": { - "properties": { - "accountId": { - "type": "keyword" - }, - "autoBounds": { - "type": "boolean" - }, - "autoReload": { - "type": "boolean" - }, - "boundsOverride": { - "properties": { - "max": { - "type": "integer" - }, - "min": { - "type": "integer" - } - } - }, - "customMetrics": { - "type": "nested", - "properties": { - "aggregation": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "label": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "customOptions": { - "type": "nested", - "properties": { - "field": { - "type": "keyword" - }, - "text": { - "type": "keyword" - } - } - }, - "filterQuery": { - "properties": { - "expression": { - "type": "keyword" - }, - "kind": { - "type": "keyword" - } - } - }, - "groupBy": { - "type": "nested", - "properties": { - "field": { - "type": "keyword" - }, - "label": { - "type": "keyword" - } - } - }, - "legend": { - "properties": { - "palette": { - "type": "keyword" - }, - "reverseColors": { - "type": "boolean" - }, - "steps": { - "type": "long" - } - } - }, - "metric": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "label": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "name": { - "type": "keyword" - }, - "nodeType": { - "type": "keyword" - }, - "region": { - "type": "keyword" - }, - "sort": { - "properties": { - "by": { - "type": "keyword" - }, - "direction": { - "type": "keyword" - } - } - }, - "time": { - "type": "long" - }, - "view": { - "type": "keyword" - } - } - }, - "kql-telemetry": { - "properties": { - "optInCount": { - "type": "long" - }, - "optOutCount": { - "type": "long" - } - } - }, - "lens": { - "properties": { - "description": { - "type": "text" - }, - "expression": { - "type": "keyword", - "index": false - }, - "state": { - "type": "flattened" - }, - "title": { - "type": "text" - }, - "visualizationType": { - "type": "keyword" - } - } - }, - "lens-ui-telemetry": { - "properties": { - "count": { - "type": "integer" - }, - "date": { - "type": "date" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "map": { - "properties": { - "description": { - "type": "text" - }, - "layerListJSON": { - "type": "text" - }, - "mapStateJSON": { - "type": "text" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "maps-telemetry": { - "type": "object", - "enabled": false - }, - "metrics-explorer-view": { - "properties": { - "chartOptions": { - "properties": { - "stack": { - "type": "boolean" - }, - "type": { - "type": "keyword" - }, - "yAxisMode": { - "type": "keyword" - } - } - }, - "currentTimerange": { - "properties": { - "from": { - "type": "keyword" - }, - "interval": { - "type": "keyword" - }, - "to": { - "type": "keyword" - } - } - }, - "name": { - "type": "keyword" - }, - "options": { - "properties": { - "aggregation": { - "type": "keyword" - }, - "filterQuery": { - "type": "keyword" - }, - "forceInterval": { - "type": "boolean" - }, - "groupBy": { - "type": "keyword" - }, - "limit": { - "type": "integer" - }, - "metrics": { - "type": "nested", - "properties": { - "aggregation": { - "type": "keyword" - }, - "color": { - "type": "keyword" - }, - "field": { - "type": "keyword" - }, - "label": { - "type": "keyword" - } - } - }, - "source": { - "type": "keyword" - } - } - } - } - }, - "migrationVersion": { - "dynamic": "true", - "properties": { - "config": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 256 - } - } - }, - "space": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 256 - } - } - } - } - }, - "ml-telemetry": { - "properties": { - "file_data_visualizer": { - "properties": { - "index_creation_count": { - "type": "long" - } - } - } - } - }, - "namespace": { - "type": "keyword" - }, - "namespaces": { - "type": "keyword" - }, - "query": { - "properties": { - "description": { - "type": "text" - }, - "filters": { - "type": "object", - "enabled": false - }, - "query": { - "properties": { - "language": { - "type": "keyword" - }, - "query": { - "type": "keyword", - "index": false - } - } - }, - "timefilter": { - "type": "object", - "enabled": false - }, - "title": { - "type": "text" - } - } - }, - "references": { - "type": "nested", - "properties": { - "id": { - "type": "keyword" - }, - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - } - } - }, - "sample-data-telemetry": { - "properties": { - "installCount": { - "type": "long" - }, - "unInstallCount": { - "type": "long" - } - } - }, - "search": { - "properties": { - "columns": { - "type": "keyword", - "index": false - }, - "description": { - "type": "text" - }, - "hits": { - "type": "integer", - "index": false - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text", - "index": false - } - } - }, - "sort": { - "type": "keyword", - "index": false - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "siem-detection-engine-rule-actions": { - "properties": { - "actions": { - "properties": { - "action_type_id": { - "type": "keyword" - }, - "group": { - "type": "keyword" - }, - "id": { - "type": "keyword" - }, - "params": { - "type": "object", - "enabled": false - } - } - }, - "alertThrottle": { - "type": "keyword" - }, - "ruleAlertId": { - "type": "keyword" - }, - "ruleThrottle": { - "type": "keyword" - } - } - }, - "siem-detection-engine-rule-status": { - "properties": { - "alertId": { - "type": "keyword" - }, - "bulkCreateTimeDurations": { - "type": "float" - }, - "gap": { - "type": "text" - }, - "lastFailureAt": { - "type": "date" - }, - "lastFailureMessage": { - "type": "text" - }, - "lastLookBackDate": { - "type": "date" - }, - "lastSuccessAt": { - "type": "date" - }, - "lastSuccessMessage": { - "type": "text" - }, - "searchAfterTimeDurations": { - "type": "float" - }, - "status": { - "type": "keyword" - }, - "statusDate": { - "type": "date" - } - } - }, - "siem-ui-timeline": { - "properties": { - "columns": { - "properties": { - "aggregatable": { - "type": "boolean" - }, - "category": { - "type": "keyword" - }, - "columnHeaderType": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "example": { - "type": "text" - }, - "id": { - "type": "keyword" - }, - "indexes": { - "type": "keyword" - }, - "name": { - "type": "text" - }, - "placeholder": { - "type": "text" - }, - "searchable": { - "type": "boolean" - }, - "type": { - "type": "keyword" - } - } - }, - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "dataProviders": { - "properties": { - "and": { - "properties": { - "enabled": { - "type": "boolean" - }, - "excluded": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "kqlQuery": { - "type": "text" - }, - "name": { - "type": "text" - }, - "queryMatch": { - "properties": { - "displayField": { - "type": "text" - }, - "displayValue": { - "type": "text" - }, - "field": { - "type": "text" - }, - "operator": { - "type": "text" - }, - "value": { - "type": "text" - } - } - }, - "type": { - "type": "text" - } - } - }, - "enabled": { - "type": "boolean" - }, - "excluded": { - "type": "boolean" - }, - "id": { - "type": "keyword" - }, - "kqlQuery": { - "type": "text" - }, - "name": { - "type": "text" - }, - "queryMatch": { - "properties": { - "displayField": { - "type": "text" - }, - "displayValue": { - "type": "text" - }, - "field": { - "type": "text" - }, - "operator": { - "type": "text" - }, - "value": { - "type": "text" - } - } - }, - "type": { - "type": "text" - } - } - }, - "dateRange": { - "properties": { - "end": { - "type": "date" - }, - "start": { - "type": "date" - } - } - }, - "description": { - "type": "text" - }, - "eventType": { - "type": "keyword" - }, - "excludedRowRendererIds": { - "type": "text" - }, - "favorite": { - "properties": { - "favoriteDate": { - "type": "date" - }, - "fullName": { - "type": "text" - }, - "keySearch": { - "type": "text" - }, - "userName": { - "type": "text" - } - } - }, - "filters": { - "properties": { - "exists": { - "type": "text" - }, - "match_all": { - "type": "text" - }, - "meta": { - "properties": { - "alias": { - "type": "text" - }, - "controlledBy": { - "type": "text" - }, - "disabled": { - "type": "boolean" - }, - "field": { - "type": "text" - }, - "formattedValue": { - "type": "text" - }, - "index": { - "type": "keyword" - }, - "key": { - "type": "keyword" - }, - "negate": { - "type": "boolean" - }, - "params": { - "type": "text" - }, - "type": { - "type": "keyword" - }, - "value": { - "type": "text" - } - } - }, - "missing": { - "type": "text" - }, - "query": { - "type": "text" - }, - "range": { - "type": "text" - }, - "script": { - "type": "text" - } - } - }, - "kqlMode": { - "type": "keyword" - }, - "kqlQuery": { - "properties": { - "filterQuery": { - "properties": { - "kuery": { - "properties": { - "expression": { - "type": "text" - }, - "kind": { - "type": "keyword" - } - } - }, - "serializedQuery": { - "type": "text" - } - } - } - } - }, - "savedQueryId": { - "type": "keyword" - }, - "sort": { - "properties": { - "columnId": { - "type": "keyword" - }, - "sortDirection": { - "type": "keyword" - } - } - }, - "status": { - "type": "keyword" - }, - "templateTimelineId": { - "type": "text" - }, - "templateTimelineVersion": { - "type": "integer" - }, - "timelineType": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "siem-ui-timeline-note": { - "properties": { - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "eventId": { - "type": "keyword" - }, - "note": { - "type": "text" - }, - "timelineId": { - "type": "keyword" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "siem-ui-timeline-pinned-event": { - "properties": { - "created": { - "type": "date" - }, - "createdBy": { - "type": "text" - }, - "eventId": { - "type": "keyword" - }, - "timelineId": { - "type": "keyword" - }, - "updated": { - "type": "date" - }, - "updatedBy": { - "type": "text" - } - } - }, - "space": { - "properties": { - "_reserved": { - "type": "boolean" - }, - "color": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "disabledFeatures": { - "type": "keyword" - }, - "imageUrl": { - "type": "text", - "index": false - }, - "initials": { - "type": "keyword" - }, - "name": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 2048 - } - } - } - } - }, - "telemetry": { - "properties": { - "allowChangingOptInStatus": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - }, - "lastReported": { - "type": "date" - }, - "lastVersionChecked": { - "type": "keyword" - }, - "reportFailureCount": { - "type": "integer" - }, - "reportFailureVersion": { - "type": "keyword" - }, - "sendUsageFrom": { - "type": "keyword" - }, - "userHasSeenNotice": { - "type": "boolean" - } - } - }, - "tsvb-validation-telemetry": { - "properties": { - "failedRequests": { - "type": "long" - } - } - }, - "type": { - "type": "keyword" - }, - "ui-metric": { - "properties": { - "count": { - "type": "integer" - } - } - }, - "updated_at": { - "type": "date" - }, - "upgrade-assistant-reindex-operation": { - "properties": { - "errorMessage": { - "type": "keyword" - }, - "indexName": { - "type": "keyword" - }, - "lastCompletedStep": { - "type": "integer" - }, - "locked": { - "type": "date" - }, - "newIndexName": { - "type": "keyword" - }, - "reindexOptions": { - "properties": { - "openAndClose": { - "type": "boolean" - }, - "queueSettings": { - "properties": { - "queuedAt": { - "type": "long" - }, - "startedAt": { - "type": "long" - } - } - } - } - }, - "reindexTaskId": { - "type": "keyword" - }, - "reindexTaskPercComplete": { - "type": "float" - }, - "runningReindexCount": { - "type": "integer" - }, - "status": { - "type": "integer" - } - } - }, - "upgrade-assistant-telemetry": { - "properties": { - "features": { - "properties": { - "deprecation_logging": { - "properties": { - "enabled": { - "type": "boolean", - "null_value": true - } - } - } - } - }, - "ui_open": { - "properties": { - "cluster": { - "type": "long", - "null_value": 0 - }, - "indices": { - "type": "long", - "null_value": 0 - }, - "overview": { - "type": "long", - "null_value": 0 - } - } - }, - "ui_reindex": { - "properties": { - "close": { - "type": "long", - "null_value": 0 - }, - "open": { - "type": "long", - "null_value": 0 - }, - "start": { - "type": "long", - "null_value": 0 - }, - "stop": { - "type": "long", - "null_value": 0 - } - } - } - } - }, - "uptime-dynamic-settings": { - "properties": { - "certAgeThreshold": { - "type": "long" - }, - "certExpirationThreshold": { - "type": "long" - }, - "heartbeatIndices": { - "type": "keyword" - } - } - }, - "url": { - "properties": { - "accessCount": { - "type": "long" - }, - "accessDate": { - "type": "date" - }, - "createDate": { - "type": "date" - }, - "url": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 2048 - } - } - } - } - }, - "visualization": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "savedSearchRefName": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - }, - "visState": { - "type": "text" - } - } - }, - "workplace_search_telemetry": { - "type": "object", - "dynamic": "false" - } - } - }, - "settings": { - "index": { - "auto_expand_replicas": "0-1", - "number_of_replicas": "0", - "number_of_shards": "1" - } - } - } -} diff --git a/x-pack/test/functional/es_archives/security/dlstest/data.json.gz b/x-pack/test/functional/es_archives/security/dlstest/data.json.gz deleted file mode 100644 index 5b3fce3174100..0000000000000 Binary files a/x-pack/test/functional/es_archives/security/dlstest/data.json.gz and /dev/null differ diff --git a/x-pack/test/functional/es_archives/security/dlstest/mappings.json b/x-pack/test/functional/es_archives/security/dlstest/mappings.json deleted file mode 100644 index 32c5f0be39732..0000000000000 --- a/x-pack/test/functional/es_archives/security/dlstest/mappings.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "type": "index", - "value": { - "index": "dlstest", - "mappings": { - "properties": { - "name": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - }, - "region": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "settings": { - "index": { - "number_of_replicas": "1", - "number_of_shards": "5" - } - } - } -} \ No newline at end of file diff --git a/x-pack/test/security_solution_api_integration/es_archive_path_builder/index.ts b/x-pack/test/security_solution_api_integration/es_archive_path_builder/index.ts index fd91f69859fc6..aff3c1c069a53 100644 --- a/x-pack/test/security_solution_api_integration/es_archive_path_builder/index.ts +++ b/x-pack/test/security_solution_api_integration/es_archive_path_builder/index.ts @@ -16,7 +16,21 @@ export class EsArchivePathBuilder { * @param resourceUri represents the data type, e.g., auditbeat, and its associated index for hosts. * @returns the complete path based on the environment from which we intend to load the data. */ + + /** + * List of archives that have been relocated to the new path. + * Add more archive prefixes as needed. + */ + private static readonly RELOCATED_ARCHIVES = ['auditbeat', 'filebeat']; + getPath(resourceUri: string): string { + // Check if resourceUri matches any relocated archive prefix + if ( + !this.isServerless && + EsArchivePathBuilder.RELOCATED_ARCHIVES.some((prefix) => resourceUri.startsWith(prefix)) + ) { + return `x-pack/platform/test/fixtures/es_archives/${resourceUri}`; + } const archivePath = this.getEsArchivePathBasedOnEnv(); return `${archivePath}/${resourceUri}`; } diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts index 60c3e7fd7b9b8..cedbf8a717c3c 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts @@ -33,13 +33,13 @@ export default ({ getService }: FtrProviderContext) => { describe('@ess @serverless @skipInServerless check_privileges', () => { before(async () => { - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await esArchiver.load('x-pack/test/functional/es_archives/security_solution/alias'); await createAlertsIndex(supertest, log); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); await esArchiver.unload('x-pack/test/functional/es_archives/security_solution/alias'); await deleteAllAlerts(supertest, log, es); }); diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts index 1b00e9fd67280..813b2b12b870e 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/perform_bulk_action.ts @@ -95,11 +95,11 @@ export default ({ getService }: FtrProviderContext): void => { describe.skip('@ess @serverless @skipInServerless perform_bulk_action', () => { beforeEach(async () => { await deleteAllRules(supertest, log); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); afterEach(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('should export rules', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/host_details.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/host_details.ts index 51f046781268a..ec43464e0a913 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/host_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/host_details.ts @@ -26,10 +26,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/filebeat/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/filebeat/default'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/filebeat/default') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/filebeat/default') ); const FROM = '2000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/hosts.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/hosts.ts index fc16158729bf7..3250f96be3fcb 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/hosts.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/hosts.ts @@ -39,11 +39,12 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts') ); it('Make sure that we get Hosts Table data', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/uncommon_processes.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/uncommon_processes.ts index 958ac9289b5ef..3b9d161744226 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/uncommon_processes.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/tests/uncommon_processes.ts @@ -31,10 +31,14 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/uncommon_processes'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes' + ); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/uncommon_processes'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes' + ); }); it('should return an edge of length 1 when given a pagination of length 1', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_details.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_details.ts index 6fec2ab95f1fe..59c4912cc81e8 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_details.ts @@ -26,10 +26,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/filebeat/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/filebeat/default'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/filebeat/default') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/filebeat/default') ); it('Make sure that we get Network details data', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_top_n_flow.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_top_n_flow.ts index 31eabe76ee0e1..06d7b20f20fb1 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_top_n_flow.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/tests/network_top_n_flow.ts @@ -32,10 +32,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/filebeat/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/filebeat/default'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/filebeat/default') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/filebeat/default') ); const FROM = '2019-02-09T01:57:24.870Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_host.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_host.ts index 04375f787786e..d88666854b763 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_host.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_host.ts @@ -27,10 +27,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/overview'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/overview'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/overview') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/overview') ); const FROM = '2000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_network.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_network.ts index 5d2fc9c5aafdd..b6ea64ca404a9 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_network.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/tests/overview_network.ts @@ -25,10 +25,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/filebeat/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/filebeat/default'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/filebeat/default') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/filebeat/default') ); const FROM = '2000-01-01T00:00:00.000Z'; @@ -113,10 +114,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/overview'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/overview'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/overview') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/overview') ); const FROM = '2000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/authentications.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/authentications.ts index eaee29133ccb1..fa2e13ded0654 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/authentications.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/authentications.ts @@ -38,11 +38,12 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts') ); it('Make sure that we get Authentication data', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/users.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/users.ts index a1ba9a6f497a9..d8155e92936f1 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/users.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/tests/users.ts @@ -34,10 +34,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/users'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/users'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/users') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/users') ); it('Ensure data is returned from auditbeat', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/events.ts b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/events.ts index 9aa3fcc0de01d..1c4df6c674036 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/events.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/events.ts @@ -67,10 +67,10 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/hosts'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/hosts'); }); it('returns Timeline data', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_details.ts b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_details.ts index dcfe8ec233e0a..c7a56ab2b89cd 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_details.ts @@ -39,11 +39,12 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); search = await utils.createSearch(); - await esArchiver.load('x-pack/test/functional/es_archives/filebeat/default'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/filebeat/default'); }); after( - async () => await esArchiver.unload('x-pack/test/functional/es_archives/filebeat/default') + async () => + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/filebeat/default') ); it('Make sure that we get Event Details data', async () => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/sources/indices/trial_license_complete_tier/sources.ts b/x-pack/test/security_solution_api_integration/test_suites/sources/indices/trial_license_complete_tier/sources.ts index 7b3f52cc678af..3dc21d9db18d7 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/sources/indices/trial_license_complete_tier/sources.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/sources/indices/trial_license_complete_tier/sources.ts @@ -15,8 +15,8 @@ export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); describe('sources', () => { - before(() => esArchiver.load('x-pack/test/functional/es_archives/auditbeat/default')); - after(() => esArchiver.unload('x-pack/test/functional/es_archives/auditbeat/default')); + before(() => esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/default')); + after(() => esArchiver.unload('x-pack/platform/test/fixtures/es_archives/auditbeat/default')); it('Make sure that we get source information when auditbeat indices is there', async () => { const { body: sourceStatus } = await supertest diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts index 439501d8aa9fd..ec34c80df1358 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts @@ -40,7 +40,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -137,7 +137,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return non-empty array filled with Rules if user has CSP integrations`, async () => { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts index 804e412f936ae..f47ea915d04ec 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts @@ -40,7 +40,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -137,7 +137,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return all benchmarks if user has CSP integrations`, async () => { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts index 6e42724e9c53a..92e20f4c257b0 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts @@ -42,7 +42,7 @@ export default function ({ getService }: FtrProviderContext) { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -58,7 +58,7 @@ export default function ({ getService }: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); it(`Should return 500 error code when not provide package policy id or benchmark id`, async () => { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts index ace0b266e606c..c4cccf141ca1f 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts @@ -58,7 +58,7 @@ export default function (providerContext: FtrProviderContext) { internalRequestHeader = svlCommonApi.getInternalRequestHeader(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -77,7 +77,7 @@ export default function (providerContext: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); await findingsIndex.deleteAll(); await vulnerabilitiesIndex.deleteAll(); }); diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts index 9096ce7c9d377..6ef40e594b647 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts @@ -54,7 +54,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = INDEXED TEST', () => { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -75,7 +75,9 @@ export default function (providerContext: FtrProviderContext) { await latestFindingsIndex.deleteAll(); await latestVulnerabilitiesIndex.deleteAll(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Return kspm status indexed when security_solution-cloud_security_posture.misconfiguration_latestration_latest contains new kspm documents`, async () => { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts index 3a3ca88b72751..e6f3061d09fd4 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts @@ -48,7 +48,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = INDEXING TEST', () => { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -68,7 +68,9 @@ export default function (providerContext: FtrProviderContext) { await findingsIndex.deleteAll(); await vulnerabilitiesIndex.deleteAll(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Return kspm status indexing when security_solution-cloud_security_posture.misconfiguration_latest doesn't contain new kspm documents, but has newly connected agents`, async () => { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts index 4b90f3bd8c83e..c6f9e64910039 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts @@ -39,7 +39,7 @@ export default function (providerContext: FtrProviderContext) { describe('STATUS = NOT-DEPLOYED and STATUS = NOT-INSTALLED TEST', () => { beforeEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -55,7 +55,9 @@ export default function (providerContext: FtrProviderContext) { afterEach(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' + ); }); it(`Should return not-deployed when installed kspm, no findings on either indices and no healthy agents`, async () => { await createPackagePolicy( diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts index 33ee0d0fec6fd..0602387e7c226 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts @@ -51,7 +51,7 @@ export default function ({ getService }: FtrProviderContext) { roleAuthc = await svlUserManager.createM2mApiKeyWithRoleScope('admin'); internalRequestHeader = svlCommonApi.getInternalRequestHeader(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); const { body: agentPolicyResponse } = await supertestWithoutAuth .post(`/api/fleet/agent_policies`) @@ -86,7 +86,7 @@ export default function ({ getService }: FtrProviderContext) { after(async () => { await svlUserManager.invalidateM2mApiKeyWithRoleScope(roleAuthc); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); }); afterEach(async () => { diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/group4/_adhoc_data_views.ts b/x-pack/test_serverless/functional/test_suites/common/discover/group4/_adhoc_data_views.ts index bcf76ae6d2115..145f30b223753 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/group4/_adhoc_data_views.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/group4/_adhoc_data_views.ts @@ -56,7 +56,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); }); it('should navigate back correctly from to surrounding and single views', async () => { diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting.ts b/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting.ts index 03a1ac4f49e8e..cc3bb3030b324 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting.ts @@ -212,7 +212,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // TODO: Manually loading logs archive and logs SOs in Serverless // instead of using `reportingAPI.initLogs()` since the original // logs SOs include a canvas SO which is not supported in Serverless - await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.load( 'x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting/logs' ); @@ -227,7 +227,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await kibanaServer.importExport.unload( 'x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting/logs' ); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await reset(); }); diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/visualize_field.ts b/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/visualize_field.ts index 7d145542e5884..a1f11e1fccd9f 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/visualize_field.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/x_pack/visualize_field.ts @@ -37,7 +37,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { // Security project requires admin role, search/oblt project passes with developer/editor. await PageObjects.svlCommonPage.loginAsAdmin(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -56,7 +58,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test_serverless/functional/test_suites/common/examples/discover_customization_examples/customizations.ts b/x-pack/test_serverless/functional/test_suites/common/examples/discover_customization_examples/customizations.ts index 35096f267d8de..e7252fe611806 100644 --- a/x-pack/test_serverless/functional/test_suites/common/examples/discover_customization_examples/customizations.ts +++ b/x-pack/test_serverless/functional/test_suites/common/examples/discover_customization_examples/customizations.ts @@ -24,7 +24,9 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { before(async () => { await PageObjects.svlCommonPage.loginAsAdmin(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); @@ -44,7 +46,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/discover' ); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/common/examples/search_examples/index.ts b/x-pack/test_serverless/functional/test_suites/common/examples/search_examples/index.ts index d0ea8f6131159..3715e8079b659 100644 --- a/x-pack/test_serverless/functional/test_suites/common/examples/search_examples/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/examples/search_examples/index.ts @@ -18,14 +18,16 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { // "index_not_found_exception: no such index [.kibana_ingest]", // so it was switched to `savedObjects.cleanStandardList()` await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); // need at least one index pattern }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test_serverless/functional/test_suites/common/examples/unified_field_list_examples/field_stats.ts b/x-pack/test_serverless/functional/test_suites/common/examples/unified_field_list_examples/field_stats.ts index a1c72e7c46182..cdbb82f84e4f5 100644 --- a/x-pack/test_serverless/functional/test_suites/common/examples/unified_field_list_examples/field_stats.ts +++ b/x-pack/test_serverless/functional/test_suites/common/examples/unified_field_list_examples/field_stats.ts @@ -31,7 +31,9 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { before(async () => { await PageObjects.svlCommonPage.loginAsAdmin(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); @@ -55,7 +57,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); // TODO: Loading this from `es_archives` in `test_serverless` // instead since minor modifications were required await esArchiver.unload( diff --git a/x-pack/test_serverless/functional/test_suites/common/management/transforms/transform_list.ts b/x-pack/test_serverless/functional/test_suites/common/management/transforms/transform_list.ts index 8929887d2ca86..758e290891a57 100644 --- a/x-pack/test_serverless/functional/test_suites/common/management/transforms/transform_list.ts +++ b/x-pack/test_serverless/functional/test_suites/common/management/transforms/transform_list.ts @@ -22,7 +22,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await pageObjects.svlCommonPage.loginAsAdmin(); // Load logstash* data and create dataview for logstash*, logstash-2015.09.22 - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); @@ -33,7 +35,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/common/reporting/management.ts b/x-pack/test_serverless/functional/test_suites/common/reporting/management.ts index b86d0d64ccf51..d2269b1e7d228 100644 --- a/x-pack/test_serverless/functional/test_suites/common/reporting/management.ts +++ b/x-pack/test_serverless/functional/test_suites/common/reporting/management.ts @@ -23,7 +23,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { const archives: Record = { ecommerce: { - data: 'x-pack/test/functional/es_archives/reporting/ecommerce', + data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', }, }; diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts index 0b27d719b339c..e2384414d58ee 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts @@ -20,7 +20,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext describe('lens serverless - group 1 - subgroup 1', function () { this.tags(['esGate']); - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts index 842448114b2aa..8488851ee776c 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid describe('lens app - Agg based Vis Open in Lens', function () { // see details: https://github.com/elastic/kibana/issues/208926 this.tags(['failsOnMKI']); - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts index 8b66a018ef35f..84fd4249fe26b 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid describe('lens app - TSVB Open in Lens', function () { // see details: https://github.com/elastic/kibana/issues/208926 this.tags(['failsOnMKI']); - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group5/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group5/index.ts index 4a6e7528e79a0..85872da0869b4 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group5/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group5/index.ts @@ -20,7 +20,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext describe('lens serverless - group 1 - subgroup 5', function () { this.tags(['esGate']); - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group6/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group6/index.ts index d320116aa24ce..e530b12375cea 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group6/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group6/index.ts @@ -20,7 +20,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext describe('lens serverless - group 1 - subgroup 6', function () { this.tags(['esGate']); - const esArchive = 'x-pack/test/functional/es_archives/logstash_functional'; + const esArchive = 'x-pack/platform/test/fixtures/es_archives/logstash_functional'; const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { diff --git a/x-pack/test_serverless/functional/test_suites/observability/cases/attachment_framework.ts b/x-pack/test_serverless/functional/test_suites/observability/cases/attachment_framework.ts index 83a05fd9e05c2..2e56c2f78a086 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/cases/attachment_framework.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/cases/attachment_framework.ts @@ -31,7 +31,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { before(async () => { await svlCommonPage.loginWithPrivilegedRole(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -47,7 +49,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { await svlCases.api.deleteAllCaseItems(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test_serverless/functional/test_suites/observability/ml/anomaly_detection_jobs_list.ts b/x-pack/test_serverless/functional/test_suites/observability/ml/anomaly_detection_jobs_list.ts index 8073a7c5fcc78..4d1bd0b5bb70d 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/ml/anomaly_detection_jobs_list.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/ml/anomaly_detection_jobs_list.ts @@ -22,7 +22,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.svlCommonPage.loginWithPrivilegedRole(); // Load logstash* data and create dataview for logstash*, logstash-2015.09.22 - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); @@ -33,7 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await ml.api.cleanAnomalyDetection(); await ml.testResources.cleanMLSavedObjects(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/search/cases/attachment_framework.ts b/x-pack/test_serverless/functional/test_suites/search/cases/attachment_framework.ts index 5e742332b1de6..4601374d0bd86 100644 --- a/x-pack/test_serverless/functional/test_suites/search/cases/attachment_framework.ts +++ b/x-pack/test_serverless/functional/test_suites/search/cases/attachment_framework.ts @@ -25,7 +25,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { describe('lens visualization', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -42,7 +44,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test_serverless/functional/test_suites/search/dashboards/build_dashboard.ts b/x-pack/test_serverless/functional/test_suites/search/dashboards/build_dashboard.ts index e0704ce1f9141..981b0e48f6d3a 100644 --- a/x-pack/test_serverless/functional/test_suites/search/dashboards/build_dashboard.ts +++ b/x-pack/test_serverless/functional/test_suites/search/dashboards/build_dashboard.ts @@ -32,7 +32,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await PageObjects.svlCommonPage.loginWithPrivilegedRole(); await kibanaServer.savedObjects.cleanStandardList(); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); @@ -43,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.importExport.unload( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ); diff --git a/x-pack/test_serverless/functional/test_suites/search/dashboards/import_dashboard.ts b/x-pack/test_serverless/functional/test_suites/search/dashboards/import_dashboard.ts index dbf1f653cc968..3d966b4d5a2d5 100644 --- a/x-pack/test_serverless/functional/test_suites/search/dashboards/import_dashboard.ts +++ b/x-pack/test_serverless/functional/test_suites/search/dashboards/import_dashboard.ts @@ -30,12 +30,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Importing an existing dashboard', () => { before(async () => { await PageObjects.svlCommonPage.loginWithRole('developer'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.uiSettings.replace({}); }); after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts b/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts index ee7867ad91ec7..d17c9857ca71e 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts @@ -21,7 +21,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await PageObjects.svlCommonPage.loginWithRole('platform_engineer'); // Load logstash* data and create dataview for logstash*, logstash-2015.09.22 - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await kibanaServer.importExport.load( 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' ); @@ -31,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await ml.api.cleanAnomalyDetection(); await ml.testResources.cleanMLSavedObjects(); - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts b/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts index 60dbefd32b2a5..72248362585aa 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await PageObjects.svlCommonPage.loginWithRole('platform_engineer'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ihp_outlier'); + await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/ml/ihp_outlier'); await ml.testResources.createDataViewIfNeeded('ft_ihp_outlier', '@timestamp'); await ml.api.createDataFrameAnalyticsJob(