From dd2fee388407f8abaece9f5f0ebe35631034de19 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Tue, 29 Jul 2025 18:33:35 +0200 Subject: [PATCH 01/12] resolved conflicts --- .github/CODEOWNERS | 93 +- scripts/archive_migration_functions.sh | 2 +- .../shared/kbn-es-archiver/README.mdx | 30 +- .../exception_list.json | 39 +- .../customizations.ts | 6 +- .../field_stats.ts | 12 +- .../unified_tabs_examples/manage_tabs.ts | 208 ++ .../apps/discover/group4/_adhoc_data_views.ts | 2 +- .../apps/discover/group4/_data_view_edit.ts | 2 +- .../discover/group4/_field_list_new_fields.ts | 2 +- .../journeys_e2e/aiops_log_rate_analysis.ts | 2 +- .../test/scout/ui/fixtures/constants.ts | 4 +- .../test/accessibility/apps/group1/roles.ts | 6 +- .../apps/group1/search_profiler.ts | 6 +- .../test/accessibility/apps/group2/lens.ts | 4 +- .../test/accessibility/apps/group2/ml.ts | 22 +- .../apps/group2/ml_anomaly_detection.ts | 16 +- .../accessibility/apps/group2/transform.ts | 4 +- .../group3/ml_embeddables_in_dashboard.ts | 4 +- .../apps/group3/search_sessions.ts | 4 +- .../tests/action_task_params/migrations.ts | 4 +- .../spaces_only/tests/actions/migrations.ts | 4 +- .../tests/actions/type_not_enabled.ts | 8 +- .../transform_health/rule.ts | 2 +- .../tests/alerting/group4/migrations.ts | 4 +- .../tests/alerting/group4/migrations/8_2_0.ts | 4 +- .../tests/alerting/group4/run_soon.ts | 16 +- .../alerting/group4/scheduled_task_id.ts | 16 +- .../api_integration/apis/aiops/test_data.ts | 2 +- .../apis/file_upload/index_exists.ts | 6 +- .../apis/logstash/pipeline/load.ts | 2 +- .../apis/logstash/pipelines/delete.ts | 2 +- .../apis/logstash/pipelines/list.ts | 2 +- .../test/api_integration/apis/maps/index.ts | 10 +- .../apis/ml/annotations/create_annotations.ts | 2 +- .../apis/ml/annotations/delete_annotations.ts | 2 +- .../apis/ml/annotations/get_annotations.ts | 2 +- .../apis/ml/annotations/update_annotations.ts | 2 +- .../apis/ml/anomaly_detectors/create.ts | 2 +- .../anomaly_detectors/create_with_datafeed.ts | 2 +- .../anomaly_detectors/forecast_with_spaces.ts | 2 +- .../apis/ml/anomaly_detectors/get.ts | 2 +- .../apis/ml/anomaly_detectors/get_buckets.ts | 2 +- .../anomaly_detectors/get_overall_buckets.ts | 2 +- .../ml/data_frame_analytics/create_job.ts | 4 +- .../apis/ml/data_frame_analytics/delete.ts | 4 +- .../ml/data_frame_analytics/delete_spaces.ts | 2 +- .../apis/ml/data_frame_analytics/evaluate.ts | 6 +- .../apis/ml/data_frame_analytics/explain.ts | 8 +- .../apis/ml/data_frame_analytics/get.ts | 4 +- .../ml/data_frame_analytics/get_spaces.ts | 2 +- .../data_frame_analytics/jobs_exist_spaces.ts | 2 +- .../ml/data_frame_analytics/new_job_caps.ts | 4 +- .../apis/ml/data_frame_analytics/start.ts | 4 +- .../ml/data_frame_analytics/start_spaces.ts | 2 +- .../apis/ml/data_frame_analytics/stop.ts | 4 +- .../ml/data_frame_analytics/stop_spaces.ts | 4 +- .../apis/ml/data_frame_analytics/update.ts | 4 +- .../ml/data_frame_analytics/update_spaces.ts | 2 +- .../apis/ml/data_frame_analytics/validate.ts | 4 +- .../apis/ml/datafeeds/preview.ts | 2 +- .../ml/fields_service/field_cardinality.ts | 2 +- .../ml/fields_service/time_field_range.ts | 2 +- .../test/api_integration/apis/ml/index.ts | 64 +- .../ml/job_audit_messages/clear_messages.ts | 2 +- .../get_job_audit_messages.ts | 2 +- .../job_validation/bucket_span_estimator.ts | 2 +- .../calculate_model_memory_limit.ts | 2 +- .../apis/ml/job_validation/cardinality.ts | 2 +- .../datafeed_preview_validation.ts | 2 +- .../apis/ml/job_validation/validate.ts | 2 +- .../apis/ml/jobs/all_jobs_and_group_ids.ts | 2 +- .../apis/ml/jobs/bulk_create_jobs.ts | 2 +- .../ml/jobs/categorization_field_examples.ts | 4 +- .../apis/ml/jobs/category_results.ts | 4 +- .../apis/ml/jobs/close_jobs.ts | 2 +- .../apis/ml/jobs/datafeed_preview.ts | 2 +- .../apis/ml/jobs/delete_jobs.ts | 2 +- .../apis/ml/jobs/force_start_datafeeds.ts | 2 +- .../ml/jobs/force_start_datafeeds_spaces.ts | 2 +- .../apis/ml/jobs/get_groups.ts | 2 +- .../test/api_integration/apis/ml/jobs/jobs.ts | 2 +- .../apis/ml/jobs/jobs_exist.ts | 2 +- .../apis/ml/jobs/jobs_summary.ts | 2 +- .../apis/ml/jobs/jobs_with_time_range.ts | 2 +- .../api_integration/apis/ml/jobs/reset.ts | 2 +- .../apis/ml/jobs/stop_datafeeds.ts | 2 +- .../apis/ml/jobs/stop_datafeeds_spaces.ts | 2 +- .../apis/ml/jobs/update_groups.ts | 2 +- .../apis/ml/management/get_list.ts | 4 +- .../apis/ml/model_management/memory_usage.ts | 2 +- .../ml/model_management/nodes_overview.ts | 2 +- .../apis/ml/modules/jobs_exist.ts | 2 +- .../apis/ml/modules/recognize_module.ts | 34 +- .../apis/ml/modules/setup_module.ts | 34 +- .../ml/notifications/get_notifications.ts | 4 +- .../ml/results/get_anomalies_table_data.ts | 2 +- .../apis/ml/results/get_anomaly_search.ts | 2 +- .../apis/ml/results/get_categorizer_stats.ts | 4 +- .../ml/results/get_category_definition.ts | 4 +- .../apis/ml/results/get_category_examples.ts | 4 +- .../ml/results/get_datafeed_results_chart.ts | 2 +- .../ml/results/get_partition_fields_values.ts | 4 +- .../apis/ml/results/get_stopped_partitions.ts | 4 +- .../apis/ml/results/max_anomaly_score.ts | 2 +- .../apis/ml/saved_objects/get_jobs_spaces.ts | 2 +- .../apis/ml/saved_objects/initialize_jobs.ts | 2 +- .../initialize_trained_models.ts | 2 +- .../remove_from_current_space.ts | 2 +- .../apis/ml/saved_objects/status.ts | 2 +- .../ml/saved_objects/sync_trained_models.ts | 2 +- .../ml/saved_objects/update_jobs_spaces.ts | 2 +- .../apis/ml/system/has_privileges.ts | 2 +- .../apis/ml/system/index_exists.ts | 2 +- .../apis/monitoring/apm/instance.js | 2 +- .../apis/monitoring/apm/instances.js | 2 +- .../apis/monitoring/apm/overview.js | 2 +- .../apis/monitoring/beats/detail.js | 3 +- .../apis/monitoring/beats/list.js | 3 +- .../apis/monitoring/beats/overview.js | 2 +- .../apis/monitoring/cluster/list.js | 2 +- .../apis/monitoring/cluster/list_mb.js | 2 +- .../apis/monitoring/cluster/overview.js | 3 +- .../apis/monitoring/cluster/overview_mb.js | 2 +- .../apis/monitoring/elasticsearch/ccr.js | 2 +- .../apis/monitoring/elasticsearch/ccr_mb.js | 2 +- .../monitoring/elasticsearch/ccr_shard.js | 2 +- .../monitoring/elasticsearch/ccr_shard_mb.js | 2 +- .../monitoring/elasticsearch/index_detail.js | 2 +- .../elasticsearch/index_detail_mb.js | 2 +- .../apis/monitoring/elasticsearch/indices.js | 5 +- .../monitoring/elasticsearch/node_detail.js | 2 +- .../elasticsearch/node_detail_advanced.js | 2 +- .../elasticsearch/node_detail_advanced_mb.js | 2 +- .../elasticsearch/node_detail_mb.js | 2 +- .../apis/monitoring/elasticsearch/nodes.js | 17 +- .../apis/monitoring/elasticsearch/nodes_mb.js | 2 +- .../apis/monitoring/elasticsearch/overview.js | 8 +- .../monitoring/elasticsearch/overview_mb.js | 2 +- .../apis/monitoring/kibana/instance.js | 3 +- .../apis/monitoring/kibana/listing.js | 3 +- .../apis/monitoring/kibana/overview.js | 3 +- .../apis/monitoring/logs/cluster.js | 2 +- .../apis/monitoring/logs/index_detail.js | 2 +- .../apis/monitoring/logs/multiple_clusters.js | 2 +- .../apis/monitoring/logs/node_detail.js | 2 +- .../logstash/multicluster_pipelines.js | 3 +- .../apis/monitoring/logstash/node_detail.js | 2 +- .../apis/monitoring/logstash/nodes.js | 2 +- .../apis/monitoring/logstash/overview.js | 2 +- .../apis/monitoring/logstash/pipelines.js | 3 +- .../apis/monitoring/setup/collection/ccs.js | 3 +- .../monitoring/setup/collection/detect_apm.js | 3 +- .../setup/collection/detect_beats.js | 3 +- .../collection/detect_beats_management.js | 2 +- .../setup/collection/detect_logstash.js | 2 +- .../collection/detect_logstash_management.js | 2 +- .../setup/collection/es_and_kibana.js | 3 +- .../collection/es_and_kibana_exclusive.js | 4 +- .../collection/es_and_kibana_exclusive_mb.js | 4 +- .../setup/collection/es_and_kibana_mb.js | 5 +- .../monitoring/setup/collection/kibana.js | 2 +- .../setup/collection/kibana_exclusive.js | 4 +- .../setup/collection/kibana_exclusive_mb.js | 4 +- .../monitoring/setup/collection/kibana_mb.js | 5 +- .../monitoring/setup/collection/security.js | 2 +- .../monitoring/standalone_cluster/cluster.js | 2 +- .../monitoring/standalone_cluster/clusters.js | 2 +- .../api_integration/apis/osquery/packs.ts | 4 +- .../api_integration/apis/search/search.ts | 4 +- .../apis/security/index_fields.ts | 4 +- .../apis/telemetry/telemetry.ts | 6 +- .../apis/transform/delete_transforms.ts | 2 +- .../api_integration/apis/transform/index.ts | 2 +- .../apis/transform/reauthorize_transforms.ts | 2 +- .../apis/transform/reset_transforms.ts | 2 +- .../apis/transform/schedule_now_transforms.ts | 2 +- .../apis/transform/start_transforms.ts | 2 +- .../apis/transform/stop_transforms.ts | 2 +- .../apis/transform/transforms.ts | 2 +- .../apis/transform/transforms_create.ts | 2 +- .../apis/transform/transforms_preview.ts | 2 +- .../apis/transform/transforms_stats.ts | 2 +- .../apis/transform/transforms_update.ts | 2 +- .../aiops/log_rate_analysis_data_generator.ts | 8 +- .../tests/common/cases/migrations.ts | 24 +- .../tests/common/comments/migrations.ts | 6 +- .../tests/common/configure/migrations.ts | 6 +- .../metrics/get_case_metrics_alerts.ts | 16 +- .../common/kibana_alerting_cases_index.ts | 4 +- .../tests/common/user_actions/migrations.ts | 10 +- .../platform/test/disable_ems/tests/index.ts | 6 +- .../test/examples/embedded_lens/index.ts | 4 +- .../test/examples/search_examples/index.ts | 6 +- .../es_archives/action_task_params/data.json | 0 .../fixtures}/es_archives/actions/data.json | 0 .../es_archives/alerting/8_2_0/data.json | 0 .../es_archives/alerting/8_2_0/mappings.json | 0 .../fixtures}/es_archives/alerts/data.json | 0 .../es_archives/alerts/mappings.json | 0 .../auditbeat/default/data.json.gz | Bin .../auditbeat/default/mappings.json | 0 .../es_archives/auditbeat/hosts/data.json.gz | Bin .../es_archives/auditbeat/hosts/mappings.json | 0 .../auditbeat/overview/data.json.gz | Bin .../auditbeat/overview/mappings.json | 0 .../auditbeat/uncommon_processes/data.json | 0 .../uncommon_processes/mappings.json | 0 .../es_archives/auditbeat/users/data.json | 0 .../es_archives/auditbeat/users/mappings.json | 0 .../canvas/logstash_lens/data.json | 0 .../canvas/logstash_lens/mappings.json | 0 .../es_archives/cases/default/data.json.gz | Bin .../es_archives/cases/default/mappings.json | 0 .../cases/migrations/7.11.1/data.json.gz | Bin .../cases/migrations/7.11.1/mappings.json | 0 .../cases/migrations/7.13.2/data.json.gz | Bin .../cases/migrations/7.13.2/mappings.json | 0 .../migrations/7.13_user_actions/data.json.gz | Bin .../7.13_user_actions/mappings.json | 0 .../migrations/7.16.0_space/data.json.gz | Bin .../migrations/7.16.0_space/mappings.json | 0 .../cases/migrations/8.8.0/data.json.gz | Bin .../cases/migrations/8.8.0/mappings.json | 0 .../cases/signals/default/data.json.gz | Bin .../cases/signals/default/mappings.json | 0 .../cases/signals/duplicate_ids/data.json.gz | Bin .../cases/signals/duplicate_ids/mappings.json | 0 .../cases/signals/hosts_users/data.json.gz | Bin .../cases/signals/hosts_users/mappings.json | 0 .../dashboard/async_search/data.json | 0 .../data/search_sessions/data.json.gz | Bin .../data/search_sessions/mappings.json | 0 .../event_log_legacy_ids/data.json | 0 .../event_log_legacy_ids/mappings.json | 0 .../event_log_multiple_indicies/data.json | 0 .../event_log_multiple_indicies/mappings.json | 0 .../es_archives/filebeat/default/data.json.gz | Bin .../filebeat/default/mappings.json | 0 .../es_archives/filebeat/kpi_hosts/data.json | 0 .../filebeat/kpi_hosts/mappings.json | 0 .../filebeat/threat_intel/data.json | 0 .../filebeat/threat_intel/mappings.json | 0 .../es_archives/fleet/agents/data.json | 0 .../es_archives/fleet/agents/mappings.json | 0 .../fleet/empty_fleet_server/mappings.json | 0 .../es_archives/fleet/fleet_server/data.json | 0 .../fleet/fleet_server/mappings.json | 0 .../getting_started/shakespeare/data.json.gz | Bin .../getting_started/shakespeare/mappings.json | 0 .../es_archives/graph/secrepo/data.json.gz | Bin .../es_archives/graph/secrepo/mappings.json | 0 .../es_archives/hybrid/logstash/data.json.gz | Bin .../es_archives/hybrid/logstash/mappings.json | 0 .../es_archives/hybrid/rollup/data.json.gz | Bin .../es_archives/hybrid/rollup/mappings.json | 0 .../es_archives/large_arrays/data.json.gz | Bin .../es_archives/large_arrays/mappings.json | 0 .../es_archives/lens/epoch_millis/data.json | 0 .../lens/epoch_millis/mappings.json | 0 .../es_archives/lens/rollup/data/data.json | 0 .../lens/rollup/data/mappings.json | 0 .../logstash/example_pipelines/data.json.gz | Bin .../logstash_functional/data.json.gz | Bin .../logstash_functional/mappings.json | 0 .../fixtures}/es_archives/maps/data/data.json | 0 .../es_archives/maps/data/mappings.json | 0 .../ml/bm_classification/data.json.gz | Bin .../ml/bm_classification/mappings.json | 0 .../ml/categorization/data.json.gz | Bin .../ml/categorization/mappings.json | 0 .../ml/categorization_small/data.json.gz | Bin .../ml/categorization_small/mappings.json | 0 .../es_archives/ml/ecommerce/data.json.gz | Bin .../es_archives/ml/ecommerce/mappings.json | 0 .../ml/egs_regression/data.json.gz | Bin .../ml/egs_regression/mappings.json | 0 .../ml/event_rate_nanos/data.json.gz | Bin .../ml/event_rate_nanos/mappings.json | 0 .../es_archives/ml/farequote/data.json.gz | Bin .../es_archives/ml/farequote/mappings.json | 0 .../ml/farequote_small/data.json.gz | Bin .../ml/farequote_small/mappings.json | 0 .../es_archives/ml/ihp_outlier/data.json.gz | Bin .../es_archives/ml/ihp_outlier/mappings.json | 0 .../es_archives/ml/module_apache/data.json.gz | Bin .../ml/module_apache/mappings.json | 0 .../ml/module_apache_data_stream/data.json.gz | Bin .../module_apache_data_stream/mappings.json | 0 .../ml/module_apm_transaction/data.json.gz | Bin .../ml/module_apm_transaction/mappings.json | 0 .../ml/module_auditbeat/data.json.gz | Bin .../ml/module_auditbeat/mappings.json | 0 .../ml/module_heartbeat/data.json.gz | Bin .../ml/module_heartbeat/mappings.json | 0 .../es_archives/ml/module_logs/data.json.gz | Bin .../es_archives/ml/module_logs/mappings.json | 0 .../ml/module_metricbeat/data.json.gz | Bin .../ml/module_metricbeat/mappings.json | 0 .../ml/module_metrics_ui/data.json.gz | Bin .../ml/module_metrics_ui/mappings.json | 0 .../es_archives/ml/module_nginx/data.json.gz | Bin .../es_archives/ml/module_nginx/mappings.json | 0 .../ml/module_nginx_data_stream/data.json.gz | Bin .../ml/module_nginx_data_stream/mappings.json | 0 .../ml/module_sample_ecommerce/data.json.gz | Bin .../ml/module_sample_ecommerce/mappings.json | 0 .../ml/module_sample_logs/data.json.gz | Bin .../ml/module_sample_logs/mappings.json | 0 .../ml/module_security_auditbeat/data.json.gz | Bin .../module_security_auditbeat/mappings.json | 0 .../module_security_cloudtrail/data.json.gz | Bin .../module_security_cloudtrail/mappings.json | 0 .../ml/module_security_endpoint/data.json.gz | Bin .../ml/module_security_endpoint/mappings.json | 0 .../module_security_packetbeat/data.json.gz | Bin .../module_security_packetbeat/mappings.json | 0 .../module_security_winlogbeat/data.json.gz | Bin .../module_security_winlogbeat/mappings.json | 0 .../es_archives/monitoring/apm/data.json.gz | Bin .../es_archives/monitoring/apm/mappings.json | 0 .../monitoring/basic_6.3.x/data.json.gz | Bin .../monitoring/basic_6.3.x/mappings.json | 0 .../monitoring/basic_6.3.x_mb/data.json.gz | Bin .../monitoring/basic_6.3.x_mb/mappings.json | 0 .../es_archives/monitoring/beats/data.json.gz | Bin .../monitoring/beats/mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../es_archives/monitoring/ccr/data.json.gz | Bin .../es_archives/monitoring/ccr/mappings.json | 0 .../ent_search/with_es/data.json.gz | Bin .../ent_search/with_es/mappings.json | 0 .../es_archives/monitoring/logs/data.json.gz | Bin .../es_archives/monitoring/logs/mappings.json | 0 .../monitoring/logs_mb/data.json.gz | Bin .../monitoring/logs_mb/mappings.json | 0 .../logs_multiple_clusters/data.json.gz | Bin .../logs_multiple_clusters/mappings.json | 0 .../logs_multiple_clusters_mb/data.json.gz | Bin .../logs_multiple_clusters_mb/mappings.json | 0 .../logstash/changing_pipelines/data.json.gz | Bin .../logstash/changing_pipelines/mappings.json | 0 .../logstash_pipelines/data.json.gz | Bin .../logstash_pipelines/mappings.json | 0 .../logstash_pipelines_mb/data.json.gz | Bin .../data.json.gz | Bin .../mappings.json | 0 .../monitoring/multi_basic/data.json.gz | Bin .../monitoring/multi_basic/mappings.json | 0 .../monitoring/multi_basic_mb/data.json.gz | Bin .../monitoring/multi_basic_mb/mappings.json | 0 .../monitoring/multicluster/data.json.gz | Bin .../monitoring/multicluster/mappings.json | 0 .../monitoring/multicluster_mb/data.json.gz | Bin .../multicluster_package/data.json.gz | Bin .../multicluster_package/mappings.json | 0 .../setup/collection/detect_apm/data.json.gz | Bin .../setup/collection/detect_apm/mappings.json | 0 .../collection/detect_beats/data.json.gz | Bin .../collection/detect_beats/mappings.json | 0 .../detect_beats_management/data.json.gz | Bin .../detect_beats_management/mappings.json | 0 .../detect_beats_management_mb/data.json.gz | Bin .../detect_beats_management_mb/mappings.json | 0 .../collection/detect_beats_mb/data.json.gz | Bin .../collection/detect_beats_mb/mappings.json | 0 .../collection/detect_logstash/data.json.gz | Bin .../collection/detect_logstash/mappings.json | 0 .../detect_logstash_management/data.json.gz | Bin .../detect_logstash_management/mappings.json | 0 .../collection/es_and_kibana/data.json.gz | Bin .../collection/es_and_kibana/mappings.json | 0 .../es_and_kibana_exclusive/data.json.gz | Bin .../es_and_kibana_exclusive/mappings.json | 0 .../es_and_kibana_exclusive_mb_7/data.json.gz | Bin .../es_and_kibana_exclusive_mb_8/data.json.gz | Bin .../es_and_kibana_mb_8/data.json.gz | Bin .../setup/collection/kibana/data.json.gz | Bin .../setup/collection/kibana/mappings.json | 0 .../collection/kibana_exclusive/data.json.gz | Bin .../collection/kibana_exclusive/mappings.json | 0 .../kibana_exclusive_mb_7/data.json.gz | Bin .../kibana_exclusive_mb_7/mappings.json | 0 .../kibana_exclusive_mb_8/data.json.gz | Bin .../setup/collection/kibana_mb_8/data.json.gz | Bin .../singlecluster_basic_beats/data.json.gz | Bin .../singlecluster_basic_beats/mappings.json | 0 .../singlecluster_basic_beats_mb/data.json.gz | Bin .../mappings.json | 0 .../singlecluster_green_gold/data.json.gz | Bin .../singlecluster_green_gold/mappings.json | 0 .../singlecluster_green_gold_mb/data.json.gz | Bin .../data.json.gz | Bin .../mappings.json | 0 .../singlecluster_green_platinum/data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../singlecluster_lots_of_nodes/data.json.gz | Bin .../singlecluster_lots_of_nodes/mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../singlecluster_red_platinum/data.json.gz | Bin .../singlecluster_red_platinum/mappings.json | 0 .../data.json.gz | Bin .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../singlecluster_yellow_basic/data.json.gz | Bin .../singlecluster_yellow_basic/mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../data.json.gz | Bin .../mappings.json | 0 .../data.json.gz | Bin .../mappings.json | 0 .../standalone_cluster/data.json.gz | Bin .../standalone_cluster/mappings.json | 0 .../standalone_cluster_mb/data.json.gz | Bin .../pre_calculated_histogram/data.json | 0 .../pre_calculated_histogram/mappings.json | 0 .../reporting/archived_reports/data.json.gz | Bin .../reporting/archived_reports/mappings.json | 0 .../reporting/big_int_id_field/data.json.gz | Bin .../reporting/big_int_id_field/mappings.json | 0 .../reporting/bwc/6_2/data.json.gz | Bin .../reporting/bwc/6_2/mappings.json | 0 .../reporting/bwc/6_3/data.json.gz | Bin .../reporting/bwc/6_3/mappings.json | 0 .../reporting/ecommerce/data.json.gz | Bin .../reporting/ecommerce/mappings.json | 0 .../reporting/ecommerce_76/data.json.gz | Bin .../reporting/ecommerce_76/mappings.json | 0 .../es_archives/reporting/errors/data.json | 0 .../reporting/errors/mappings.json | 0 .../reporting/hugedata/data.json.gz | Bin .../es_archives/reporting/nanos/data.json | 0 .../es_archives/reporting/nanos/mappings.json | 0 .../es_archives/reporting/sales/data.json.gz | Bin .../es_archives/reporting/sales/mappings.json | 0 .../reporting/unmapped_fields/data.json | 0 .../reporting/unmapped_fields/mappings.json | 0 .../rule_registry/alerts/data.json | 0 .../rule_registry/alerts/mappings.json | 0 .../rule_registry/o11y_alerts/data.json | 0 .../rule_registry/o11y_alerts/mappings.json | 0 .../rules_scheduled_task_id/rules/data.json | 0 .../rules/mappings.json | 0 .../rules_scheduled_task_id/tasks/data.json | 0 .../tasks/mappings.json | 0 .../security}/dlstest/data.json.gz | Bin .../security}/dlstest/mappings.json | 0 .../es_archives/security/flstest/data.json.gz | Bin .../security/flstest/data/data.json.gz | Bin .../security/flstest/data/mappings.json | 0 .../security/flstest/mappings.json | 0 .../task_manager_removed_types/data.json | 0 .../task_manager_removed_types/mappings.json | 0 .../es_archives/task_manager_tasks/data.json | 0 .../upgrade_assistant/reindex/data.json | 0 .../es_archives/visualize/default/data.json | 0 .../apis/agent_policy/agent_policy.ts | 30 +- .../agent_policy_datastream_permissions.ts | 4 +- .../apis/agent_policy/agent_policy_outputs.ts | 282 ++ .../agent_policy_root_integrations.ts | 4 +- .../agent_policy_with_agents_setup.ts | 4 +- .../apis/agent_policy/privileges.ts | 2 +- .../apis/agents/action_status.ts | 4 +- .../apis/agents/actions.ts | 4 +- .../apis/agents/delete.ts | 4 +- .../apis/agents/get_agents_by_actions.ts | 4 +- .../fleet_api_integration/apis/agents/list.ts | 4 +- .../apis/agents/migrate.ts | 276 ++ .../apis/agents/privileges.ts | 4 +- .../apis/agents/reassign.ts | 12 +- .../apis/agents/request_diagnostics.ts | 8 +- .../apis/agents/status.ts | 4 +- .../apis/agents/unenroll.ts | 12 +- .../apis/agents/update.ts | 4 +- .../apis/agents/update_agent_tags.ts | 12 +- .../apis/agents/upgrade.ts | 8 +- .../apis/agents/uploads.ts | 4 +- .../apis/download_sources/crud.ts | 4 +- .../apis/enrollment_api_keys/privileges.ts | 4 +- .../apis/epm/custom_ingest_pipeline.ts | 4 +- .../apis/epm/final_pipeline.ts | 4 +- .../install_integration_in_multiple_spaces.ts | 4 +- .../apis/epm/routing_rules.ts | 4 +- .../apis/event_ingested/use_event_ingested.ts | 195 ++ .../apis/fleet_proxies/crud.ts | 4 +- .../apis/fleet_server_hosts/crud.ts | 4 +- .../apis/fleet_settings_privileges.ts | 2 +- .../fleet_api_integration/apis/fleet_setup.ts | 4 +- .../apis/fleet_telemetry.ts | 4 +- .../apis/outputs/crud.ts | 4 +- .../apis/package_policy/delete.ts | 8 +- .../apis/package_policy/deployment_modes.ts | 661 +++++ .../apis/package_policy/get.ts | 4 +- .../apis/package_policy/update.ts | 4 +- .../apis/package_policy/upgrade.ts | 4 +- .../apis/policy_secrets.ts | 4 +- .../apis/settings/enrollment.ts | 4 +- .../apis/settings/enrollment_privileges.ts | 4 +- .../apis/settings/get.ts | 4 +- .../advanced_settings_spaces.ts | 4 +- .../apps/aiops/change_point_detection.ts | 2 +- .../aiops/change_point_detection_cases.ts | 2 +- .../aiops/change_point_detection_dashboard.ts | 2 +- .../apps/aiops/log_pattern_analysis.ts | 4 +- .../aiops/log_pattern_analysis_in_discover.ts | 4 +- .../aiops/log_rate_analysis_anomaly_table.ts | 2 +- .../apps/canvas/embeddables/lens.ts | 2 +- .../canvas/feature_controls/canvas_spaces.ts | 4 +- .../test/functional/apps/canvas/index.ts | 2 +- .../apps/dashboard/group1/created_by.ts | 6 +- .../feature_controls/dashboard_security.ts | 6 +- .../feature_controls/dashboard_spaces.ts | 4 +- .../time_to_visualize_security.ts | 6 +- .../group2/dashboard_lens_by_value.ts | 6 +- .../group2/dashboard_maps_by_value.ts | 6 +- .../controls_migration_smoke_test.ts | 6 +- .../lens_migration_smoke_test.ts | 6 +- .../tsvb_migration_smoke_test.ts | 12 +- .../visualize_migration_smoke_test.ts | 6 +- .../apps/dashboard/group2/panel_time_range.ts | 4 +- .../apps/dashboard/group2/panel_titles.ts | 4 +- .../apps/dashboard/group2/sync_colors.ts | 6 +- .../apps/dashboard/group3/drilldowns/index.ts | 4 +- .../dashboard/group3/reporting/screenshots.ts | 8 +- .../data_views/feature_controls/security.ts | 4 +- .../data_views/feature_controls/spaces.ts | 4 +- .../apps/data_views/spaces/index.ts | 4 +- .../apps/discover/async_scripted_fields.ts | 6 +- .../apps/discover/error_handling.ts | 4 +- .../functional/apps/discover/esql_starred.ts | 6 +- .../feature_controls/discover_security.ts | 4 +- .../feature_controls/discover_spaces.ts | 4 +- .../apps/discover/reporting_embeddable.ts | 6 +- .../functional/apps/discover/saved_queries.ts | 6 +- .../apps/discover/saved_searches.ts | 4 +- .../apps/discover/value_suggestions.ts | 4 +- .../apps/discover/visualize_field.ts | 6 +- .../test/functional/apps/graph/graph.ts | 4 +- .../home/feature_controls/home_security.ts | 6 +- .../test/functional/apps/lens/group1/index.ts | 2 +- .../test/functional/apps/lens/group2/index.ts | 2 +- .../apps/lens/group3/epoch_millis.ts | 4 +- .../test/functional/apps/lens/group3/index.ts | 2 +- .../test/functional/apps/lens/group4/index.ts | 2 +- .../test/functional/apps/lens/group5/index.ts | 2 +- .../test/functional/apps/lens/group6/index.ts | 2 +- .../apps/lens/group6/lens_tagging.ts | 2 +- .../functional/apps/lens/group6/no_data.ts | 6 +- .../functional/apps/lens/group6/rollup.ts | 4 +- .../test/functional/apps/lens/group7/index.ts | 2 +- .../apps/lens/open_in_lens/agg_based/index.ts | 2 +- .../apps/lens/open_in_lens/dashboard/index.ts | 2 +- .../apps/lens/open_in_lens/tsvb/index.ts | 2 +- .../functional/apps/logstash/pipeline_list.js | 6 +- .../apps/managed_content/managed_content.ts | 4 +- .../test/functional/apps/maps/group1/index.js | 8 +- .../test/functional/apps/maps/group2/index.ts | 8 +- .../test/functional/apps/maps/group3/index.js | 8 +- .../test/functional/apps/maps/group4/index.js | 8 +- .../anomaly_charts_dashboard_embeddables.ts | 2 +- .../anomaly_embeddables_migration.ts | 2 +- .../anomaly_detection_integrations/index.ts | 2 +- .../lens_to_ml.ts | 2 +- .../lens_to_ml_with_wizard.ts | 2 +- .../map_to_ml.ts | 2 +- ...gle_metric_viewer_dashboard_embeddables.ts | 2 +- .../ml/anomaly_detection_jobs/advanced_job.ts | 6 +- .../categorization_job.ts | 4 +- .../convert_jobs_to_advanced_job.ts | 6 +- ...nvert_single_metric_job_to_multi_metric.ts | 2 +- .../ml/anomaly_detection_jobs/custom_urls.ts | 2 +- .../anomaly_detection_jobs/date_nanos_job.ts | 4 +- .../delete_job_and_delete_annotations.ts | 2 +- .../apps/ml/anomaly_detection_jobs/geo_job.ts | 2 +- .../apps/ml/anomaly_detection_jobs/index.ts | 8 +- .../job_expanded_details.ts | 2 +- .../multi_metric_job.ts | 2 +- .../anomaly_detection_jobs/population_job.ts | 2 +- .../saved_search_job.ts | 2 +- .../single_metric_job.ts | 2 +- ...ingle_metric_job_without_datafeed_start.ts | 2 +- .../aggregated_scripted_job.ts | 4 +- .../annotations.ts | 2 +- .../anomaly_explorer.ts | 2 +- .../forecasts.ts | 2 +- .../anomaly_detection_result_views/index.ts | 4 +- .../single_metric_viewer.ts | 4 +- .../classification_creation.ts | 4 +- .../classification_creation_saved_search.ts | 2 +- .../apps/ml/data_frame_analytics/cloning.ts | 6 +- .../ml/data_frame_analytics/custom_urls.ts | 2 +- .../apps/ml/data_frame_analytics/index.ts | 10 +- .../outlier_detection_creation.ts | 2 +- ...outlier_detection_creation_saved_search.ts | 2 +- .../regression_creation.ts | 2 +- .../regression_creation_saved_search.ts | 2 +- .../results_view_content.ts | 6 +- .../apps/ml/data_visualizer/data_drift.ts | 8 +- .../data_visualizer/esql_data_visualizer.ts | 6 +- .../apps/ml/data_visualizer/index.ts | 4 +- .../data_visualizer/index_data_visualizer.ts | 6 +- .../index_data_visualizer_actions_panel.ts | 2 +- ...ex_data_visualizer_data_view_management.ts | 2 +- .../index_data_visualizer_filters.ts | 2 +- ...index_data_visualizer_grid_in_dashboard.ts | 2 +- .../index_data_visualizer_grid_in_discover.ts | 6 +- ..._data_visualizer_grid_in_discover_basic.ts | 2 +- ..._data_visualizer_grid_in_discover_trial.ts | 2 +- .../index_data_visualizer_random_sampler.ts | 6 +- .../apps/ml/memory_usage/memory_usage_page.ts | 2 +- .../apps/ml/permissions/full_ml_access.ts | 6 +- .../functional/apps/ml/permissions/index.ts | 8 +- .../apps/ml/permissions/no_ml_access.ts | 2 +- .../apps/ml/permissions/read_ml_access.ts | 6 +- .../functional/apps/ml/short_tests/index.ts | 2 +- .../notifications/notification_list.ts | 2 +- .../short_tests/settings/calendar_creation.ts | 2 +- .../ml/short_tests/settings/calendar_edit.ts | 2 +- .../ml/stack_management_jobs/export_jobs.ts | 10 +- .../ml/stack_management_jobs/import_jobs.ts | 6 +- .../apps/ml/stack_management_jobs/index.ts | 8 +- .../ml/stack_management_jobs/manage_spaces.ts | 4 +- .../ml/stack_management_jobs/synchronize.ts | 4 +- .../apps/monitoring/beats/beat_detail.js | 2 +- .../apps/monitoring/beats/cluster.js | 2 +- .../apps/monitoring/beats/listing.js | 2 +- .../apps/monitoring/beats/overview.js | 2 +- .../apps/monitoring/cluster/list.js | 8 +- .../apps/monitoring/cluster/list_mb.js | 2 +- .../apps/monitoring/cluster/overview.js | 44 +- .../monitoring/elasticsearch/index_detail.js | 2 +- .../elasticsearch/index_detail_mb.js | 2 +- .../apps/monitoring/elasticsearch/indices.js | 11 +- .../monitoring/elasticsearch/indices_mb.js | 13 +- .../monitoring/elasticsearch/node_detail.js | 15 +- .../elasticsearch/node_detail_mb.js | 17 +- .../apps/monitoring/elasticsearch/nodes.js | 4 +- .../apps/monitoring/elasticsearch/nodes_mb.js | 4 +- .../apps/monitoring/elasticsearch/overview.js | 2 +- .../monitoring/elasticsearch/overview_mb.js | 2 +- .../apps/monitoring/elasticsearch/shards.js | 2 +- .../monitoring/enterprise_search/cluster.js | 2 +- .../monitoring/enterprise_search/overview.js | 2 +- .../apps/monitoring/kibana/instance.js | 11 +- .../apps/monitoring/kibana/instance_mb.js | 2 +- .../apps/monitoring/kibana/instances.js | 11 +- .../apps/monitoring/kibana/instances_mb.js | 2 +- .../apps/monitoring/kibana/overview.js | 11 +- .../apps/monitoring/kibana/overview_mb.js | 2 +- .../apps/monitoring/logstash/node_detail.js | 2 +- .../monitoring/logstash/node_detail_mb.js | 2 +- .../apps/monitoring/logstash/nodes.js | 2 +- .../apps/monitoring/logstash/nodes_mb.js | 2 +- .../apps/monitoring/logstash/overview.js | 2 +- .../apps/monitoring/logstash/overview_mb.js | 2 +- .../monitoring/logstash/pipeline_viewer.js | 2 +- .../monitoring/logstash/pipeline_viewer_mb.js | 2 +- .../apps/monitoring/logstash/pipelines.js | 2 +- .../apps/monitoring/logstash/pipelines_mb.js | 2 +- .../monitoring/setup/metricbeat_migration.js | 2 +- .../setup/metricbeat_migration_mb.js | 2 +- .../functional/apps/monitoring/time_filter.js | 2 +- .../reporting_management/report_listing.ts | 6 +- .../import_saved_objects_between_versions.ts | 6 +- .../multi_space_import.ts | 6 +- .../feature_controls/create_security_tests.ts | 297 ++ .../apps/security/doc_level_security_roles.ts | 2 +- .../apps/security/field_level_security.ts | 4 +- .../security/remote_cluster_security_roles.ts | 2 +- .../apps/security/secure_roles_perm.ts | 4 +- .../apps/transform/actions/deleting.ts | 2 +- .../apps/transform/actions/index.ts | 4 +- .../apps/transform/actions/reauthorizing.ts | 2 +- .../apps/transform/actions/resetting.ts | 2 +- .../apps/transform/actions/starting.ts | 2 +- .../index_pattern/creation_index_pattern.ts | 2 +- .../transform/creation/index_pattern/index.ts | 4 +- .../creation_runtime_mappings.ts | 2 +- .../creation_saved_search.ts | 2 +- .../runtime_mappings_saved_search/index.ts | 4 +- .../apps/transform/edit_clone/cloning.ts | 2 +- .../apps/transform/edit_clone/editing.ts | 2 +- .../apps/transform/edit_clone/index.ts | 4 +- .../apps/transform/feature_controls/index.ts | 4 +- .../permissions/full_transform_access.ts | 2 +- .../apps/transform/permissions/index.ts | 4 +- .../permissions/read_transform_access.ts | 2 +- .../feature_controls/visualize_security.ts | 4 +- .../feature_controls/visualize_spaces.ts | 6 +- .../apps/visualize/hybrid_visualization.ts | 8 +- .../apps/visualize/precalculated_histogram.ts | 4 +- .../functional/apps/visualize/reporting.ts | 8 +- .../functional/apps/visualize/telemetry.ts | 4 +- .../functional/page_objects/security_page.ts | 4 +- .../aiops/log_rate_analysis_data_generator.ts | 8 +- .../apps/ml/data_visualizer/group1/index.ts | 6 +- .../apps/ml/data_visualizer/group2/index.ts | 6 +- .../apps/ml/data_visualizer/group3/index.ts | 6 +- .../index_data_visualizer_actions_panel.ts | 2 +- .../apps/ml/permissions/full_ml_access.ts | 2 +- .../apps/ml/permissions/index.ts | 6 +- .../apps/ml/permissions/read_ml_access.ts | 2 +- .../apps/cases/group1/view_case.ts | 6 +- .../apps/cases/group2/attachment_framework.ts | 18 +- .../apps/discover_ml/ml/alert_flyout.ts | 2 +- .../apps/discover_ml/ml/index.ts | 2 +- .../test/localization/tests/lens/index.ts | 2 +- .../event_log/public_api_integration.ts | 12 +- .../test_suites/task_manager/migrations.ts | 4 +- .../task_management_removed_types.ts | 6 +- .../task_management_scheduled_at.ts | 4 +- .../bwc_existing_indexes.ts | 4 +- .../csv/generate_csv_discover.ts | 12 +- .../reporting_and_security/list_jobs.ts | 6 +- .../csv/job_apis_csv.ts | 4 +- .../services/scenarios.ts | 8 +- .../reporting_and_security/download.ts | 55 + .../tests/basic/bulk_update_alerts.ts | 4 +- .../tests/basic/find_alerts.ts | 4 +- .../tests/basic/get_alert_by_id.ts | 4 +- .../tests/basic/get_alert_summary.ts | 6 +- .../tests/basic/get_alerts_index.ts | 4 +- .../get_browser_fields_by_rule_type_ids.ts | 4 +- .../tests/basic/update_alert.ts | 4 +- .../tests/trial/get_alerts.ts | 4 +- .../tests/trial/update_alert.ts | 4 +- .../tests/trial/get_alert_by_id.ts | 4 +- .../spaces_only/tests/trial/update_alert.ts | 4 +- .../generate_anomaly_alerts.ts | 2 +- .../apps/dashboard/async_search/index.ts | 4 +- .../apps/dashboard/session_sharing/index.ts | 4 +- .../tests/apps/discover/async_search.ts | 4 +- .../tests/apps/discover/index.ts | 4 +- .../tests/apps/lens/index.ts | 4 +- .../tests/apps/lens/search_sessions.ts | 4 +- .../apps/management/search_sessions/index.ts | 8 +- .../test_suites/reporting/datastream.ts | 2 +- .../reporting/generate_csv_discover.ts | 12 +- .../test_suites/task_manager/migrations.ts | 4 +- .../task_management_removed_types.ts | 6 +- .../task_management_scheduled_at.ts | 4 +- .../upgrade_assistant/reindexing.ts | 8 +- .../observability_security.ts | 4 +- .../cloud_security_posture/benchmark/v1.ts | 4 +- .../cloud_security_posture/benchmark/v2.ts | 4 +- .../find_csp_benchmark_rule.ts | 4 +- .../apis/cloud_security_posture/rules/v1.ts | 4 +- .../apis/cloud_security_posture/rules/v2.ts | 4 +- .../status/status_index_timeout.ts | 6 +- .../status/status_indexed.ts | 6 +- .../status/status_indexing.ts | 6 +- .../status_not_deployed_not_installed.ts | 6 +- .../status/status_unprivileged.ts | 12 +- .../status/status_waiting_for_results.ts | 6 +- .../tests/common/cases/delete_cases.ts | 8 +- .../tests/common/cases/patch_cases.ts | 18 +- .../common/client/update_alert_status.ts | 4 +- .../tests/common/comments/delete_comment.ts | 8 +- .../tests/common/comments/delete_comments.ts | 8 +- .../tests/common/comments/post_comment.ts | 8 +- .../internal/bulk_create_attachments.ts | 8 +- .../tests/trial/cases/push_case.ts | 6 +- .../pages/rules/rules_counters.ts | 169 ++ .../pages/rules/rules_table.ts | 210 ++ .../pages/rules/rules_table_headers.ts | 136 + .../apis/agents/status.ts | 4 +- .../apis/package_policy/get.ts | 4 +- .../apis/package_policy/update.ts | 4 +- .../alerts_legacy/rules/mappings.json | 2522 ----------------- .../es_archives/alerts_legacy/tasks/data.json | 158 -- .../alerts_legacy/tasks/mappings.json | 120 - .../es_archives/beats/list/data.json | 171 -- .../process_events/data.json | 228 -- .../process_events/mappings.json | 32 - .../functional/es_archives/lists/data.json | 85 - .../es_archives/lists/mappings.json | 2461 ---------------- .../es_archives/security/dlstest/data.json.gz | Bin 134 -> 0 bytes .../security/dlstest/mappings.json | 34 - .../es_archive_path_builder/index.ts | 14 + .../check_privileges.ts | 4 +- .../perform_bulk_action.ts | 4 +- .../tests/host_details.ts | 5 +- .../tests/hosts.ts | 5 +- .../tests/uncommon_processes.ts | 6 +- .../tests/network_details.ts | 5 +- .../tests/network_top_n_flow.ts | 5 +- .../tests/overview_host.ts | 5 +- .../tests/overview_network.ts | 13 +- .../tests/authentications.ts | 5 +- .../tests/users.ts | 5 +- .../investigation/timeline/tests/events.ts | 4 +- .../timeline/tests/timeline_details.ts | 5 +- .../trial_license_complete_tier/sources.ts | 4 +- .../cloud_security_posture/benchmark/v1.ts | 4 +- .../cloud_security_posture/benchmark/v2.ts | 4 +- .../find_csp_benchmark_rule.ts | 4 +- .../cloud_security_metering.ts | 4 +- .../status/status_indexed.ts | 6 +- .../status/status_indexing.ts | 6 +- .../status_not_deployed_not_installed.ts | 6 +- .../cloud_security_posture/telemetry.ts | 4 +- .../discover/group4/_adhoc_data_views.ts | 2 +- .../common/discover/x_pack/reporting.ts | 4 +- .../common/discover/x_pack/visualize_field.ts | 6 +- .../customizations.ts | 6 +- .../common/examples/search_examples/index.ts | 6 +- .../field_stats.ts | 6 +- .../management/transforms/transform_list.ts | 6 +- .../common/visualizations/group1/index.ts | 2 +- .../group2/open_in_lens/agg_based/index.ts | 2 +- .../group3/open_in_lens/tsvb/index.ts | 2 +- .../common/visualizations/group5/index.ts | 2 +- .../common/visualizations/group6/index.ts | 2 +- .../cases/attachment_framework.ts | 6 +- .../ml/anomaly_detection_jobs_list.ts | 6 +- .../search/cases/attachment_framework.ts | 6 +- .../search/dashboards/build_dashboard.ts | 6 +- .../search/dashboards/import_dashboard.ts | 6 +- .../ml/anomaly_detection_jobs_list.ts | 6 +- .../ml/data_frame_analytics_jobs_list.ts | 2 +- 834 files changed, 4003 insertions(+), 6893 deletions(-) create mode 100644 src/platform/test/examples/unified_tabs_examples/manage_tabs.ts rename x-pack/{test/functional => platform/test/fixtures}/es_archives/action_task_params/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/actions/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerting/8_2_0/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerting/8_2_0/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerts/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/default/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/default/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/hosts/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/hosts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/overview/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/overview/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/uncommon_processes/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/uncommon_processes/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/users/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/auditbeat/users/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/canvas/logstash_lens/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/canvas/logstash_lens/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/default/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/default/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.11.1/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.11.1/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.13.2/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.13.2/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.13_user_actions/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.13_user_actions/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.16.0_space/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/7.16.0_space/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/8.8.0/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/migrations/8.8.0/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/default/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/default/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/duplicate_ids/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/duplicate_ids/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/hosts_users/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/cases/signals/hosts_users/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/dashboard/async_search/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/data/search_sessions/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/data/search_sessions/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/event_log_legacy_ids/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/event_log_legacy_ids/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/event_log_multiple_indicies/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/event_log_multiple_indicies/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/default/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/default/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/kpi_hosts/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/kpi_hosts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/threat_intel/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/filebeat/threat_intel/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/fleet/agents/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/fleet/agents/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/fleet/empty_fleet_server/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/fleet/fleet_server/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/fleet/fleet_server/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/getting_started/shakespeare/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/getting_started/shakespeare/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/graph/secrepo/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/graph/secrepo/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/hybrid/logstash/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/hybrid/logstash/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/hybrid/rollup/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/hybrid/rollup/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/large_arrays/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/large_arrays/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/lens/epoch_millis/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/lens/epoch_millis/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/lens/rollup/data/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/lens/rollup/data/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/logstash/example_pipelines/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/logstash_functional/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/logstash_functional/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/maps/data/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/maps/data/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/bm_classification/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/bm_classification/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/categorization/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/categorization/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/categorization_small/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/categorization_small/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/ecommerce/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/ecommerce/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/egs_regression/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/egs_regression/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/event_rate_nanos/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/event_rate_nanos/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/farequote/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/farequote/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/farequote_small/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/farequote_small/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/ihp_outlier/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/ihp_outlier/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apache/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apache/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apache_data_stream/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apache_data_stream/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apm_transaction/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_apm_transaction/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_auditbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_auditbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_heartbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_heartbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_logs/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_logs/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_metricbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_metricbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_metrics_ui/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_metrics_ui/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_nginx/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_nginx/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_nginx_data_stream/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_nginx_data_stream/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_sample_ecommerce/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_sample_ecommerce/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_sample_logs/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_sample_logs/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_auditbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_auditbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_cloudtrail/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_cloudtrail/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_endpoint/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_endpoint/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_packetbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_packetbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_winlogbeat/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/ml/module_security_winlogbeat/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/apm/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/apm/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/basic_6.3.x/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/basic_6.3.x/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/basic_6.3.x_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/basic_6.3.x_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/beats/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/beats/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/beats_with_restarted_instance/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/beats_with_restarted_instance/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/ccr/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/ccr/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/ent_search/with_es/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/ent_search/with_es/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_multiple_clusters/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_multiple_clusters/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_multiple_clusters_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logs_multiple_clusters_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash/changing_pipelines/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash/changing_pipelines/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash_pipelines/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash_pipelines/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash_pipelines_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash_pipelines_multicluster/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/logstash_pipelines_multicluster/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multi_basic/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multi_basic/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multi_basic_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multi_basic_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multicluster/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multicluster/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multicluster_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multicluster_package/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/multicluster_package/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_apm/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_apm/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_management/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_management/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_management_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_management_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_beats_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_logstash/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_logstash/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_logstash_management/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/detect_logstash_management/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana_exclusive/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_7/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana_exclusive_mb_8/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/es_and_kibana_mb_8/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_exclusive/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_exclusive/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_exclusive_mb_7/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_exclusive_mb_8/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/setup/collection/kibana_mb_8/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_basic_beats/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_basic_beats/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_basic_beats_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_basic_beats_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_gold/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_gold/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_gold_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_gold_package/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_gold_package/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_platinum/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_platinum/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_green_trial_two_nodes_one_cgrouped_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_lots_of_nodes/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_lots_of_nodes/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_lots_of_nodes_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_lots_of_nodes_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_red_platinum/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_red_platinum/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_red_platinum_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_red_platinum_package/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_red_platinum_package/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_three_nodes_shard_relocation/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_three_nodes_shard_relocation_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_basic/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_basic/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_basic_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_basic_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/singlecluster_yellow_platinum_with_10_alerts_mb/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/standalone_cluster/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/standalone_cluster/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/monitoring/standalone_cluster_mb/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/pre_calculated_histogram/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/pre_calculated_histogram/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/archived_reports/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/archived_reports/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/big_int_id_field/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/big_int_id_field/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/bwc/6_2/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/bwc/6_2/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/bwc/6_3/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/bwc/6_3/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/ecommerce/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/ecommerce/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/ecommerce_76/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/ecommerce_76/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/errors/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/errors/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/hugedata/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/nanos/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/nanos/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/sales/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/sales/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/unmapped_fields/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/reporting/unmapped_fields/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rule_registry/alerts/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rule_registry/alerts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rule_registry/o11y_alerts/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rule_registry/o11y_alerts/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rules_scheduled_task_id/rules/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rules_scheduled_task_id/rules/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rules_scheduled_task_id/tasks/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/rules_scheduled_task_id/tasks/mappings.json (100%) rename x-pack/{test/functional/es_archives => platform/test/fixtures/es_archives/security}/dlstest/data.json.gz (100%) rename x-pack/{test/functional/es_archives => platform/test/fixtures/es_archives/security}/dlstest/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/security/flstest/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/security/flstest/data/data.json.gz (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/security/flstest/data/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/security/flstest/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/task_manager_removed_types/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/task_manager_removed_types/mappings.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/task_manager_tasks/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/upgrade_assistant/reindex/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/visualize/default/data.json (100%) create mode 100644 x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts create mode 100644 x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts create mode 100644 x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts create mode 100644 x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts create mode 100644 x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts create mode 100644 x-pack/platform/test/reporting_functional/reporting_and_security/download.ts create mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts create mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts create mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts delete mode 100644 x-pack/test/functional/es_archives/alerts_legacy/rules/mappings.json delete mode 100644 x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json delete mode 100644 x-pack/test/functional/es_archives/alerts_legacy/tasks/mappings.json delete mode 100644 x-pack/test/functional/es_archives/beats/list/data.json delete mode 100644 x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json delete mode 100644 x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json delete mode 100644 x-pack/test/functional/es_archives/lists/data.json delete mode 100644 x-pack/test/functional/es_archives/lists/mappings.json delete mode 100644 x-pack/test/functional/es_archives/security/dlstest/data.json.gz delete mode 100644 x-pack/test/functional/es_archives/security/dlstest/mappings.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7bb16bdabf586..21378a7994f3e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1161,11 +1161,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/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 @@ -1183,7 +1183,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/constant_keyword.json @elastic/kibana-visualizations ^/src/platform/test/plugin_functional/test_suites/custom_visualizations @elastic/kibana-visualizations @@ -1220,8 +1220,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 @@ -1417,7 +1417,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 @@ -1427,7 +1427,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 @@ -1533,18 +1533,18 @@ 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/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 -^/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 -^/src/platform/test/interpreter_functional/snapshots @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/54342 -^/src/platform/test/functional/services/inspector.ts @elastic/kibana-presentation +/x-pack/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 +/src/platform/test/interpreter_functional/snapshots @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/54342 +/src/platform/test/functional/services/inspector.ts @elastic/kibana-presentation /x-pack/platform/test/functional/services/canvas_element.ts @elastic/kibana-presentation /x-pack/platform/test/functional/page_objects/canvas_page.ts @elastic/kibana-presentation /x-pack/platform/test/accessibility/apps/group3/canvas.ts @elastic/kibana-presentation @@ -1572,7 +1572,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/functional/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 @@ -1581,7 +1581,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 @@ -1595,8 +1595,8 @@ 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/functional/services/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 /x-pack/platform/test/functional_with_es_ssl/apps/discover_ml/ml/ @elastic/ml-ui @@ -1622,7 +1622,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/test/functional/services/aiops @elastic/ml-ui /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 @@ -1667,11 +1667,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 @@ -1975,7 +1973,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 @@ -2008,7 +2006,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 @@ -2086,9 +2084,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 @@ -2111,7 +2109,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 @@ -2147,21 +2145,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 @@ -2192,7 +2189,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi # 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 @@ -2303,14 +2300,14 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /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/functional/es_archives/auditbeat/hosts @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 @@ -2768,7 +2765,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 new file mode 100644 index 0000000000000..8485dbb9cebda --- /dev/null +++ b/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts @@ -0,0 +1,208 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import expect from '@kbn/expect'; +import { Key } from 'selenium-webdriver'; +import type { FtrProviderContext } from '../../functional/ftr_provider_context'; + +// eslint-disable-next-line import/no-default-export +export default ({ getService, getPageObjects }: FtrProviderContext) => { + const { common, header, unifiedTabs } = getPageObjects(['common', 'header', 'unifiedTabs']); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); + const browser = getService('browser'); + const retry = getService('retry'); + const testSubjects = getService('testSubjects'); + + const openTabContextMenuWithKeyboard = async () => { + await browser.getActions().keyDown(Key.SHIFT).sendKeys(browser.keys.F10).perform(); + await browser.getActions().keyUp(Key.SHIFT).perform(); + await retry.waitFor('open tab context menu', async () => { + return await testSubjects.exists('unifiedTabs_tabMenuItem_enterRenamingMode'); + }); + }; + + describe('Managing Unified Tabs', () => { + before(async () => { + await browser.setWindowSize(1200, 800); + await kibanaServer.savedObjects.cleanStandardList(); + await kibanaServer.importExport.load( + 'src/platform/test/functional/fixtures/kbn_archiver/discover.json' + ); + await esArchiver.loadIfNeeded( + 'src/platform/test/functional/fixtures/es_archiver/logstash_functional' + ); + await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); + }); + + beforeEach(async () => { + await common.navigateToApp('unifiedTabsExamples'); + await header.waitUntilLoadingHasFinished(); + }); + + after(async () => { + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); + await kibanaServer.savedObjects.cleanStandardList(); + }); + + it('should show tabs in a responsive way', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect(await unifiedTabs.isScrollable()).to.be(false); + expect((await unifiedTabs.getTabWidths()).every((width) => width === 112)).to.be(true); + + await unifiedTabs.editTabLabel(0, 'Very long tab label'); + expect((await unifiedTabs.getTabWidths()).at(0)).to.be.greaterThan(139); + expect((await unifiedTabs.getTabWidths()).slice(1).every((width) => width === 112)).to.be( + true + ); + + await unifiedTabs.createNewTab(); + await unifiedTabs.createNewTab(); + expect((await unifiedTabs.getTabWidths()).at(0)).to.be.greaterThan(112); + expect((await unifiedTabs.getTabWidths()).at(0)).to.be.lessThan(148); + expect((await unifiedTabs.getTabWidths()).slice(1).every((width) => width === 112)).to.be( + true + ); + + await unifiedTabs.createNewTab(); + await unifiedTabs.createNewTab(); + await unifiedTabs.createNewTab(); + expect(await unifiedTabs.getNumberOfTabs()).to.be(12); + await unifiedTabs.waitForScrollButtons(); + expect((await unifiedTabs.getTabWidths()).every((width) => width === 112)).to.be(true); + }); + + it('can edit tab label', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); + await unifiedTabs.editTabLabel(3, 'Test label'); + expect(await unifiedTabs.getTabLabels()).to.eql([ + 'Untitled 1', + 'Untitled 2', + 'Untitled 3', + 'Test label', + 'Untitled 5', + 'Untitled 6', + 'Untitled 7', + ]); + }); + + it('can edit tab label with keyboard events', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + await unifiedTabs.createNewTab(); + await openTabContextMenuWithKeyboard(); + await browser.pressKeys(browser.keys.ARROW_DOWN); + await browser.pressKeys(browser.keys.ENTER); + await unifiedTabs.enterNewTabLabel('Test label'); + expect(await unifiedTabs.getTabLabels()).to.eql([ + 'Untitled 1', + 'Untitled 2', + 'Untitled 3', + 'Untitled 4', + 'Untitled 5', + 'Untitled 6', + 'Untitled 7', + 'Test label', + ]); + }); + + it('should support mouse events for navigating between tabs', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); + await unifiedTabs.createNewTab(); + expect(await unifiedTabs.getNumberOfTabs()).to.be(8); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); + await unifiedTabs.selectTab(5); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 6'); + await unifiedTabs.selectTab(6); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); + await unifiedTabs.closeTab(6); + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); + await unifiedTabs.openTabMenu(6); + expect(await unifiedTabs.getContextMenuItems()).to.eql([ + 'Rename', + 'Duplicate', + 'Close other tabs', + ]); + }); + + it('should support keyboard events for navigating between tabs', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); + await unifiedTabs.createNewTab(); + expect(await unifiedTabs.getNumberOfTabs()).to.be(8); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); + await browser.pressKeys(browser.keys.ARROW_LEFT); + await browser.pressKeys(browser.keys.ARROW_LEFT); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 6'); + await browser.pressKeys(browser.keys.ARROW_RIGHT); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); + await browser.pressKeys(browser.keys.DELETE); + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); + await openTabContextMenuWithKeyboard(); + expect(await unifiedTabs.getContextMenuItems()).to.eql([ + 'Rename', + 'Duplicate', + 'Close other tabs', + ]); + }); + + it('should support drag and drop for reordering tabs', async () => { + expect(await unifiedTabs.getNumberOfTabs()).to.be(7); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); + await unifiedTabs.createNewTab(); + expect(await unifiedTabs.getNumberOfTabs()).to.be(8); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); + expect(await unifiedTabs.getTabLabels()).to.eql([ + 'Untitled 1', + 'Untitled 2', + 'Untitled 3', + 'Untitled 4', + 'Untitled 5', + 'Untitled 6', + 'Untitled 7', + 'Untitled 8', + ]); + await browser.pressKeys(browser.keys.ARROW_LEFT); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); + await browser.pressKeys(browser.keys.SPACE); + await browser.pressKeys(browser.keys.ARROW_LEFT); + await browser.pressKeys(browser.keys.ARROW_LEFT); + await browser.pressKeys(browser.keys.SPACE); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); + expect(await unifiedTabs.getTabLabels()).to.eql([ + 'Untitled 1', + 'Untitled 2', + 'Untitled 3', + 'Untitled 4', + 'Untitled 7', + 'Untitled 5', + 'Untitled 6', + 'Untitled 8', + ]); + await browser.pressKeys(browser.keys.ARROW_RIGHT); + expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 5'); + await browser.pressKeys(browser.keys.SPACE); + await browser.pressKeys(browser.keys.ARROW_RIGHT); + await browser.pressKeys(browser.keys.SPACE); + expect(await unifiedTabs.getTabLabels()).to.eql([ + 'Untitled 1', + 'Untitled 2', + 'Untitled 3', + 'Untitled 4', + 'Untitled 7', + 'Untitled 6', + 'Untitled 5', + 'Untitled 8', + ]); + }); + }); +}; 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 29989e7b087f0..eef3700191a74 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 0667d2d3cddd4..c42efdc312327 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 @@ -194,12 +194,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'); @@ -238,9 +238,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 63effdcd0ee57..af0a2c27860c8 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 81fae539a981d..292afdc5ad83c 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 @@ -15,10 +15,10 @@ export default function typeNotEnabledTests({ getService }: FtrProviderContext) const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); - describe('actionType not enabled', () => { - // loads action PREWRITTEN_ACTION_ID with actionType DISABLED_ACTION_TYPE - before(() => esArchiver.load('x-pack/test/functional/es_archives/actions')); - after(() => esArchiver.unload('x-pack/test/functional/es_archives/actions')); + describe('connectorType not enabled', () => { + // loads connector PREWRITTEN_CONNECTOR_ID with connectorType DISABLED_CONNECTOR_TYPE + 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 action with disabled actionType request appropriately', async () => { const response = await supertest.post(`/api/actions/action`).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 27479be2dd2c0..c949ff6af07b9 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 d497eafc09c8d..6111e39f869ac 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 5706a3255fc86..76c016fc89305 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 cb236a6ea47d0..4fcc89237b9de 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 2caed9ef00369..718989024b942 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 af8d30069d140..13afc2cdf2ebc 100644 --- a/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts +++ b/x-pack/platform/test/api_integration/apis/telemetry/telemetry.ts @@ -130,7 +130,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'; @@ -207,7 +207,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 () => { @@ -236,7 +236,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 ded34297dedca..d5b8920b184ff 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 @@ -135,11 +135,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 () => { @@ -186,11 +188,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', () => { @@ -280,11 +284,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', () => { @@ -352,12 +358,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 a9d285d3cd6b6..1620157fc512a 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 @@ -376,11 +376,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 () => { @@ -497,13 +499,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { 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_removed_types/mappings.json b/x-pack/platform/test/fixtures/es_archives/task_manager_removed_types/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/task_manager_removed_types/mappings.json rename to x-pack/platform/test/fixtures/es_archives/task_manager_removed_types/mappings.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 911b73d2eacf2..6d26b91e955b0 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(); @@ -162,7 +162,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(); }); @@ -180,7 +180,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 () => { @@ -649,7 +651,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!); @@ -664,7 +666,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}`); } @@ -1154,7 +1156,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(); @@ -1170,7 +1172,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 () => { @@ -1663,10 +1667,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 () => { @@ -1814,7 +1820,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(); @@ -1848,7 +1854,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 () => { 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 new file mode 100644 index 0000000000000..884c1f248c684 --- /dev/null +++ b/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts @@ -0,0 +1,282 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { CreateAgentPolicyResponse } from '@kbn/fleet-plugin/common'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; + +export default function (providerContext: FtrProviderContext) { + const { getService } = providerContext; + const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); + const fleetAndAgents = getService('fleetAndAgents'); + + const createOutput = async ({ + name, + id, + type, + hosts, + }: { + name: string; + id: string; + type: string; + hosts: string[]; + }): Promise => { + const res = await supertest + .post(`/api/fleet/outputs`) + .set('kbn-xsrf', 'xxxx') + .send({ + id, + name, + type, + hosts, + }) + .expect(200); + return res.body.item.id; + }; + + const createAgentPolicy = async ( + name: string, + id: string, + dataOutputId?: string, + monitoringOutputId?: string + ): Promise => { + const res = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name, + id, + namespace: 'default', + ...(dataOutputId ? { data_output_id: dataOutputId } : {}), + ...(monitoringOutputId ? { monitoring_output_id: monitoringOutputId } : {}), + }) + .expect(200); + return res.body.item; + }; + + const createAgentPolicyWithPackagePolicy = async ({ + name, + id, + outputId, + }: { + name: string; + id: string; + outputId?: string; + }): Promise => { + const { body: res } = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name, + namespace: 'default', + id, + }) + .expect(200); + + const agentPolicyWithPPId = res.item.id; + // package policy needs to have a custom output_id + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xxxx') + .send({ + name: 'filetest-1', + description: '', + namespace: 'default', + ...(outputId ? { output_id: outputId } : {}), + policy_id: agentPolicyWithPPId, + inputs: [], + package: { + name: 'filetest', + title: 'For File Tests', + version: '0.1.0', + }, + }) + .expect(200); + return res.item; + }; + + let output1Id = ''; + describe('fleet_agent_policies_outputs', () => { + describe('POST /api/fleet/agent_policies/outputs', () => { + before(async () => { + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await kibanaServer.savedObjects.cleanStandardList(); + await fleetAndAgents.setup(); + + output1Id = await createOutput({ + name: 'Output 1', + id: 'logstash-output-1', + type: 'logstash', + hosts: ['test.fr:443'], + }); + }); + after(async () => { + await supertest + .delete(`/api/fleet/outputs/${output1Id}`) + .set('kbn-xsrf', 'xxxx') + .expect(200); + }); + + it('should get a list of outputs by agent policies', async () => { + await createAgentPolicy('Agent policy with default output', 'agent-policy-1'); + await createAgentPolicy( + 'Agent policy with custom output', + 'agent-policy-2', + output1Id, + output1Id + ); + + const outputsPerPoliciesRes = await supertest + .post(`/api/fleet/agent_policies/outputs`) + .set('kbn-xsrf', 'xxxx') + .send({ + ids: ['agent-policy-1', 'agent-policy-2'], + }) + .expect(200); + expect(outputsPerPoliciesRes.body.items).to.eql([ + { + agentPolicyId: 'agent-policy-1', + monitoring: { + output: { + name: 'default', + id: 'fleet-default-output', + }, + }, + data: { + output: { + name: 'default', + id: 'fleet-default-output', + }, + integrations: [], + }, + }, + { + agentPolicyId: 'agent-policy-2', + monitoring: { + output: { + name: 'Output 1', + id: 'logstash-output-1', + }, + }, + data: { + output: { + name: 'Output 1', + id: 'logstash-output-1', + }, + integrations: [], + }, + }, + ]); + // clean up policies + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId: 'agent-policy-1' }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId: 'agent-policy-2' }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + }); + }); + + let output2Id = ''; + describe('GET /api/fleet/agent_policies/{agentPolicyId}/outputs', () => { + before(async () => { + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + await kibanaServer.savedObjects.cleanStandardList(); + await fleetAndAgents.setup(); + + output2Id = await createOutput({ + name: 'ES Output 1', + id: 'es-output-1', + type: 'elasticsearch', + hosts: ['https://test.fr:8080'], + }); + }); + after(async () => { + await supertest + .delete(`/api/fleet/outputs/${output2Id}`) + .set('kbn-xsrf', 'xxxx') + .expect(200); + }); + + it('should get the list of outputs related to an agentPolicy id', async () => { + await createAgentPolicy('Agent policy with ES output', 'agent-policy-custom', output2Id); + + const outputsPerPoliciesRes = await supertest + .get(`/api/fleet/agent_policies/agent-policy-custom/outputs`) + .set('kbn-xsrf', 'xxxx') + .expect(200); + expect(outputsPerPoliciesRes.body.item).to.eql({ + monitoring: { + output: { + name: 'default', + id: 'fleet-default-output', + }, + }, + data: { + output: { + name: 'ES Output 1', + id: 'es-output-1', + }, + integrations: [], + }, + }); + + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId: 'agent-policy-custom' }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + }); + + it('should also list the outputs set on integrations if any', async () => { + await createAgentPolicyWithPackagePolicy({ + name: 'Agent Policy with package policy', + id: 'agent-policy-custom-2', + outputId: output2Id, + }); + + const outputsPerPoliciesRes = await supertest + .get(`/api/fleet/agent_policies/agent-policy-custom-2/outputs`) + .set('kbn-xsrf', 'xxxx') + .expect(200); + expect(outputsPerPoliciesRes.body.item).to.eql({ + monitoring: { + output: { + name: 'default', + id: 'fleet-default-output', + }, + }, + data: { + output: { + name: 'default', + id: 'fleet-default-output', + }, + integrations: [ + { + id: 'es-output-1', + integrationPolicyName: 'filetest-1', + name: 'ES Output 1', + }, + ], + }, + }); + + await supertest + .post(`/api/fleet/agent_policies/delete`) + .send({ agentPolicyId: 'agent-policy-custom-2' }) + .set('kbn-xsrf', 'xxxx') + .expect(200); + }); + }); + }); +} 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 f9c83c3fc3146..9a3adee2a2794 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 @@ -88,14 +88,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 57b367f8c4bd0..251b5dc2a18ca 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 8c98ec03a8ece..89c9693b25dd1 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 @@ -19,7 +19,7 @@ export default function ({ getService }: FtrProviderContext) { // Failing: See https://github.com/elastic/kibana/issues/170690 describe.skip('fleet_list_agent', () => { 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') @@ -35,7 +35,7 @@ export default function ({ getService }: FtrProviderContext) { .expect(200); }); 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/migrate.ts b/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts new file mode 100644 index 0000000000000..2c6209b5abf74 --- /dev/null +++ b/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts @@ -0,0 +1,276 @@ +/* + * 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 { AGENTS_INDEX } from '@kbn/fleet-plugin/common'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; + +export default function (providerContext: FtrProviderContext) { + const { getService } = providerContext; + const esArchiver = getService('esArchiver'); + const supertest = getService('supertest'); + const es = getService('es'); + + describe('fleet_agents_migrate', () => { + before(async () => { + 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 + const policy1Response = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xx') + .send({ + name: 'Policy 1', + namespace: 'default', + description: 'Test policy 1', + monitoring_enabled: ['logs', 'metrics'], + }) + .expect(200); + + const policy1 = policy1Response.body.item; + + // Policy 2 - with tamper protection + const policy2Response = await supertest + .post(`/api/fleet/agent_policies`) + .set('kbn-xsrf', 'xx') + .send({ + name: 'Policy 2', + namespace: 'default', + description: 'Test policy 2 with tamper protection', + monitoring_enabled: ['logs', 'metrics'], + }) + .expect(200); + + const policy2 = policy2Response.body.item; + + // First, install the endpoint package which is required for the endpoint package policy + await supertest + .post('/api/fleet/epm/packages/endpoint') + .set('kbn-xsrf', 'xx') + .send({ force: true }) + .expect(200); + + // Fetch the installed package to get its current version + const packageInfoResponse = await supertest + .get('/api/fleet/epm/packages/endpoint') + .set('kbn-xsrf', 'xx') + .expect(200); + + const endpointPackageVersion = packageInfoResponse.body.item.version; + + // Create Elastic Defend package policy for policy2 with proper configuration + await supertest + .post(`/api/fleet/package_policies`) + .set('kbn-xsrf', 'xx') + .send({ + name: 'endpoint-1', + description: 'Endpoint Security Integration', + namespace: 'default', + policy_id: policy2.id, + enabled: true, + inputs: [ + { + type: 'endpoint', + enabled: true, + streams: [], + config: { + policy: { + value: { + windows: { + events: { + dll_and_driver_load: true, + dns: true, + file: true, + network: true, + process: true, + registry: true, + security: true, + }, + malware: { mode: 'prevent' }, + ransomware: { mode: 'prevent' }, + memory_protection: { mode: 'prevent' }, + behavior_protection: { mode: 'prevent' }, + popup: { + malware: { enabled: true, message: '' }, + ransomware: { enabled: true, message: '' }, + }, + }, + mac: { + events: { file: true, network: true, process: true }, + malware: { mode: 'prevent' }, + behavior_protection: { mode: 'prevent' }, + popup: { malware: { enabled: true, message: '' } }, + }, + linux: { + events: { file: true, network: true, process: true }, + malware: { mode: 'prevent' }, + behavior_protection: { mode: 'prevent' }, + popup: { malware: { enabled: true, message: '' } }, + }, + }, + }, + }, + }, + ], + package: { + name: 'endpoint', + title: 'Elastic Defend', + version: endpointPackageVersion, // Use the actual installed version + }, + }) + .expect(200); + + // Now enable tamper protection on policy2 + await supertest + .put(`/api/fleet/agent_policies/${policy2.id}`) + .set('kbn-xsrf', 'xx') + .send({ + name: policy2.name, + namespace: 'default', + description: policy2.description, + is_protected: true, // Enable tamper protection + }) + .expect(200); + + // Create agents in Elasticsearch + await es.index({ + refresh: 'wait_for', + index: AGENTS_INDEX, + id: 'agent1', + document: { + policy_id: policy1.id, + }, + }); + + await es.index({ + refresh: 'wait_for', + index: AGENTS_INDEX, + id: 'agent2', + document: { + policy_id: policy2.id, // Policy 2 is tamper protected + }, + }); + await es.index({ + refresh: 'wait_for', + index: AGENTS_INDEX, + id: 'agent3', + document: { + policy_id: policy1.id, + components: [ + { + type: 'fleet-server', + id: 'fleet-server', + revision: 1, + }, + ], + }, + }); + }); + + after(async () => { + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); + // Cleanup will be handled automatically by Fleet API + }); + + describe('POST /agents/{agentId}/migrate', () => { + it('should return a 200 if the migration action is successful', async () => { + const {} = await supertest + .post(`/api/fleet/agents/agent1/migrate`) + .set('kbn-xsrf', 'xx') + .send({ + enrollment_token: '1234', + uri: 'https://example.com', + }) + .expect(200); + }); + + it('should return a 403 if the agent is tamper protected', async () => { + const {} = await supertest + .post(`/api/fleet/agents/agent2/migrate`) + .set('kbn-xsrf', 'xx') + .send({ + enrollment_token: '1234', + uri: 'https://example.com', + }) + .expect(403); + }); + + it('should return a 403 if the agent is a fleet-agent', async () => { + const {} = await supertest + .post(`/api/fleet/agents/agent3/migrate`) + .set('kbn-xsrf', 'xx') + .send({ + enrollment_token: '1234', + uri: 'https://example.com', + }) + .expect(403); + }); + + it('should return a 404 when agent does not exist', async () => { + await supertest + .post(`/api/fleet/agents/agent100/migrate`) + .set('kbn-xsrf', 'xx') + .send({ + enrollment_token: '1234', + uri: 'https://example.com', + }) + .expect(404); + }); + }); + + // Bulk migrate agents + describe('POST /agents/bulk_migrate', () => { + it('should return a 200 if the migration action is successful', async () => { + const {} = await supertest + .post(`/api/fleet/agents/bulk_migrate`) + .set('kbn-xsrf', 'xx') + .send({ + agents: ['agent1'], + uri: 'https://example.com', + enrollment_token: '1234', + }) + .expect(200); + }); + + it('should return a 403 if any agent is tamper protected', async () => { + const {} = await supertest + .post(`/api/fleet/agents/bulk_migrate`) + .set('kbn-xsrf', 'xx') + .send({ + agents: ['agent1', 'agent2'], + uri: 'https://example.com', + enrollment_token: '1234', + }) + .expect(403); + }); + + it('should return a 403 if any agent is a fleet-agent', async () => { + const {} = await supertest + .post(`/api/fleet/agents/bulk_migrate`) + .set('kbn-xsrf', 'xx') + .send({ + agents: ['agent1', 'agent3'], + uri: 'https://example.com', + enrollment_token: '1234', + }) + .expect(403); + }); + + it('should return a 404 when any agent does not exist', async () => { + await supertest + .post(`/api/fleet/agents/bulk_migrate`) + .set('kbn-xsrf', 'xx') + .send({ + agents: ['agent100', 'agent400', 'agent1'], + uri: 'https://example.com', + enrollment_token: '1234', + }) + .expect(404); + }); + }); + }); +} 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 9bbb2d1091dab..5eafbb89b846e 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 b8d1dda4a9ebe..3effa975202e4 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 d07467145a6c2..b0b64b71ba6fb 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 @@ -19,7 +19,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 es.create({ id: 'ingest-agent-policies:policy-inactivity-timeout', index: INGEST_SAVED_OBJECT_INDEX, @@ -206,7 +206,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 66744fd9181cd..53d6db9602ea2 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({ body: { @@ -66,11 +66,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 f7413f40922c3..f767828a8854d 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 3e72f3447bc70..f35dd7bc916d3 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 6ffc84c79bc9d..b63b1340ef135 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 a3179f3b0d9ec..e626cbad51100 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 @@ -24,7 +24,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: response } = await supertest @@ -40,7 +40,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 684000fb95ca0..8de0366b8f038 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 5bb2ad4f9d5c5..f0f02f9f64223 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 a40eff9721cc2..1ea4bdaf86dc5 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 397fb98d2b346..48bbbede2a57c 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 new file mode 100644 index 0000000000000..ec10059fbc44a --- /dev/null +++ b/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts @@ -0,0 +1,195 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { skipIfNoDockerRegistry } from '../../helpers'; +import { testUsers } from '../test_users'; + +const TEST_INDEX = 'logs-log.log-test'; + +const FLEET_EVENT_INGESTED_PIPELINE_ID = '.fleet_event_ingested_pipeline-1'; + +// TODO: Use test package or move to input package version github.com/elastic/kibana/issues/154243 +const LOG_INTEGRATION_VERSION = '1.1.2'; + +const FLEET_EVENT_INGESTED_PIPELINE_VERSION = 1; + +export default function (providerContext: FtrProviderContext) { + const { getService } = providerContext; + const supertestWithoutAuth = getService('supertestWithoutAuth'); + const es = getService('es'); + const esArchiver = getService('esArchiver'); + const fleetAndAgents = getService('fleetAndAgents'); + + describe('fleet_event_ingested_pipeline', () => { + skipIfNoDockerRegistry(providerContext); + before(async () => { + 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 + .post(`/api/fleet/epm/packages/log/${LOG_INTEGRATION_VERSION}`) + .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) + .set('kbn-xsrf', 'xxxx') + .send({ force: true }) + .expect(200); + }); + + after(async () => { + await supertestWithoutAuth + .delete(`/api/fleet/epm/packages/log/${LOG_INTEGRATION_VERSION}`) + .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) + .set('kbn-xsrf', 'xxxx') + .send({ force: true }) + .expect(200); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + const res = await es.search({ + index: TEST_INDEX, + }); + + for (const hit of res.hits.hits) { + await es.delete({ + id: hit._id!, + index: hit._index, + }); + } + }); + + it('should correctly update the event ingested pipeline', async () => { + await es.ingest.putPipeline({ + id: FLEET_EVENT_INGESTED_PIPELINE_ID, + description: 'Test PIPELINE WITHOUT version', + processors: [ + { + set: { + field: 'my-keyword-field', + value: 'foo', + }, + }, + ], + }); + await supertestWithoutAuth + .post(`/api/fleet/setup`) + .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) + .set('kbn-xsrf', 'xxxx'); + const pipelineRes = await es.ingest.getPipeline({ id: FLEET_EVENT_INGESTED_PIPELINE_ID }); + expect(pipelineRes).to.have.property(FLEET_EVENT_INGESTED_PIPELINE_ID); + expect(pipelineRes[FLEET_EVENT_INGESTED_PIPELINE_ID].version).to.be(1); + }); + + it('should correctly setup the event ingested pipeline and apply to fleet managed index template', async () => { + const pipelineRes = await es.ingest.getPipeline({ id: FLEET_EVENT_INGESTED_PIPELINE_ID }); + expect(pipelineRes).to.have.property(FLEET_EVENT_INGESTED_PIPELINE_ID); + const res = await es.indices.getIndexTemplate({ name: 'logs-log.log' }); + expect(res.index_templates.length).to.be(FLEET_EVENT_INGESTED_PIPELINE_VERSION); + expect(res.index_templates[0]?.index_template?.composed_of).to.contain('ecs@mappings'); + expect(res.index_templates[0]?.index_template?.composed_of).to.contain('.fleet_globals-1'); + expect(res.index_templates[0]?.index_template?.composed_of).to.contain( + '.fleet_event_ingested-1' + ); + }); + + it('all docs should contain event.ingested without sub-seconds', async () => { + const res = await es.index({ + index: 'logs-log.log-test', + body: { + '@timestamp': '2020-01-01T09:09:00', + message: 'hello', + }, + }); + + const doc = await es.get({ + id: res._id, + index: res._index, + }); + // @ts-expect-error + const ingestTimestamp = doc._source.event.ingested; + + // 2021-06-30T12:06:28Z + expect(ingestTimestamp).to.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/); + }); + + it('should remove agent_id_status', async () => { + const res = await es.index({ + index: 'logs-log.log-test', + body: { + message: 'message-test-1', + '@timestamp': '2020-01-01T09:09:00', + agent: { + id: 'agent1', + }, + event: { + agent_id_status: 'dummy', + }, + }, + }); + + const doc = await es.get({ + id: res._id, + index: res._index, + }); + // @ts-expect-error + const event = doc._source.event; + + expect(event.agent_id_status).to.be(undefined); + expect(event).to.have.property('ingested'); + }); + + it('removes event.original if preserve_original_event is not set', async () => { + const res = await es.index({ + index: 'logs-log.log-test', + body: { + message: 'message-test-1', + event: { + original: JSON.stringify({ foo: 'bar' }), + }, + '@timestamp': '2023-01-01T09:00:00', + tags: [], + agent: { + id: 'agent1', + }, + }, + }); + + const doc: any = await es.get({ + id: res._id, + index: res._index, + }); + + const event = doc._source.event; + + expect(event.original).to.be(undefined); + }); + + it('preserves event.original if preserve_original_event is set', async () => { + const res = await es.index({ + index: 'logs-log.log-test', + body: { + message: 'message-test-1', + event: { + original: JSON.stringify({ foo: 'bar' }), + }, + '@timestamp': '2023-01-01T09:00:00', + tags: ['preserve_original_event'], + agent: { + id: 'agent1', + }, + }, + }); + + const doc: any = await es.get({ + id: res._id, + index: res._index, + }); + + const event = doc._source.event; + + expect(event.original).to.eql(JSON.stringify({ foo: 'bar' })); + }); + }); +} 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 085652d2ddc95..b2205471a091a 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 @@ -43,7 +43,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(); @@ -113,7 +113,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 2565a26c38cb8..95bbb0be050b2 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 @@ -22,7 +22,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(); @@ -54,7 +54,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 ae196f13d9dc3..9d297eed9cb39 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 dad2f59fc8af9..40114dd706a97 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 1c8fff7c7ac9b..ed2780649d456 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 @@ -200,7 +200,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(); }); @@ -312,7 +312,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 237bd6002839f..2c966de8d6b37 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 @@ -68,7 +68,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; @@ -269,7 +269,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 021eebcdcc0c1..bfe78ef5f70d2 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 @@ -62,14 +62,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 ce08126bf29d3..25bfc1cf4af63 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 @@ -378,13 +378,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 d69051b6140a9..20ec209fe3e3e 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 e035dbc580e72..c314708d59009 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 @@ -19,13 +19,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 with fleet_server_hosts', 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 3df1ae13904d4..a61943e019869 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 @@ -21,7 +21,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // Failing: See https://github.com/elastic/kibana/issues/202342 describe.skip('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 633407fc8d8b4..4e27a771c0f42 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 @@ -38,7 +38,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 c27bf2cc91b20..1c6cde7c72138 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); }; @@ -273,7 +273,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' ); @@ -298,7 +298,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/async_scripted_fields.ts b/x-pack/platform/test/functional/apps/discover/async_scripted_fields.ts index 454f99f231435..613e6133d2a82 100644 --- a/x-pack/platform/test/functional/apps/discover/async_scripted_fields.ts +++ b/x-pack/platform/test/functional/apps/discover/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/error_handling.ts b/x-pack/platform/test/functional/apps/discover/error_handling.ts index 862a6160fe4f6..701cc45e24540 100644 --- a/x-pack/platform/test/functional/apps/discover/error_handling.ts +++ b/x-pack/platform/test/functional/apps/discover/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/esql_starred.ts b/x-pack/platform/test/functional/apps/discover/esql_starred.ts index 9444baabb270b..76e4a2af560b3 100644 --- a/x-pack/platform/test/functional/apps/discover/esql_starred.ts +++ b/x-pack/platform/test/functional/apps/discover/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/feature_controls/discover_security.ts b/x-pack/platform/test/functional/apps/discover/feature_controls/discover_security.ts index e1c1d61c1dde0..e08c2d6bfcffc 100644 --- a/x-pack/platform/test/functional/apps/discover/feature_controls/discover_security.ts +++ b/x-pack/platform/test/functional/apps/discover/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/feature_controls/discover_spaces.ts b/x-pack/platform/test/functional/apps/discover/feature_controls/discover_spaces.ts index 8342ea5784e33..9141457a52661 100644 --- a/x-pack/platform/test/functional/apps/discover/feature_controls/discover_spaces.ts +++ b/x-pack/platform/test/functional/apps/discover/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/reporting_embeddable.ts b/x-pack/platform/test/functional/apps/discover/reporting_embeddable.ts index 0416ba483d4b3..ecdb3346c8caa 100644 --- a/x-pack/platform/test/functional/apps/discover/reporting_embeddable.ts +++ b/x-pack/platform/test/functional/apps/discover/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/saved_queries.ts b/x-pack/platform/test/functional/apps/discover/saved_queries.ts index 5f7df1348e6e2..67cb3ee19d4ed 100644 --- a/x-pack/platform/test/functional/apps/discover/saved_queries.ts +++ b/x-pack/platform/test/functional/apps/discover/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/saved_searches.ts b/x-pack/platform/test/functional/apps/discover/saved_searches.ts index 610a2e292dcb1..d28ccb45b57b4 100644 --- a/x-pack/platform/test/functional/apps/discover/saved_searches.ts +++ b/x-pack/platform/test/functional/apps/discover/saved_searches.ts @@ -36,7 +36,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' ); @@ -46,7 +46,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/value_suggestions.ts b/x-pack/platform/test/functional/apps/discover/value_suggestions.ts index f949a890d90c2..c004439aa2e07 100644 --- a/x-pack/platform/test/functional/apps/discover/value_suggestions.ts +++ b/x-pack/platform/test/functional/apps/discover/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/visualize_field.ts b/x-pack/platform/test/functional/apps/discover/visualize_field.ts index 7a9a5e3b1a8c3..a96d0d1ee17d8 100644 --- a/x-pack/platform/test/functional/apps/discover/visualize_field.ts +++ b/x-pack/platform/test/functional/apps/discover/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 831f0475c2c11..b9c456bc807f1 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 565464a55dc31..da1a5fed3d6a4 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 30f3ffddfcff1..30332aab96633 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 795f50008b636..9c56fc5958d47 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 @@ -30,7 +30,7 @@ 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 timePicker.setDefaultAbsoluteRangeViaUiSettings(); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); 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 c1d3c343350d7..8ff8b84e3a827 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/rollup.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/rollup.ts @@ -18,7 +18,7 @@ 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' ); @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); 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(); await timePicker.resetDefaultAbsoluteRangeViaUiSettings(); }); 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 e0e5eca1a0ffc..b41026e5b1725 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 b17f2657d1eae..12c9f747f2fb2 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 @@ -95,7 +95,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 ea5d70fcbe069..d73346aea5b55 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 07929a8f9b6f9..98bc1a71ca819 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 5b9554ee1934f..d45dc1e1146cc 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 ba90e58524bc9..0ec9bfa3c03f0 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 17fa129cc72c6..ff45e819c7abf 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 e5ffd4c193949..e344137c3cc23 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 37a85693a157d..4086f0af33d2a 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 a95ba4782c413..51c3d6a23b000 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 0fa4da7a8141a..80f48f205a07c 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 24f385704bd71..3ec3c8eea92a3 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 1dd7801fa334c..f6d3ea778a872 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 414230b0b73a1..ede1d110b1ade 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 957ac090e1ade..b70011cbc6141 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 e137f366628e7..0516ddf9791b6 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 d2171544aa993..5f2f17b6bf958 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 @@ -358,8 +358,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 ab1177d2dbc84..6d789109372c2 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 22f36ef907182..b0e71e570ed91 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 @@ -98,7 +98,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe.skip('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 a43d9e2cb0e2f..4d234ed897e5b 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 7667b0896cfce..2ddbee83b6cf5 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(); @@ -140,7 +140,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 ca0d6e87a1144..2cc493f3018ec 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 a76d0fb27d92c..30d06ae6486c5 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 da62f44fb305d..3036152919408 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 542817b89b923..d36859097947a 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 e0e29864e5c06..1113c77f06948 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 98e8e45c241d2..40b48948ba182 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 a2990bcbf287a..ffc047b5b8382 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 b9553fd69be71..395f03a0017f8 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 7ccf329222a55..9f0aedd451735 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 a677b467d4768..49b806bbc54e8 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 @@ -125,7 +125,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 319d54c78d541..7580be5e532e4 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 023ed41fa3cba..acf419b3eabab 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 @@ -126,10 +126,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 81e26d003a9ce..499d3d0af2dde 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 @@ -59,7 +59,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 8753858f27660..5c7da130cc1af 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 @@ -132,10 +132,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 e4511615a51a2..44195c8ca5d69 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 @@ -28,7 +28,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 15eac59357928..11075113c3be4 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 f7c1497b2b56e..2be3dfa4fdc0f 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 0ddb7da85c526..08428c90eaf9a 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 354d3d98423c4..296fac2938ab9 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 8cf63887907e3..84b8a77c91298 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 @@ -110,8 +110,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 e8c255212251b..31c63313e56b3 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 497ddcba3ba3a..723007aae6bea 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', @@ -283,7 +283,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 f8bb57afaead2..8f47afcd4d77b 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 @@ -41,13 +41,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 new file mode 100644 index 0000000000000..5cc898e14ec7c --- /dev/null +++ b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts @@ -0,0 +1,297 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { FtrProviderContext } from '../../../ftr_provider_context'; +import { getSavedQuerySecurityUtils } from '../utils/saved_query_security'; + +export type FeatureName = + | 'discover' + | 'discover_v2' + | 'dashboard' + | 'dashboard_v2' + | 'maps' + | 'maps_v2' + | 'visualize' + | 'visualize_v2'; +export type FeatureApp = 'discover' | 'dashboard' | 'maps' | 'visualize'; + +export function createSecurityTests( + featureConfigs: Array<{ + feature: FeatureName; + app: FeatureApp; + hasImplicitSaveQueryManagement: boolean; + }> +) { + return function (ctx: FtrProviderContext) { + const { getPageObjects, getService } = ctx; + const savedQuerySecurityUtils = getSavedQuerySecurityUtils(ctx); + const esArchiver = getService('esArchiver'); + const securityService = getService('security'); + const globalNav = getService('globalNav'); + const { common, discover, security, dashboard, maps, visualize, spaceSelector } = + getPageObjects([ + 'common', + 'discover', + 'security', + 'dashboard', + 'maps', + 'visualize', + 'spaceSelector', + ]); + const kibanaServer = getService('kibanaServer'); + + async function login( + featureName: FeatureName, + featurePrivilege: 'read' | 'all', + globalPrivilege: 'none' | 'read' | 'all', + expectSpaceSelector = false + ) { + const name = `global_saved_query_${featureName}`; + const password = `password_${name}_${featurePrivilege}_${globalPrivilege}`; + + await securityService.role.create(name, { + elasticsearch: { + indices: [{ names: ['logstash-*'], privileges: ['read', 'view_index_metadata'] }], + }, + kibana: [ + { + feature: { + [featureName]: [featurePrivilege], + savedQueryManagement: [globalPrivilege], + }, + spaces: ['*'], + }, + ], + }); + + await securityService.user.create(`${name}-user`, { + password, + roles: [name], + full_name: 'test user', + }); + + await security.login(`${name}-user`, password, { expectSpaceSelector }); + } + + async function logout(featureName: FeatureName) { + const name = `global_saved_query_${featureName}`; + await security.forceLogout(); + await securityService.role.delete(name); + await securityService.user.delete(`${name}-user`); + } + + async function navigateToApp(appName: FeatureApp) { + switch (appName) { + case 'discover': + await common.navigateToApp('discover'); + await discover.selectIndexPattern('logstash-*'); + break; + case 'dashboard': + await dashboard.navigateToApp(); + await dashboard.loadSavedDashboard('A Dashboard'); + break; + case 'maps': + await maps.openNewMap(); + break; + case 'visualize': + await visualize.navigateToNewVisualization(); + await visualize.clickVisType('lens'); + break; + default: + break; + } + } + + describe('Security', () => { + describe('App vs Global privilege', () => { + featureConfigs.forEach(({ feature, app, hasImplicitSaveQueryManagement }) => { + before(async () => { + await kibanaServer.savedObjects.cleanStandardList(); + + await kibanaServer.importExport.load( + 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' + ); + + 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(); + }); + + after(async () => { + // logout, so the other tests don't accidentally run as the custom users we're testing below + // NOTE: Logout needs to happen before anything else to avoid flaky behavior + await security.forceLogout(); + + await kibanaServer.importExport.unload( + 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' + ); + + await kibanaServer.savedObjects.cleanStandardList(); + }); + + describe(`${feature} read-only privileges with savedQueryManagement.saveQuery all privilege`, () => { + before(async () => { + await login(feature, 'read', 'all'); + await navigateToApp(app); + await common.waitForTopNavToBeVisible(); + }); + + after(async () => { + await logout(feature); + }); + + it('shows read-only badge', async () => { + await globalNav.badgeExistsOrFail('Read only'); + }); + + savedQuerySecurityUtils.shouldAllowSavingQueries(); + }); + + describe(`${feature} read-only privileges with savedQueryManagement.saveQuery read privilege`, () => { + before(async () => { + await login(feature, 'read', 'read'); + await navigateToApp(app); + await common.waitForTopNavToBeVisible(); + }); + + after(async () => { + await logout(feature); + }); + + it('shows read-only badge', async () => { + await globalNav.badgeExistsOrFail('Read only'); + }); + + savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); + }); + + describe(`${feature} read-only privileges with disabled savedQueryManagement.saveQuery privilege`, () => { + before(async () => { + await login(feature, 'read', 'none'); + await navigateToApp(app); + }); + + after(async () => { + await logout(feature); + }); + + it('shows read-only badge', async () => { + await globalNav.badgeExistsOrFail('Read only'); + }); + + if (hasImplicitSaveQueryManagement) { + savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); + } else { + savedQuerySecurityUtils.shouldDisallowAccessToSavedQueries(); + } + }); + + describe(`${feature} all privileges with savedQueryManagement.saveQuery all privilege`, () => { + before(async () => { + await login(feature, 'all', 'all'); + await navigateToApp(app); + }); + + after(async () => { + await logout(feature); + }); + + it("doesn't show read-only badge", async () => { + await globalNav.badgeMissingOrFail(); + }); + + savedQuerySecurityUtils.shouldAllowSavingQueries(); + }); + + describe(`${feature} all privileges with savedQueryManagement.saveQuery read privilege`, () => { + before(async () => { + await login(feature, 'all', 'read'); + await navigateToApp(app); + }); + + after(async () => { + await logout(feature); + }); + + it("doesn't show read-only badge", async () => { + await globalNav.badgeMissingOrFail(); + }); + + if (hasImplicitSaveQueryManagement) { + savedQuerySecurityUtils.shouldAllowSavingQueries(); + } else { + savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); + } + }); + + describe(`${feature} all privileges with disabled savedQueryManagement.saveQuery privilege`, () => { + before(async () => { + await login(feature, 'all', 'none'); + await navigateToApp(app); + }); + + after(async () => { + await logout(feature); + }); + + it("doesn't show read-only badge", async () => { + await globalNav.badgeMissingOrFail(); + }); + + if (hasImplicitSaveQueryManagement) { + savedQuerySecurityUtils.shouldAllowSavingQueries(); + } else { + savedQuerySecurityUtils.shouldDisallowAccessToSavedQueries(); + } + }); + }); + }); + + describe('Spaces feature visibility', () => { + featureConfigs.forEach(({ feature }) => { + describe(`space with ${feature} disabled`, () => { + const spaceId = `${feature}_space`; + let disabledFeatureId: string; + + before(async () => { + await kibanaServer.spaces.create({ + id: spaceId, + name: spaceId, + disabledFeatures: [feature], + }); + const disabledFeature = (await kibanaServer.spaces.get(spaceId)) as { + disabledFeatures: string[]; + }; + [disabledFeatureId] = disabledFeature.disabledFeatures; + await common.navigateToApp('home'); + }); + + after(async () => { + await kibanaServer.spaces.delete(spaceId); + }); + + it('should not disable saved query management feature visibility', async () => { + await spaceSelector.openSpacesNav(); + await spaceSelector.clickManageSpaces(); + await spaceSelector.clickSpaceEditButton(spaceId); + await spaceSelector.toggleFeatureCategoryVisibility('kibana'); + await spaceSelector.toggleFeatureCategoryVisibility('management'); + expect(await spaceSelector.getFeatureCheckboxState(disabledFeatureId)).to.be(false); + expect(await spaceSelector.getFeatureCheckboxState('savedQueryManagement')).to.be( + true + ); + }); + }); + }); + }); + }); + }; +} 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 408d4686252cf..ab0793beef21b 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 a41f69f0ec270..8d2fd36a0d9cf 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 e0e0b51ed98cd..c07efcea2a040 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 51dd91d73e9df..5b32d82816d1b 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', @@ -322,7 +322,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: @@ -339,7 +339,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': @@ -360,7 +360,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 403ea10b6b896..627488dddde7d 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 0bc78cddcd6c7..279bd7fd59aa7 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 111b9e51cce74..e0dae22194539 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 @@ -1077,7 +1077,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(); @@ -1097,7 +1099,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 83f71942748df..53c42c0e66759 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 @@ -119,7 +119,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; @@ -130,7 +132,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 () => { @@ -148,7 +150,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; @@ -178,7 +182,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 e76093c666ca1..74826fbaced11 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 b53da1b363bcb..5338571852136 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 60d858206d68e..3878f853d7654 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 @@ -50,11 +50,13 @@ export default function ({ getService }: FtrProviderContext) { // FLAKY: https://github.com/elastic/kibana/issues/200154 describe.skip('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 2e5e28d68155b..2d51a9e3e3e2e 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 new file mode 100644 index 0000000000000..f35dcc74da9a9 --- /dev/null +++ b/x-pack/platform/test/reporting_functional/reporting_and_security/download.ts @@ -0,0 +1,55 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { FtrProviderContext } from '../ftr_provider_context'; + +// eslint-disable-next-line import/no-default-export +export default ({ getService, getPageObjects }: FtrProviderContext) => { + const PageObjects = getPageObjects(['common', 'reporting', 'dashboard']); + const testSubjects = getService('testSubjects'); + const esArchiver = getService('esArchiver'); + + describe('Download report', () => { + // use archived reports to allow reporting_user to view report jobs they've created + before(async () => { + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/archived_reports'); + }); + + after(async () => { + await esArchiver.unload( + 'x-pack/platform/test/fixtures/es_archives/reporting/archived_reports' + ); + }); + + it('user can access download link', async () => { + const reportId = 'krazcyw4156m0763b503j7f9'; + + await PageObjects.common.navigateToApp('reporting'); + await testSubjects.existOrFail('reportJobListing'); + + const reportInfoLink = await testSubjects.find(`viewReportingLink-${reportId}`); + expect(await reportInfoLink.getVisibleText()).to.be('report jobtype: csv_searchsource'); // report title indicates the jobtype + + // can download the report + await testSubjects.existOrFail(`reportDownloadLink-${reportId}`); + }); + + it('user can access download link for export type that is no longer supported', async () => { + const reportId = 'krb7arhe164k0763b50bjm29'; + + await PageObjects.common.navigateToApp('reporting'); + await testSubjects.existOrFail('reportJobListing'); + + const reportInfoLink = await testSubjects.find(`viewReportingLink-${reportId}`); + expect(await reportInfoLink.getVisibleText()).to.be('report jobtype: csv'); // report title indicates the **removed** jobtype + + // can download the report + await testSubjects.existOrFail(`reportDownloadLink-${reportId}`); + }); + }); +}; 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 75c441bc21cd9..994a35a0a9c6b 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 1f768780a9c95..910003357b568 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 @@ -31,7 +31,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 477c1b9615b6e..c73fdfdb1d46f 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 @@ -21,7 +21,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 4744628b2e1e1..f22adf19b0a79 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/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 31854652cbc67..9b152028940df 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 a2b6d51a86b34..a0e5e3ab62f54 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 3d15d77cc471d..c55f5f44858f0 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 747e6d1d2bd5f..cb7c43abbe358 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 @@ -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`) @@ -99,7 +99,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 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 87fc0410b0668..7f0705cccc7c8 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 @@ -46,7 +46,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') @@ -92,7 +92,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 ec8b6a09f8bb2..74b6fd61ee57d 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 @@ -34,7 +34,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`) @@ -57,7 +57,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 16ee02083e34c..66cd6f88a7b4c 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 logs-cloud_security_posture.findings_latest-default 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 5d0f6207e904a..c63bece184628 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 79be5a2b5fbbf..a2c5106e42f04 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 @@ -266,7 +266,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]]; @@ -275,7 +275,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 () => { @@ -374,11 +374,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 9a0f6422b7c9c..a25d27d000d83 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 @@ -1691,10 +1691,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); }); @@ -1825,10 +1827,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); }); @@ -1950,14 +1956,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 3e4b87247fc5b..2489e52fce954 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 debad7f6f0b45..b106c65d9166a 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 @@ -548,14 +548,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 ({ @@ -846,11 +846,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 961609cfefd98..a01963824b2c8 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 @@ -794,14 +794,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 ({ @@ -1098,11 +1098,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 48353ded80f85..ee391c0388f89 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 new file mode 100644 index 0000000000000..338c7c4b11787 --- /dev/null +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts @@ -0,0 +1,169 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; +import type { FtrProviderContext } from '../../ftr_provider_context'; +import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; + +// eslint-disable-next-line import/no-default-export +export default function ({ getPageObjects, getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); + const pageObjects = getPageObjects([ + 'common', + 'cloudPostureDashboard', + 'rule', + 'header', + 'findings', + ]); + const retryService = getService('retry'); + + describe('Cloud Posture Rules Page - Counters', function () { + this.tags(['cloud_security_posture_rules_page_counters']); + let rule: typeof pageObjects.rule; + let findings: typeof pageObjects.findings; + let agentPolicyId: string; + + before(async () => { + rule = pageObjects.rule; + findings = pageObjects.findings; + await findings.index.remove(); + + // cleanup agent and package policies + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + + const { body: agentPolicyResponse } = await supertest + .post(`/api/fleet/agent_policies`) + .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') + .set('kbn-xsrf', 'xxxx') + .send({ + name: 'Test policy', + namespace: 'default', + }); + + agentPolicyId = agentPolicyResponse.item.id; + + await createPackagePolicy( + supertest, + agentPolicyId, + 'kspm', + 'cloudbeat/cis_k8s', + 'vanilla', + 'kspm' + ); + await rule.waitForPluginInitialized(); + }); + + beforeEach(async () => { + await findings.index.add(k8sFindingsMock); + await rule.navigateToRulePage('cis_k8s', '1.0.1'); + }); + + after(async () => { + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + }); + + afterEach(async () => { + await findings.index.remove(); + }); + + describe('Rules Page - Rules Counters', () => { + it('Shows posture score when there are findings', async () => { + const isEmptyStateVisible = await rule.rulePage.getCountersEmptyState(); + expect(isEmptyStateVisible).to.be(false); + + const postureScoreCounter = await rule.rulePage.getPostureScoreCounter(); + expect((await postureScoreCounter.getVisibleText()).includes('33%')).to.be(true); + }); + + it('Clicking the posture score button leads to the dashboard', async () => { + await retryService.tryForTime(5000, async () => { + await rule.rulePage.clickPostureScoreButton(); + await pageObjects.common.waitUntilUrlIncludes('cloud_security_posture/dashboard'); + }); + }); + + it('Shows integrations count when there are findings', async () => { + const integrationsCounter = await rule.rulePage.getIntegrationsEvaluatedCounter(); + expect((await integrationsCounter.getVisibleText()).includes('1')).to.be(true); + }); + + it('Clicking the integrations counter button leads to the integration page', async () => { + await rule.rulePage.clickIntegrationsEvaluatedButton(); + await pageObjects.common.waitUntilUrlIncludes('add-integration/kspm'); + }); + + it('Shows the failed findings counter when there are findings', async () => { + const failedFindingsCounter = await rule.rulePage.getFailedFindingsCounter(); + expect((await failedFindingsCounter.getVisibleText()).includes('2')).to.be(true); + }); + + it('Clicking the failed findings button leads to the findings page', async () => { + await rule.rulePage.clickFailedFindingsButton(); + await pageObjects.common.waitUntilUrlIncludes( + 'cloud_security_posture/findings/configurations' + ); + }); + + it('Shows the disabled rules count', async () => { + const disabledRulesCounter = await rule.rulePage.getDisabledRulesCounter(); + expect((await disabledRulesCounter.getVisibleText()).includes('0')).to.be(true); + + // disable rule 1.1.1 (k8s findings mock contains a findings from that rule) + await rule.rulePage.clickEnableRulesRowSwitchButton(0); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect((await disabledRulesCounter.getVisibleText()).includes('1')).to.be(true); + + const postureScoreCounter = await rule.rulePage.getPostureScoreCounter(); + expect((await postureScoreCounter.getVisibleText()).includes('0%')).to.be(true); + + // enable rule back + await rule.rulePage.clickEnableRulesRowSwitchButton(0); + }); + + it('Clicking the disabled rules button shows enables the disabled filter', async () => { + await rule.rulePage.clickEnableRulesRowSwitchButton(0); + await pageObjects.header.waitUntilLoadingHasFinished(); + + await rule.rulePage.clickDisabledRulesButton(); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 1).to.be(true); + }); + + it('Shows empty state when there are no findings', async () => { + // Ensure there are no findings initially + await findings.index.remove(); + await rule.navigateToRulePage('cis_k8s', '1.0.1'); + + const isEmptyStateVisible = await rule.rulePage.getCountersEmptyState(); + expect(isEmptyStateVisible).to.be(true); + await rule.rulePage.clickEnableRulesRowSwitchButton(0); + }); + }); + }); +} 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 new file mode 100644 index 0000000000000..e79398a0a9a95 --- /dev/null +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts @@ -0,0 +1,210 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; +import type { FtrProviderContext } from '../../ftr_provider_context'; +import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; +import { + RULES_BULK_ACTION_OPTION_DISABLE, + RULES_BULK_ACTION_OPTION_ENABLE, +} from '../../page_objects/rule_page'; + +// eslint-disable-next-line import/no-default-export +export default function ({ getPageObjects, getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); + const pageObjects = getPageObjects([ + 'common', + 'cloudPostureDashboard', + 'rule', + 'header', + 'findings', + ]); + const retryService = getService('retry'); + + describe('Cloud Posture Rules Page - Table', function () { + this.tags(['cloud_security_posture_rules_page_table']); + let rule: typeof pageObjects.rule; + let findings: typeof pageObjects.findings; + let agentPolicyId: string; + + before(async () => { + rule = pageObjects.rule; + findings = pageObjects.findings; + await findings.index.remove(); + + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + + const { body: agentPolicyResponse } = await supertest + .post(`/api/fleet/agent_policies`) + .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') + .set('kbn-xsrf', 'xxxx') + .send({ + name: 'Test policy', + namespace: 'default', + }); + + agentPolicyId = agentPolicyResponse.item.id; + + await createPackagePolicy( + supertest, + agentPolicyId, + 'kspm', + 'cloudbeat/cis_k8s', + 'vanilla', + 'kspm' + ); + await rule.waitForPluginInitialized(); + }); + + beforeEach(async () => { + // cleanup agent and package policies + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await findings.index.add(k8sFindingsMock); + await rule.navigateToRulePage('cis_k8s', '1.0.1'); + }); + + after(async () => { + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + }); + + afterEach(async () => { + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await findings.index.remove(); + }); + + describe('Rules Page - Bulk Action buttons', () => { + it('It should disable Enable option when there are all rules selected are already enabled ', async () => { + await rule.rulePage.clickSelectAllRules(); + await rule.rulePage.toggleBulkActionButton(); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === + 'true' + ).to.be(true); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === + 'true' + ).to.be(false); + }); + + it('It should disable both Enable and Disable options when there are no rules selected', async () => { + await rule.rulePage.toggleBulkActionButton(); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === + 'true' + ).to.be(true); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === + 'true' + ).to.be(true); + }); + + it('It should disable Disable option when there are all rules selected are already Disabled', async () => { + await rule.rulePage.clickSelectAllRules(); + await rule.rulePage.toggleBulkActionButton(); + await rule.rulePage.clickBulkActionOption(RULES_BULK_ACTION_OPTION_DISABLE); + await pageObjects.header.waitUntilLoadingHasFinished(); + await rule.rulePage.clickSelectAllRules(); + await rule.rulePage.toggleBulkActionButton(); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === + 'true' + ).to.be(false); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === + 'true' + ).to.be(true); + }); + + it('Both option should not be disabled if selected rules contains both enabled and disabled rules', async () => { + await rule.rulePage.clickEnableRulesRowSwitchButton(0); + await pageObjects.header.waitUntilLoadingHasFinished(); + await rule.rulePage.clickSelectAllRules(); + await rule.rulePage.toggleBulkActionButton(); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === + 'true' + ).to.be(false); + expect( + (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === + 'true' + ).to.be(false); + }); + }); + + describe('Rules Page - Flyout', () => { + it('Users are able to Enable/Disable Rule from Switch on Rule Flyout', async () => { + // Ensure that the first rule is enabled + await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'enable'); + await rule.rulePage.closeToasts(); + + await rule.rulePage.clickRulesNames(0); + await rule.rulePage.clickFlyoutEnableSwitchButton(); + await pageObjects.header.waitUntilLoadingHasFinished(); + + expect((await rule.rulePage.getEnableSwitchButtonState()) === 'false').to.be(true); + await rule.rulePage.clickCloseFlyoutButton(); + }); + it('Alerts section of Rules Flyout shows Disabled text when Rules are disabled', async () => { + await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'disable'); + await rule.rulePage.closeToasts(); + + await rule.rulePage.clickRulesNames(0); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect( + (await rule.rulePage.doesElementExist( + 'csp:findings-flyout-create-detection-rule-link' + )) === false + ).to.be(true); + + await rule.rulePage.clickCloseFlyoutButton(); + }); + it('Users are able to Enable/Disable Rule from Take Action on Rule Flyout', async () => { + await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'disable'); + await rule.rulePage.closeToasts(); + + await rule.rulePage.clickRulesNames(0); + await retryService.try(async () => { + await rule.rulePage.clickTakeActionButton(); + await rule.rulePage.clickTakeActionButtonOption('enable'); + }); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect((await rule.rulePage.getEnableSwitchButtonState()) === 'true').to.be(true); + + await rule.rulePage.clickCloseFlyoutButton(); + }); + it('Alerts section of Rules Flyout shows Detection Rule Counter component when Rules are enabled', async () => { + await rule.rulePage.clickRulesNames(0); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect( + (await rule.rulePage.doesElementExist( + 'csp:findings-flyout-create-detection-rule-link' + )) === true + ).to.be(true); + }); + }); + }); +} 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 new file mode 100644 index 0000000000000..698facf3f60af --- /dev/null +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts @@ -0,0 +1,136 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; +import type { FtrProviderContext } from '../../ftr_provider_context'; +import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; + +// eslint-disable-next-line import/no-default-export +export default function ({ getPageObjects, getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); + const kibanaServer = getService('kibanaServer'); + const pageObjects = getPageObjects([ + 'common', + 'cloudPostureDashboard', + 'rule', + 'header', + 'findings', + ]); + + describe('Cloud Posture Rules Page - Table Headers', function () { + this.tags(['cloud_security_posture_rules_page_table_headers']); + let rule: typeof pageObjects.rule; + let findings: typeof pageObjects.findings; + let agentPolicyId: string; + + before(async () => { + rule = pageObjects.rule; + findings = pageObjects.findings; + await findings.index.remove(); + + // cleanup agent and package policies + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + + const { body: agentPolicyResponse } = await supertest + .post(`/api/fleet/agent_policies`) + .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') + .set('kbn-xsrf', 'xxxx') + .send({ + name: 'Test policy', + namespace: 'default', + }); + + agentPolicyId = agentPolicyResponse.item.id; + + await createPackagePolicy( + supertest, + agentPolicyId, + 'kspm', + 'cloudbeat/cis_k8s', + 'vanilla', + 'kspm' + ); + await rule.waitForPluginInitialized(); + }); + + beforeEach(async () => { + await findings.index.add(k8sFindingsMock); + await rule.navigateToRulePage('cis_k8s', '1.0.1'); + }); + + after(async () => { + await kibanaServer.savedObjects.clean({ + types: [ + 'ingest-agent-policies', + 'fleet-agent-policies', + 'ingest-package-policies', + 'fleet-package-policies', + 'cloud-security-posture-settings', + ], + }); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); + }); + + afterEach(async () => { + await findings.index.remove(); + }); + + describe('Rules Page - Enable Rules and Disabled Rules Filter Toggle', () => { + it('Should only display Enabled rules when Enabled Rules filter is ON', async () => { + await rule.rulePage.clickFilterButton('enabled'); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 25).to.be(true); + }); + + it('Should only display Disabled rules when Disabled Rules filter is ON', async () => { + await rule.rulePage.clickFilterButton('disabled'); + await pageObjects.header.waitUntilLoadingHasFinished(); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 0).to.be(true); + }); + }); + + describe('Rules Page - CIS Section & Rule Number filters', () => { + it('Table should only show result that has the same section as in the Section filter', async () => { + await rule.rulePage.closeToasts(); + await rule.rulePage.clickFilterPopover('section'); + await rule.rulePage.clickFilterPopOverOption('etcd'); + await rule.rulePage.clickFilterPopOverOption('Scheduler'); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) < 10).to.be(true); + }); + + it('Table should only show result that has the same section as in the Rule number filter', async () => { + await rule.rulePage.closeToasts(); + await rule.rulePage.clickFilterPopover('ruleNumber'); + await rule.rulePage.clickFilterPopOverOption('1.1.1'); + await rule.rulePage.clickFilterPopOverOption('1.1.2'); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 2).to.be(true); + }); + + it('Table should only show result that passes both Section and Rule number filter', async () => { + await rule.rulePage.closeToasts(); + await rule.rulePage.clickFilterPopover('section'); + await rule.rulePage.clickFilterPopOverOption('Control-Plane-Node-Configuration-Files'); + await rule.rulePage.clickFilterPopover('section'); + await rule.rulePage.clickFilterPopover('ruleNumber'); + await rule.rulePage.clickFilterPopOverOption('1.1.5'); + expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 1).to.be(true); + }); + }); + }); +} 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 97f7c9d197876..38349c70e1342 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 @@ -21,7 +21,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 es.create({ id: 'ingest-agent-policies:policy-inactivity-timeout', index: INGEST_SAVED_OBJECT_INDEX, @@ -208,7 +208,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 28110e0e0b82a..bc208e5a8cb0e 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 @@ -71,7 +71,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; @@ -272,7 +272,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/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 5b3fce31741007fb0ad17709467c3fc4fa7f7f93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134 zcmV;10D1o(iwFP!000026RYM@P*5tVEJ#(dQcz0CPgc?a36v$~l!8R6fgB(=GX*MZ z2$lwk 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 6ee783abd1783..0b2e43e4ec82e 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 913c0df5d04a0..317d2e20f3845 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 @@ -90,11 +90,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 cf2ac65f1086b..35d12189c3db8 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(); bsearch = await utils.createBsearch(); - 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 6fdbfec48f161..ec8b52fc2b96c 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(); bsearch = await utils.createBsearch(); - 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 22001c26b66b5..69d46c3323a71 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,12 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); bsearch = await utils.createBsearch(); - 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 166af42ba5702..66b4b55e5213c 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(); bsearch = await utils.createBsearch(); - 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 8b1adb16975f6..46c81dbd35679 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(); bsearch = await utils.createBsearch(); - 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 ffb287239ac0f..26dcac5164b2a 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 @@ -26,10 +26,11 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); bsearch = await utils.createBsearch(); - 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 f8d4aa80c0e3d..8b9067b25bbba 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(); bsearch = await utils.createBsearch(); - 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'; @@ -112,11 +113,17 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { describe('With auditbeat', () => { before(async () => { supertest = await utils.createSuperTest(); +<<<<<<< HEAD bsearch = await utils.createBsearch(); await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/overview'); +======= + search = await utils.createSearch(); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/overview'); +>>>>>>> 2fb428aa876 ([ska] relocate esArchives to platform/test/fixtures (#229750)) }); 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 39dddc7a0c046..1b418680c1537 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(); bsearch = await utils.createBsearch(); - 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 6765e6d2bb164..5335f0231e213 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(); bsearch = await utils.createBsearch(); - 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 9db1a5dfceb22..9092c466f47e5 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(); bsearch = await utils.createBsearch(); - 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 e614f7d30d14f..d6a135bec4853 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(); bsearch = await utils.createBsearch(); - 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 c567b28f1be46..77039bc80f42e 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 @@ -56,7 +56,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`) @@ -76,7 +76,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(); await cloudDefinedIndex.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 7966df0611462..d46ce18553eb1 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 @@ -49,7 +49,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`) @@ -70,7 +70,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 logs-cloud_security_posture.findings_latest-default 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 f5009313f5941..5d2d4074733b6 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 logs-cloud_security_posture.findings_latest-default 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 be8af031779bf..b386918a89bd6 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 73b4637ea2b6a..ddfc534378f82 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 @@ -215,7 +215,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' ); @@ -230,7 +230,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/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 990f1ed816cca..2733d699ba1a6 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 @@ -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/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 e7d8f0869d63d..67bd147d1ecde 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 @@ -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/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 aefd4c6da9832..bf2661fd856ca 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 @@ -30,7 +30,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' ); @@ -41,7 +43,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( From 916761b8bd463e619836c613cb3978595798e482 Mon Sep 17 00:00:00 2001 From: fake-haris Date: Wed, 13 Aug 2025 18:21:56 +0300 Subject: [PATCH 02/12] removed stale files --- .../unified_tabs_examples/manage_tabs.ts | 208 ------------- .../apis/agent_policy/agent_policy_outputs.ts | 282 ------------------ .../apis/agents/migrate.ts | 276 ----------------- .../apis/event_ingested/use_event_ingested.ts | 195 ------------ .../pages/rules/rules_counters.ts | 169 ----------- .../pages/rules/rules_table.ts | 210 ------------- .../pages/rules/rules_table_headers.ts | 136 --------- 7 files changed, 1476 deletions(-) delete mode 100644 src/platform/test/examples/unified_tabs_examples/manage_tabs.ts delete mode 100644 x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts delete mode 100644 x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts delete mode 100644 x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts delete mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts delete mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts delete mode 100644 x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts diff --git a/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts b/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts deleted file mode 100644 index 8485dbb9cebda..0000000000000 --- a/src/platform/test/examples/unified_tabs_examples/manage_tabs.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import expect from '@kbn/expect'; -import { Key } from 'selenium-webdriver'; -import type { FtrProviderContext } from '../../functional/ftr_provider_context'; - -// eslint-disable-next-line import/no-default-export -export default ({ getService, getPageObjects }: FtrProviderContext) => { - const { common, header, unifiedTabs } = getPageObjects(['common', 'header', 'unifiedTabs']); - const esArchiver = getService('esArchiver'); - const kibanaServer = getService('kibanaServer'); - const browser = getService('browser'); - const retry = getService('retry'); - const testSubjects = getService('testSubjects'); - - const openTabContextMenuWithKeyboard = async () => { - await browser.getActions().keyDown(Key.SHIFT).sendKeys(browser.keys.F10).perform(); - await browser.getActions().keyUp(Key.SHIFT).perform(); - await retry.waitFor('open tab context menu', async () => { - return await testSubjects.exists('unifiedTabs_tabMenuItem_enterRenamingMode'); - }); - }; - - describe('Managing Unified Tabs', () => { - before(async () => { - await browser.setWindowSize(1200, 800); - await kibanaServer.savedObjects.cleanStandardList(); - await kibanaServer.importExport.load( - 'src/platform/test/functional/fixtures/kbn_archiver/discover.json' - ); - await esArchiver.loadIfNeeded( - 'src/platform/test/functional/fixtures/es_archiver/logstash_functional' - ); - await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); - }); - - beforeEach(async () => { - await common.navigateToApp('unifiedTabsExamples'); - await header.waitUntilLoadingHasFinished(); - }); - - after(async () => { - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/logstash_functional'); - await kibanaServer.savedObjects.cleanStandardList(); - }); - - it('should show tabs in a responsive way', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect(await unifiedTabs.isScrollable()).to.be(false); - expect((await unifiedTabs.getTabWidths()).every((width) => width === 112)).to.be(true); - - await unifiedTabs.editTabLabel(0, 'Very long tab label'); - expect((await unifiedTabs.getTabWidths()).at(0)).to.be.greaterThan(139); - expect((await unifiedTabs.getTabWidths()).slice(1).every((width) => width === 112)).to.be( - true - ); - - await unifiedTabs.createNewTab(); - await unifiedTabs.createNewTab(); - expect((await unifiedTabs.getTabWidths()).at(0)).to.be.greaterThan(112); - expect((await unifiedTabs.getTabWidths()).at(0)).to.be.lessThan(148); - expect((await unifiedTabs.getTabWidths()).slice(1).every((width) => width === 112)).to.be( - true - ); - - await unifiedTabs.createNewTab(); - await unifiedTabs.createNewTab(); - await unifiedTabs.createNewTab(); - expect(await unifiedTabs.getNumberOfTabs()).to.be(12); - await unifiedTabs.waitForScrollButtons(); - expect((await unifiedTabs.getTabWidths()).every((width) => width === 112)).to.be(true); - }); - - it('can edit tab label', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); - await unifiedTabs.editTabLabel(3, 'Test label'); - expect(await unifiedTabs.getTabLabels()).to.eql([ - 'Untitled 1', - 'Untitled 2', - 'Untitled 3', - 'Test label', - 'Untitled 5', - 'Untitled 6', - 'Untitled 7', - ]); - }); - - it('can edit tab label with keyboard events', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - await unifiedTabs.createNewTab(); - await openTabContextMenuWithKeyboard(); - await browser.pressKeys(browser.keys.ARROW_DOWN); - await browser.pressKeys(browser.keys.ENTER); - await unifiedTabs.enterNewTabLabel('Test label'); - expect(await unifiedTabs.getTabLabels()).to.eql([ - 'Untitled 1', - 'Untitled 2', - 'Untitled 3', - 'Untitled 4', - 'Untitled 5', - 'Untitled 6', - 'Untitled 7', - 'Test label', - ]); - }); - - it('should support mouse events for navigating between tabs', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); - await unifiedTabs.createNewTab(); - expect(await unifiedTabs.getNumberOfTabs()).to.be(8); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); - await unifiedTabs.selectTab(5); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 6'); - await unifiedTabs.selectTab(6); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); - await unifiedTabs.closeTab(6); - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); - await unifiedTabs.openTabMenu(6); - expect(await unifiedTabs.getContextMenuItems()).to.eql([ - 'Rename', - 'Duplicate', - 'Close other tabs', - ]); - }); - - it('should support keyboard events for navigating between tabs', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); - await unifiedTabs.createNewTab(); - expect(await unifiedTabs.getNumberOfTabs()).to.be(8); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); - await browser.pressKeys(browser.keys.ARROW_LEFT); - await browser.pressKeys(browser.keys.ARROW_LEFT); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 6'); - await browser.pressKeys(browser.keys.ARROW_RIGHT); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); - await browser.pressKeys(browser.keys.DELETE); - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); - await openTabContextMenuWithKeyboard(); - expect(await unifiedTabs.getContextMenuItems()).to.eql([ - 'Rename', - 'Duplicate', - 'Close other tabs', - ]); - }); - - it('should support drag and drop for reordering tabs', async () => { - expect(await unifiedTabs.getNumberOfTabs()).to.be(7); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 1'); - await unifiedTabs.createNewTab(); - expect(await unifiedTabs.getNumberOfTabs()).to.be(8); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 8'); - expect(await unifiedTabs.getTabLabels()).to.eql([ - 'Untitled 1', - 'Untitled 2', - 'Untitled 3', - 'Untitled 4', - 'Untitled 5', - 'Untitled 6', - 'Untitled 7', - 'Untitled 8', - ]); - await browser.pressKeys(browser.keys.ARROW_LEFT); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); - await browser.pressKeys(browser.keys.SPACE); - await browser.pressKeys(browser.keys.ARROW_LEFT); - await browser.pressKeys(browser.keys.ARROW_LEFT); - await browser.pressKeys(browser.keys.SPACE); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 7'); - expect(await unifiedTabs.getTabLabels()).to.eql([ - 'Untitled 1', - 'Untitled 2', - 'Untitled 3', - 'Untitled 4', - 'Untitled 7', - 'Untitled 5', - 'Untitled 6', - 'Untitled 8', - ]); - await browser.pressKeys(browser.keys.ARROW_RIGHT); - expect((await unifiedTabs.getSelectedTab())?.label).to.be('Untitled 5'); - await browser.pressKeys(browser.keys.SPACE); - await browser.pressKeys(browser.keys.ARROW_RIGHT); - await browser.pressKeys(browser.keys.SPACE); - expect(await unifiedTabs.getTabLabels()).to.eql([ - 'Untitled 1', - 'Untitled 2', - 'Untitled 3', - 'Untitled 4', - 'Untitled 7', - 'Untitled 6', - 'Untitled 5', - 'Untitled 8', - ]); - }); - }); -}; 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 deleted file mode 100644 index 884c1f248c684..0000000000000 --- a/x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { CreateAgentPolicyResponse } from '@kbn/fleet-plugin/common'; -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; - -export default function (providerContext: FtrProviderContext) { - const { getService } = providerContext; - const supertest = getService('supertest'); - const esArchiver = getService('esArchiver'); - const kibanaServer = getService('kibanaServer'); - const fleetAndAgents = getService('fleetAndAgents'); - - const createOutput = async ({ - name, - id, - type, - hosts, - }: { - name: string; - id: string; - type: string; - hosts: string[]; - }): Promise => { - const res = await supertest - .post(`/api/fleet/outputs`) - .set('kbn-xsrf', 'xxxx') - .send({ - id, - name, - type, - hosts, - }) - .expect(200); - return res.body.item.id; - }; - - const createAgentPolicy = async ( - name: string, - id: string, - dataOutputId?: string, - monitoringOutputId?: string - ): Promise => { - const res = await supertest - .post(`/api/fleet/agent_policies`) - .set('kbn-xsrf', 'xxxx') - .send({ - name, - id, - namespace: 'default', - ...(dataOutputId ? { data_output_id: dataOutputId } : {}), - ...(monitoringOutputId ? { monitoring_output_id: monitoringOutputId } : {}), - }) - .expect(200); - return res.body.item; - }; - - const createAgentPolicyWithPackagePolicy = async ({ - name, - id, - outputId, - }: { - name: string; - id: string; - outputId?: string; - }): Promise => { - const { body: res } = await supertest - .post(`/api/fleet/agent_policies`) - .set('kbn-xsrf', 'xxxx') - .send({ - name, - namespace: 'default', - id, - }) - .expect(200); - - const agentPolicyWithPPId = res.item.id; - // package policy needs to have a custom output_id - await supertest - .post(`/api/fleet/package_policies`) - .set('kbn-xsrf', 'xxxx') - .send({ - name: 'filetest-1', - description: '', - namespace: 'default', - ...(outputId ? { output_id: outputId } : {}), - policy_id: agentPolicyWithPPId, - inputs: [], - package: { - name: 'filetest', - title: 'For File Tests', - version: '0.1.0', - }, - }) - .expect(200); - return res.item; - }; - - let output1Id = ''; - describe('fleet_agent_policies_outputs', () => { - describe('POST /api/fleet/agent_policies/outputs', () => { - before(async () => { - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - await kibanaServer.savedObjects.cleanStandardList(); - await fleetAndAgents.setup(); - - output1Id = await createOutput({ - name: 'Output 1', - id: 'logstash-output-1', - type: 'logstash', - hosts: ['test.fr:443'], - }); - }); - after(async () => { - await supertest - .delete(`/api/fleet/outputs/${output1Id}`) - .set('kbn-xsrf', 'xxxx') - .expect(200); - }); - - it('should get a list of outputs by agent policies', async () => { - await createAgentPolicy('Agent policy with default output', 'agent-policy-1'); - await createAgentPolicy( - 'Agent policy with custom output', - 'agent-policy-2', - output1Id, - output1Id - ); - - const outputsPerPoliciesRes = await supertest - .post(`/api/fleet/agent_policies/outputs`) - .set('kbn-xsrf', 'xxxx') - .send({ - ids: ['agent-policy-1', 'agent-policy-2'], - }) - .expect(200); - expect(outputsPerPoliciesRes.body.items).to.eql([ - { - agentPolicyId: 'agent-policy-1', - monitoring: { - output: { - name: 'default', - id: 'fleet-default-output', - }, - }, - data: { - output: { - name: 'default', - id: 'fleet-default-output', - }, - integrations: [], - }, - }, - { - agentPolicyId: 'agent-policy-2', - monitoring: { - output: { - name: 'Output 1', - id: 'logstash-output-1', - }, - }, - data: { - output: { - name: 'Output 1', - id: 'logstash-output-1', - }, - integrations: [], - }, - }, - ]); - // clean up policies - await supertest - .post(`/api/fleet/agent_policies/delete`) - .send({ agentPolicyId: 'agent-policy-1' }) - .set('kbn-xsrf', 'xxxx') - .expect(200); - await supertest - .post(`/api/fleet/agent_policies/delete`) - .send({ agentPolicyId: 'agent-policy-2' }) - .set('kbn-xsrf', 'xxxx') - .expect(200); - }); - }); - - let output2Id = ''; - describe('GET /api/fleet/agent_policies/{agentPolicyId}/outputs', () => { - before(async () => { - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - await kibanaServer.savedObjects.cleanStandardList(); - await fleetAndAgents.setup(); - - output2Id = await createOutput({ - name: 'ES Output 1', - id: 'es-output-1', - type: 'elasticsearch', - hosts: ['https://test.fr:8080'], - }); - }); - after(async () => { - await supertest - .delete(`/api/fleet/outputs/${output2Id}`) - .set('kbn-xsrf', 'xxxx') - .expect(200); - }); - - it('should get the list of outputs related to an agentPolicy id', async () => { - await createAgentPolicy('Agent policy with ES output', 'agent-policy-custom', output2Id); - - const outputsPerPoliciesRes = await supertest - .get(`/api/fleet/agent_policies/agent-policy-custom/outputs`) - .set('kbn-xsrf', 'xxxx') - .expect(200); - expect(outputsPerPoliciesRes.body.item).to.eql({ - monitoring: { - output: { - name: 'default', - id: 'fleet-default-output', - }, - }, - data: { - output: { - name: 'ES Output 1', - id: 'es-output-1', - }, - integrations: [], - }, - }); - - await supertest - .post(`/api/fleet/agent_policies/delete`) - .send({ agentPolicyId: 'agent-policy-custom' }) - .set('kbn-xsrf', 'xxxx') - .expect(200); - }); - - it('should also list the outputs set on integrations if any', async () => { - await createAgentPolicyWithPackagePolicy({ - name: 'Agent Policy with package policy', - id: 'agent-policy-custom-2', - outputId: output2Id, - }); - - const outputsPerPoliciesRes = await supertest - .get(`/api/fleet/agent_policies/agent-policy-custom-2/outputs`) - .set('kbn-xsrf', 'xxxx') - .expect(200); - expect(outputsPerPoliciesRes.body.item).to.eql({ - monitoring: { - output: { - name: 'default', - id: 'fleet-default-output', - }, - }, - data: { - output: { - name: 'default', - id: 'fleet-default-output', - }, - integrations: [ - { - id: 'es-output-1', - integrationPolicyName: 'filetest-1', - name: 'ES Output 1', - }, - ], - }, - }); - - await supertest - .post(`/api/fleet/agent_policies/delete`) - .send({ agentPolicyId: 'agent-policy-custom-2' }) - .set('kbn-xsrf', 'xxxx') - .expect(200); - }); - }); - }); -} 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 deleted file mode 100644 index 2c6209b5abf74..0000000000000 --- a/x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { AGENTS_INDEX } from '@kbn/fleet-plugin/common'; -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; - -export default function (providerContext: FtrProviderContext) { - const { getService } = providerContext; - const esArchiver = getService('esArchiver'); - const supertest = getService('supertest'); - const es = getService('es'); - - describe('fleet_agents_migrate', () => { - before(async () => { - 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 - const policy1Response = await supertest - .post(`/api/fleet/agent_policies`) - .set('kbn-xsrf', 'xx') - .send({ - name: 'Policy 1', - namespace: 'default', - description: 'Test policy 1', - monitoring_enabled: ['logs', 'metrics'], - }) - .expect(200); - - const policy1 = policy1Response.body.item; - - // Policy 2 - with tamper protection - const policy2Response = await supertest - .post(`/api/fleet/agent_policies`) - .set('kbn-xsrf', 'xx') - .send({ - name: 'Policy 2', - namespace: 'default', - description: 'Test policy 2 with tamper protection', - monitoring_enabled: ['logs', 'metrics'], - }) - .expect(200); - - const policy2 = policy2Response.body.item; - - // First, install the endpoint package which is required for the endpoint package policy - await supertest - .post('/api/fleet/epm/packages/endpoint') - .set('kbn-xsrf', 'xx') - .send({ force: true }) - .expect(200); - - // Fetch the installed package to get its current version - const packageInfoResponse = await supertest - .get('/api/fleet/epm/packages/endpoint') - .set('kbn-xsrf', 'xx') - .expect(200); - - const endpointPackageVersion = packageInfoResponse.body.item.version; - - // Create Elastic Defend package policy for policy2 with proper configuration - await supertest - .post(`/api/fleet/package_policies`) - .set('kbn-xsrf', 'xx') - .send({ - name: 'endpoint-1', - description: 'Endpoint Security Integration', - namespace: 'default', - policy_id: policy2.id, - enabled: true, - inputs: [ - { - type: 'endpoint', - enabled: true, - streams: [], - config: { - policy: { - value: { - windows: { - events: { - dll_and_driver_load: true, - dns: true, - file: true, - network: true, - process: true, - registry: true, - security: true, - }, - malware: { mode: 'prevent' }, - ransomware: { mode: 'prevent' }, - memory_protection: { mode: 'prevent' }, - behavior_protection: { mode: 'prevent' }, - popup: { - malware: { enabled: true, message: '' }, - ransomware: { enabled: true, message: '' }, - }, - }, - mac: { - events: { file: true, network: true, process: true }, - malware: { mode: 'prevent' }, - behavior_protection: { mode: 'prevent' }, - popup: { malware: { enabled: true, message: '' } }, - }, - linux: { - events: { file: true, network: true, process: true }, - malware: { mode: 'prevent' }, - behavior_protection: { mode: 'prevent' }, - popup: { malware: { enabled: true, message: '' } }, - }, - }, - }, - }, - }, - ], - package: { - name: 'endpoint', - title: 'Elastic Defend', - version: endpointPackageVersion, // Use the actual installed version - }, - }) - .expect(200); - - // Now enable tamper protection on policy2 - await supertest - .put(`/api/fleet/agent_policies/${policy2.id}`) - .set('kbn-xsrf', 'xx') - .send({ - name: policy2.name, - namespace: 'default', - description: policy2.description, - is_protected: true, // Enable tamper protection - }) - .expect(200); - - // Create agents in Elasticsearch - await es.index({ - refresh: 'wait_for', - index: AGENTS_INDEX, - id: 'agent1', - document: { - policy_id: policy1.id, - }, - }); - - await es.index({ - refresh: 'wait_for', - index: AGENTS_INDEX, - id: 'agent2', - document: { - policy_id: policy2.id, // Policy 2 is tamper protected - }, - }); - await es.index({ - refresh: 'wait_for', - index: AGENTS_INDEX, - id: 'agent3', - document: { - policy_id: policy1.id, - components: [ - { - type: 'fleet-server', - id: 'fleet-server', - revision: 1, - }, - ], - }, - }); - }); - - after(async () => { - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/agents'); - // Cleanup will be handled automatically by Fleet API - }); - - describe('POST /agents/{agentId}/migrate', () => { - it('should return a 200 if the migration action is successful', async () => { - const {} = await supertest - .post(`/api/fleet/agents/agent1/migrate`) - .set('kbn-xsrf', 'xx') - .send({ - enrollment_token: '1234', - uri: 'https://example.com', - }) - .expect(200); - }); - - it('should return a 403 if the agent is tamper protected', async () => { - const {} = await supertest - .post(`/api/fleet/agents/agent2/migrate`) - .set('kbn-xsrf', 'xx') - .send({ - enrollment_token: '1234', - uri: 'https://example.com', - }) - .expect(403); - }); - - it('should return a 403 if the agent is a fleet-agent', async () => { - const {} = await supertest - .post(`/api/fleet/agents/agent3/migrate`) - .set('kbn-xsrf', 'xx') - .send({ - enrollment_token: '1234', - uri: 'https://example.com', - }) - .expect(403); - }); - - it('should return a 404 when agent does not exist', async () => { - await supertest - .post(`/api/fleet/agents/agent100/migrate`) - .set('kbn-xsrf', 'xx') - .send({ - enrollment_token: '1234', - uri: 'https://example.com', - }) - .expect(404); - }); - }); - - // Bulk migrate agents - describe('POST /agents/bulk_migrate', () => { - it('should return a 200 if the migration action is successful', async () => { - const {} = await supertest - .post(`/api/fleet/agents/bulk_migrate`) - .set('kbn-xsrf', 'xx') - .send({ - agents: ['agent1'], - uri: 'https://example.com', - enrollment_token: '1234', - }) - .expect(200); - }); - - it('should return a 403 if any agent is tamper protected', async () => { - const {} = await supertest - .post(`/api/fleet/agents/bulk_migrate`) - .set('kbn-xsrf', 'xx') - .send({ - agents: ['agent1', 'agent2'], - uri: 'https://example.com', - enrollment_token: '1234', - }) - .expect(403); - }); - - it('should return a 403 if any agent is a fleet-agent', async () => { - const {} = await supertest - .post(`/api/fleet/agents/bulk_migrate`) - .set('kbn-xsrf', 'xx') - .send({ - agents: ['agent1', 'agent3'], - uri: 'https://example.com', - enrollment_token: '1234', - }) - .expect(403); - }); - - it('should return a 404 when any agent does not exist', async () => { - await supertest - .post(`/api/fleet/agents/bulk_migrate`) - .set('kbn-xsrf', 'xx') - .send({ - agents: ['agent100', 'agent400', 'agent1'], - uri: 'https://example.com', - enrollment_token: '1234', - }) - .expect(404); - }); - }); - }); -} 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 deleted file mode 100644 index ec10059fbc44a..0000000000000 --- a/x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; -import { skipIfNoDockerRegistry } from '../../helpers'; -import { testUsers } from '../test_users'; - -const TEST_INDEX = 'logs-log.log-test'; - -const FLEET_EVENT_INGESTED_PIPELINE_ID = '.fleet_event_ingested_pipeline-1'; - -// TODO: Use test package or move to input package version github.com/elastic/kibana/issues/154243 -const LOG_INTEGRATION_VERSION = '1.1.2'; - -const FLEET_EVENT_INGESTED_PIPELINE_VERSION = 1; - -export default function (providerContext: FtrProviderContext) { - const { getService } = providerContext; - const supertestWithoutAuth = getService('supertestWithoutAuth'); - const es = getService('es'); - const esArchiver = getService('esArchiver'); - const fleetAndAgents = getService('fleetAndAgents'); - - describe('fleet_event_ingested_pipeline', () => { - skipIfNoDockerRegistry(providerContext); - before(async () => { - 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 - .post(`/api/fleet/epm/packages/log/${LOG_INTEGRATION_VERSION}`) - .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) - .set('kbn-xsrf', 'xxxx') - .send({ force: true }) - .expect(200); - }); - - after(async () => { - await supertestWithoutAuth - .delete(`/api/fleet/epm/packages/log/${LOG_INTEGRATION_VERSION}`) - .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) - .set('kbn-xsrf', 'xxxx') - .send({ force: true }) - .expect(200); - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - const res = await es.search({ - index: TEST_INDEX, - }); - - for (const hit of res.hits.hits) { - await es.delete({ - id: hit._id!, - index: hit._index, - }); - } - }); - - it('should correctly update the event ingested pipeline', async () => { - await es.ingest.putPipeline({ - id: FLEET_EVENT_INGESTED_PIPELINE_ID, - description: 'Test PIPELINE WITHOUT version', - processors: [ - { - set: { - field: 'my-keyword-field', - value: 'foo', - }, - }, - ], - }); - await supertestWithoutAuth - .post(`/api/fleet/setup`) - .auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password) - .set('kbn-xsrf', 'xxxx'); - const pipelineRes = await es.ingest.getPipeline({ id: FLEET_EVENT_INGESTED_PIPELINE_ID }); - expect(pipelineRes).to.have.property(FLEET_EVENT_INGESTED_PIPELINE_ID); - expect(pipelineRes[FLEET_EVENT_INGESTED_PIPELINE_ID].version).to.be(1); - }); - - it('should correctly setup the event ingested pipeline and apply to fleet managed index template', async () => { - const pipelineRes = await es.ingest.getPipeline({ id: FLEET_EVENT_INGESTED_PIPELINE_ID }); - expect(pipelineRes).to.have.property(FLEET_EVENT_INGESTED_PIPELINE_ID); - const res = await es.indices.getIndexTemplate({ name: 'logs-log.log' }); - expect(res.index_templates.length).to.be(FLEET_EVENT_INGESTED_PIPELINE_VERSION); - expect(res.index_templates[0]?.index_template?.composed_of).to.contain('ecs@mappings'); - expect(res.index_templates[0]?.index_template?.composed_of).to.contain('.fleet_globals-1'); - expect(res.index_templates[0]?.index_template?.composed_of).to.contain( - '.fleet_event_ingested-1' - ); - }); - - it('all docs should contain event.ingested without sub-seconds', async () => { - const res = await es.index({ - index: 'logs-log.log-test', - body: { - '@timestamp': '2020-01-01T09:09:00', - message: 'hello', - }, - }); - - const doc = await es.get({ - id: res._id, - index: res._index, - }); - // @ts-expect-error - const ingestTimestamp = doc._source.event.ingested; - - // 2021-06-30T12:06:28Z - expect(ingestTimestamp).to.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/); - }); - - it('should remove agent_id_status', async () => { - const res = await es.index({ - index: 'logs-log.log-test', - body: { - message: 'message-test-1', - '@timestamp': '2020-01-01T09:09:00', - agent: { - id: 'agent1', - }, - event: { - agent_id_status: 'dummy', - }, - }, - }); - - const doc = await es.get({ - id: res._id, - index: res._index, - }); - // @ts-expect-error - const event = doc._source.event; - - expect(event.agent_id_status).to.be(undefined); - expect(event).to.have.property('ingested'); - }); - - it('removes event.original if preserve_original_event is not set', async () => { - const res = await es.index({ - index: 'logs-log.log-test', - body: { - message: 'message-test-1', - event: { - original: JSON.stringify({ foo: 'bar' }), - }, - '@timestamp': '2023-01-01T09:00:00', - tags: [], - agent: { - id: 'agent1', - }, - }, - }); - - const doc: any = await es.get({ - id: res._id, - index: res._index, - }); - - const event = doc._source.event; - - expect(event.original).to.be(undefined); - }); - - it('preserves event.original if preserve_original_event is set', async () => { - const res = await es.index({ - index: 'logs-log.log-test', - body: { - message: 'message-test-1', - event: { - original: JSON.stringify({ foo: 'bar' }), - }, - '@timestamp': '2023-01-01T09:00:00', - tags: ['preserve_original_event'], - agent: { - id: 'agent1', - }, - }, - }); - - const doc: any = await es.get({ - id: res._id, - index: res._index, - }); - - const event = doc._source.event; - - expect(event.original).to.eql(JSON.stringify({ foo: 'bar' })); - }); - }); -} 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 deleted file mode 100644 index 338c7c4b11787..0000000000000 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_counters.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; -import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; -import type { FtrProviderContext } from '../../ftr_provider_context'; -import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; - -// eslint-disable-next-line import/no-default-export -export default function ({ getPageObjects, getService }: FtrProviderContext) { - const supertest = getService('supertest'); - const esArchiver = getService('esArchiver'); - const kibanaServer = getService('kibanaServer'); - const pageObjects = getPageObjects([ - 'common', - 'cloudPostureDashboard', - 'rule', - 'header', - 'findings', - ]); - const retryService = getService('retry'); - - describe('Cloud Posture Rules Page - Counters', function () { - this.tags(['cloud_security_posture_rules_page_counters']); - let rule: typeof pageObjects.rule; - let findings: typeof pageObjects.findings; - let agentPolicyId: string; - - before(async () => { - rule = pageObjects.rule; - findings = pageObjects.findings; - await findings.index.remove(); - - // cleanup agent and package policies - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - - const { body: agentPolicyResponse } = await supertest - .post(`/api/fleet/agent_policies`) - .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') - .set('kbn-xsrf', 'xxxx') - .send({ - name: 'Test policy', - namespace: 'default', - }); - - agentPolicyId = agentPolicyResponse.item.id; - - await createPackagePolicy( - supertest, - agentPolicyId, - 'kspm', - 'cloudbeat/cis_k8s', - 'vanilla', - 'kspm' - ); - await rule.waitForPluginInitialized(); - }); - - beforeEach(async () => { - await findings.index.add(k8sFindingsMock); - await rule.navigateToRulePage('cis_k8s', '1.0.1'); - }); - - after(async () => { - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - }); - - afterEach(async () => { - await findings.index.remove(); - }); - - describe('Rules Page - Rules Counters', () => { - it('Shows posture score when there are findings', async () => { - const isEmptyStateVisible = await rule.rulePage.getCountersEmptyState(); - expect(isEmptyStateVisible).to.be(false); - - const postureScoreCounter = await rule.rulePage.getPostureScoreCounter(); - expect((await postureScoreCounter.getVisibleText()).includes('33%')).to.be(true); - }); - - it('Clicking the posture score button leads to the dashboard', async () => { - await retryService.tryForTime(5000, async () => { - await rule.rulePage.clickPostureScoreButton(); - await pageObjects.common.waitUntilUrlIncludes('cloud_security_posture/dashboard'); - }); - }); - - it('Shows integrations count when there are findings', async () => { - const integrationsCounter = await rule.rulePage.getIntegrationsEvaluatedCounter(); - expect((await integrationsCounter.getVisibleText()).includes('1')).to.be(true); - }); - - it('Clicking the integrations counter button leads to the integration page', async () => { - await rule.rulePage.clickIntegrationsEvaluatedButton(); - await pageObjects.common.waitUntilUrlIncludes('add-integration/kspm'); - }); - - it('Shows the failed findings counter when there are findings', async () => { - const failedFindingsCounter = await rule.rulePage.getFailedFindingsCounter(); - expect((await failedFindingsCounter.getVisibleText()).includes('2')).to.be(true); - }); - - it('Clicking the failed findings button leads to the findings page', async () => { - await rule.rulePage.clickFailedFindingsButton(); - await pageObjects.common.waitUntilUrlIncludes( - 'cloud_security_posture/findings/configurations' - ); - }); - - it('Shows the disabled rules count', async () => { - const disabledRulesCounter = await rule.rulePage.getDisabledRulesCounter(); - expect((await disabledRulesCounter.getVisibleText()).includes('0')).to.be(true); - - // disable rule 1.1.1 (k8s findings mock contains a findings from that rule) - await rule.rulePage.clickEnableRulesRowSwitchButton(0); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect((await disabledRulesCounter.getVisibleText()).includes('1')).to.be(true); - - const postureScoreCounter = await rule.rulePage.getPostureScoreCounter(); - expect((await postureScoreCounter.getVisibleText()).includes('0%')).to.be(true); - - // enable rule back - await rule.rulePage.clickEnableRulesRowSwitchButton(0); - }); - - it('Clicking the disabled rules button shows enables the disabled filter', async () => { - await rule.rulePage.clickEnableRulesRowSwitchButton(0); - await pageObjects.header.waitUntilLoadingHasFinished(); - - await rule.rulePage.clickDisabledRulesButton(); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 1).to.be(true); - }); - - it('Shows empty state when there are no findings', async () => { - // Ensure there are no findings initially - await findings.index.remove(); - await rule.navigateToRulePage('cis_k8s', '1.0.1'); - - const isEmptyStateVisible = await rule.rulePage.getCountersEmptyState(); - expect(isEmptyStateVisible).to.be(true); - await rule.rulePage.clickEnableRulesRowSwitchButton(0); - }); - }); - }); -} 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 deleted file mode 100644 index e79398a0a9a95..0000000000000 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table.ts +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; -import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; -import type { FtrProviderContext } from '../../ftr_provider_context'; -import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; -import { - RULES_BULK_ACTION_OPTION_DISABLE, - RULES_BULK_ACTION_OPTION_ENABLE, -} from '../../page_objects/rule_page'; - -// eslint-disable-next-line import/no-default-export -export default function ({ getPageObjects, getService }: FtrProviderContext) { - const supertest = getService('supertest'); - const esArchiver = getService('esArchiver'); - const kibanaServer = getService('kibanaServer'); - const pageObjects = getPageObjects([ - 'common', - 'cloudPostureDashboard', - 'rule', - 'header', - 'findings', - ]); - const retryService = getService('retry'); - - describe('Cloud Posture Rules Page - Table', function () { - this.tags(['cloud_security_posture_rules_page_table']); - let rule: typeof pageObjects.rule; - let findings: typeof pageObjects.findings; - let agentPolicyId: string; - - before(async () => { - rule = pageObjects.rule; - findings = pageObjects.findings; - await findings.index.remove(); - - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - - const { body: agentPolicyResponse } = await supertest - .post(`/api/fleet/agent_policies`) - .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') - .set('kbn-xsrf', 'xxxx') - .send({ - name: 'Test policy', - namespace: 'default', - }); - - agentPolicyId = agentPolicyResponse.item.id; - - await createPackagePolicy( - supertest, - agentPolicyId, - 'kspm', - 'cloudbeat/cis_k8s', - 'vanilla', - 'kspm' - ); - await rule.waitForPluginInitialized(); - }); - - beforeEach(async () => { - // cleanup agent and package policies - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await findings.index.add(k8sFindingsMock); - await rule.navigateToRulePage('cis_k8s', '1.0.1'); - }); - - after(async () => { - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - }); - - afterEach(async () => { - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await findings.index.remove(); - }); - - describe('Rules Page - Bulk Action buttons', () => { - it('It should disable Enable option when there are all rules selected are already enabled ', async () => { - await rule.rulePage.clickSelectAllRules(); - await rule.rulePage.toggleBulkActionButton(); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === - 'true' - ).to.be(true); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === - 'true' - ).to.be(false); - }); - - it('It should disable both Enable and Disable options when there are no rules selected', async () => { - await rule.rulePage.toggleBulkActionButton(); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === - 'true' - ).to.be(true); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === - 'true' - ).to.be(true); - }); - - it('It should disable Disable option when there are all rules selected are already Disabled', async () => { - await rule.rulePage.clickSelectAllRules(); - await rule.rulePage.toggleBulkActionButton(); - await rule.rulePage.clickBulkActionOption(RULES_BULK_ACTION_OPTION_DISABLE); - await pageObjects.header.waitUntilLoadingHasFinished(); - await rule.rulePage.clickSelectAllRules(); - await rule.rulePage.toggleBulkActionButton(); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === - 'true' - ).to.be(false); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === - 'true' - ).to.be(true); - }); - - it('Both option should not be disabled if selected rules contains both enabled and disabled rules', async () => { - await rule.rulePage.clickEnableRulesRowSwitchButton(0); - await pageObjects.header.waitUntilLoadingHasFinished(); - await rule.rulePage.clickSelectAllRules(); - await rule.rulePage.toggleBulkActionButton(); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_ENABLE)) === - 'true' - ).to.be(false); - expect( - (await rule.rulePage.isBulkActionOptionDisabled(RULES_BULK_ACTION_OPTION_DISABLE)) === - 'true' - ).to.be(false); - }); - }); - - describe('Rules Page - Flyout', () => { - it('Users are able to Enable/Disable Rule from Switch on Rule Flyout', async () => { - // Ensure that the first rule is enabled - await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'enable'); - await rule.rulePage.closeToasts(); - - await rule.rulePage.clickRulesNames(0); - await rule.rulePage.clickFlyoutEnableSwitchButton(); - await pageObjects.header.waitUntilLoadingHasFinished(); - - expect((await rule.rulePage.getEnableSwitchButtonState()) === 'false').to.be(true); - await rule.rulePage.clickCloseFlyoutButton(); - }); - it('Alerts section of Rules Flyout shows Disabled text when Rules are disabled', async () => { - await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'disable'); - await rule.rulePage.closeToasts(); - - await rule.rulePage.clickRulesNames(0); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect( - (await rule.rulePage.doesElementExist( - 'csp:findings-flyout-create-detection-rule-link' - )) === false - ).to.be(true); - - await rule.rulePage.clickCloseFlyoutButton(); - }); - it('Users are able to Enable/Disable Rule from Take Action on Rule Flyout', async () => { - await rule.rulePage.togglEnableRulesRowSwitchButton(0, 'disable'); - await rule.rulePage.closeToasts(); - - await rule.rulePage.clickRulesNames(0); - await retryService.try(async () => { - await rule.rulePage.clickTakeActionButton(); - await rule.rulePage.clickTakeActionButtonOption('enable'); - }); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect((await rule.rulePage.getEnableSwitchButtonState()) === 'true').to.be(true); - - await rule.rulePage.clickCloseFlyoutButton(); - }); - it('Alerts section of Rules Flyout shows Detection Rule Counter component when Rules are enabled', async () => { - await rule.rulePage.clickRulesNames(0); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect( - (await rule.rulePage.doesElementExist( - 'csp:findings-flyout-create-detection-rule-link' - )) === true - ).to.be(true); - }); - }); - }); -} 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 deleted file mode 100644 index 698facf3f60af..0000000000000 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules/rules_table_headers.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; -import { createPackagePolicy } from '../../../api_integration/apis/cloud_security_posture/helper'; -import type { FtrProviderContext } from '../../ftr_provider_context'; -import { k8sFindingsMock } from '../../mocks/latest_findings_mock'; - -// eslint-disable-next-line import/no-default-export -export default function ({ getPageObjects, getService }: FtrProviderContext) { - const supertest = getService('supertest'); - const esArchiver = getService('esArchiver'); - const kibanaServer = getService('kibanaServer'); - const pageObjects = getPageObjects([ - 'common', - 'cloudPostureDashboard', - 'rule', - 'header', - 'findings', - ]); - - describe('Cloud Posture Rules Page - Table Headers', function () { - this.tags(['cloud_security_posture_rules_page_table_headers']); - let rule: typeof pageObjects.rule; - let findings: typeof pageObjects.findings; - let agentPolicyId: string; - - before(async () => { - rule = pageObjects.rule; - findings = pageObjects.findings; - await findings.index.remove(); - - // cleanup agent and package policies - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - - const { body: agentPolicyResponse } = await supertest - .post(`/api/fleet/agent_policies`) - .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') - .set('kbn-xsrf', 'xxxx') - .send({ - name: 'Test policy', - namespace: 'default', - }); - - agentPolicyId = agentPolicyResponse.item.id; - - await createPackagePolicy( - supertest, - agentPolicyId, - 'kspm', - 'cloudbeat/cis_k8s', - 'vanilla', - 'kspm' - ); - await rule.waitForPluginInitialized(); - }); - - beforeEach(async () => { - await findings.index.add(k8sFindingsMock); - await rule.navigateToRulePage('cis_k8s', '1.0.1'); - }); - - after(async () => { - await kibanaServer.savedObjects.clean({ - types: [ - 'ingest-agent-policies', - 'fleet-agent-policies', - 'ingest-package-policies', - 'fleet-package-policies', - 'cloud-security-posture-settings', - ], - }); - await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server'); - }); - - afterEach(async () => { - await findings.index.remove(); - }); - - describe('Rules Page - Enable Rules and Disabled Rules Filter Toggle', () => { - it('Should only display Enabled rules when Enabled Rules filter is ON', async () => { - await rule.rulePage.clickFilterButton('enabled'); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 25).to.be(true); - }); - - it('Should only display Disabled rules when Disabled Rules filter is ON', async () => { - await rule.rulePage.clickFilterButton('disabled'); - await pageObjects.header.waitUntilLoadingHasFinished(); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 0).to.be(true); - }); - }); - - describe('Rules Page - CIS Section & Rule Number filters', () => { - it('Table should only show result that has the same section as in the Section filter', async () => { - await rule.rulePage.closeToasts(); - await rule.rulePage.clickFilterPopover('section'); - await rule.rulePage.clickFilterPopOverOption('etcd'); - await rule.rulePage.clickFilterPopOverOption('Scheduler'); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) < 10).to.be(true); - }); - - it('Table should only show result that has the same section as in the Rule number filter', async () => { - await rule.rulePage.closeToasts(); - await rule.rulePage.clickFilterPopover('ruleNumber'); - await rule.rulePage.clickFilterPopOverOption('1.1.1'); - await rule.rulePage.clickFilterPopOverOption('1.1.2'); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 2).to.be(true); - }); - - it('Table should only show result that passes both Section and Rule number filter', async () => { - await rule.rulePage.closeToasts(); - await rule.rulePage.clickFilterPopover('section'); - await rule.rulePage.clickFilterPopOverOption('Control-Plane-Node-Configuration-Files'); - await rule.rulePage.clickFilterPopover('section'); - await rule.rulePage.clickFilterPopover('ruleNumber'); - await rule.rulePage.clickFilterPopOverOption('1.1.5'); - expect((await rule.rulePage.getEnableRulesRowSwitchButton()) === 1).to.be(true); - }); - }); - }); -} From d6994e55e9e752cb0d07c96eda9fbfec3691359d Mon Sep 17 00:00:00 2001 From: fake-haris Date: Thu, 14 Aug 2025 10:14:32 +0300 Subject: [PATCH 03/12] removed delpoyment_modes --- .../apis/package_policy/deployment_modes.ts | 661 ------------------ 1 file changed, 661 deletions(-) delete mode 100644 x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts 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 deleted file mode 100644 index 7802a93f717ec..0000000000000 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/deployment_modes.ts +++ /dev/null @@ -1,661 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ -import * 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'" - ); - }); - }); - }); - }); - }); -} From 45cb49fcee061fbeb7a578ed98736d63a913699d Mon Sep 17 00:00:00 2001 From: fake-haris Date: Thu, 14 Aug 2025 10:21:11 +0300 Subject: [PATCH 04/12] resolved conflicts --- .../trial_license_complete_tier/tests/overview_network.ts | 5 ----- 1 file changed, 5 deletions(-) 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 8b9067b25bbba..8d6beadecd010 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 @@ -113,13 +113,8 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { describe('With auditbeat', () => { before(async () => { supertest = await utils.createSuperTest(); -<<<<<<< HEAD bsearch = await utils.createBsearch(); - await esArchiver.load('x-pack/test/functional/es_archives/auditbeat/overview'); -======= - search = await utils.createSearch(); await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/overview'); ->>>>>>> 2fb428aa876 ([ska] relocate esArchives to platform/test/fixtures (#229750)) }); after( async () => From 446acb19381957de0e0b72a32f929d41299cb094 Mon Sep 17 00:00:00 2001 From: fake-haris Date: Thu, 14 Aug 2025 10:33:04 +0300 Subject: [PATCH 05/12] removed create_security_tests --- .../feature_controls/create_security_tests.ts | 297 ------------------ 1 file changed, 297 deletions(-) delete mode 100644 x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts 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 deleted file mode 100644 index 5cc898e14ec7c..0000000000000 --- a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../ftr_provider_context'; -import { getSavedQuerySecurityUtils } from '../utils/saved_query_security'; - -export type FeatureName = - | 'discover' - | 'discover_v2' - | 'dashboard' - | 'dashboard_v2' - | 'maps' - | 'maps_v2' - | 'visualize' - | 'visualize_v2'; -export type FeatureApp = 'discover' | 'dashboard' | 'maps' | 'visualize'; - -export function createSecurityTests( - featureConfigs: Array<{ - feature: FeatureName; - app: FeatureApp; - hasImplicitSaveQueryManagement: boolean; - }> -) { - return function (ctx: FtrProviderContext) { - const { getPageObjects, getService } = ctx; - const savedQuerySecurityUtils = getSavedQuerySecurityUtils(ctx); - const esArchiver = getService('esArchiver'); - const securityService = getService('security'); - const globalNav = getService('globalNav'); - const { common, discover, security, dashboard, maps, visualize, spaceSelector } = - getPageObjects([ - 'common', - 'discover', - 'security', - 'dashboard', - 'maps', - 'visualize', - 'spaceSelector', - ]); - const kibanaServer = getService('kibanaServer'); - - async function login( - featureName: FeatureName, - featurePrivilege: 'read' | 'all', - globalPrivilege: 'none' | 'read' | 'all', - expectSpaceSelector = false - ) { - const name = `global_saved_query_${featureName}`; - const password = `password_${name}_${featurePrivilege}_${globalPrivilege}`; - - await securityService.role.create(name, { - elasticsearch: { - indices: [{ names: ['logstash-*'], privileges: ['read', 'view_index_metadata'] }], - }, - kibana: [ - { - feature: { - [featureName]: [featurePrivilege], - savedQueryManagement: [globalPrivilege], - }, - spaces: ['*'], - }, - ], - }); - - await securityService.user.create(`${name}-user`, { - password, - roles: [name], - full_name: 'test user', - }); - - await security.login(`${name}-user`, password, { expectSpaceSelector }); - } - - async function logout(featureName: FeatureName) { - const name = `global_saved_query_${featureName}`; - await security.forceLogout(); - await securityService.role.delete(name); - await securityService.user.delete(`${name}-user`); - } - - async function navigateToApp(appName: FeatureApp) { - switch (appName) { - case 'discover': - await common.navigateToApp('discover'); - await discover.selectIndexPattern('logstash-*'); - break; - case 'dashboard': - await dashboard.navigateToApp(); - await dashboard.loadSavedDashboard('A Dashboard'); - break; - case 'maps': - await maps.openNewMap(); - break; - case 'visualize': - await visualize.navigateToNewVisualization(); - await visualize.clickVisType('lens'); - break; - default: - break; - } - } - - describe('Security', () => { - describe('App vs Global privilege', () => { - featureConfigs.forEach(({ feature, app, hasImplicitSaveQueryManagement }) => { - before(async () => { - await kibanaServer.savedObjects.cleanStandardList(); - - await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' - ); - - 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(); - }); - - after(async () => { - // logout, so the other tests don't accidentally run as the custom users we're testing below - // NOTE: Logout needs to happen before anything else to avoid flaky behavior - await security.forceLogout(); - - await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' - ); - - await kibanaServer.savedObjects.cleanStandardList(); - }); - - describe(`${feature} read-only privileges with savedQueryManagement.saveQuery all privilege`, () => { - before(async () => { - await login(feature, 'read', 'all'); - await navigateToApp(app); - await common.waitForTopNavToBeVisible(); - }); - - after(async () => { - await logout(feature); - }); - - it('shows read-only badge', async () => { - await globalNav.badgeExistsOrFail('Read only'); - }); - - savedQuerySecurityUtils.shouldAllowSavingQueries(); - }); - - describe(`${feature} read-only privileges with savedQueryManagement.saveQuery read privilege`, () => { - before(async () => { - await login(feature, 'read', 'read'); - await navigateToApp(app); - await common.waitForTopNavToBeVisible(); - }); - - after(async () => { - await logout(feature); - }); - - it('shows read-only badge', async () => { - await globalNav.badgeExistsOrFail('Read only'); - }); - - savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); - }); - - describe(`${feature} read-only privileges with disabled savedQueryManagement.saveQuery privilege`, () => { - before(async () => { - await login(feature, 'read', 'none'); - await navigateToApp(app); - }); - - after(async () => { - await logout(feature); - }); - - it('shows read-only badge', async () => { - await globalNav.badgeExistsOrFail('Read only'); - }); - - if (hasImplicitSaveQueryManagement) { - savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); - } else { - savedQuerySecurityUtils.shouldDisallowAccessToSavedQueries(); - } - }); - - describe(`${feature} all privileges with savedQueryManagement.saveQuery all privilege`, () => { - before(async () => { - await login(feature, 'all', 'all'); - await navigateToApp(app); - }); - - after(async () => { - await logout(feature); - }); - - it("doesn't show read-only badge", async () => { - await globalNav.badgeMissingOrFail(); - }); - - savedQuerySecurityUtils.shouldAllowSavingQueries(); - }); - - describe(`${feature} all privileges with savedQueryManagement.saveQuery read privilege`, () => { - before(async () => { - await login(feature, 'all', 'read'); - await navigateToApp(app); - }); - - after(async () => { - await logout(feature); - }); - - it("doesn't show read-only badge", async () => { - await globalNav.badgeMissingOrFail(); - }); - - if (hasImplicitSaveQueryManagement) { - savedQuerySecurityUtils.shouldAllowSavingQueries(); - } else { - savedQuerySecurityUtils.shouldDisallowSavingButAllowLoadingSavedQueries(); - } - }); - - describe(`${feature} all privileges with disabled savedQueryManagement.saveQuery privilege`, () => { - before(async () => { - await login(feature, 'all', 'none'); - await navigateToApp(app); - }); - - after(async () => { - await logout(feature); - }); - - it("doesn't show read-only badge", async () => { - await globalNav.badgeMissingOrFail(); - }); - - if (hasImplicitSaveQueryManagement) { - savedQuerySecurityUtils.shouldAllowSavingQueries(); - } else { - savedQuerySecurityUtils.shouldDisallowAccessToSavedQueries(); - } - }); - }); - }); - - describe('Spaces feature visibility', () => { - featureConfigs.forEach(({ feature }) => { - describe(`space with ${feature} disabled`, () => { - const spaceId = `${feature}_space`; - let disabledFeatureId: string; - - before(async () => { - await kibanaServer.spaces.create({ - id: spaceId, - name: spaceId, - disabledFeatures: [feature], - }); - const disabledFeature = (await kibanaServer.spaces.get(spaceId)) as { - disabledFeatures: string[]; - }; - [disabledFeatureId] = disabledFeature.disabledFeatures; - await common.navigateToApp('home'); - }); - - after(async () => { - await kibanaServer.spaces.delete(spaceId); - }); - - it('should not disable saved query management feature visibility', async () => { - await spaceSelector.openSpacesNav(); - await spaceSelector.clickManageSpaces(); - await spaceSelector.clickSpaceEditButton(spaceId); - await spaceSelector.toggleFeatureCategoryVisibility('kibana'); - await spaceSelector.toggleFeatureCategoryVisibility('management'); - expect(await spaceSelector.getFeatureCheckboxState(disabledFeatureId)).to.be(false); - expect(await spaceSelector.getFeatureCheckboxState('savedQueryManagement')).to.be( - true - ); - }); - }); - }); - }); - }); - }; -} From ed6da9a2f87b18e41687d1ce7e08ff36c5ab22ae Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 14 Aug 2025 07:57:43 +0000 Subject: [PATCH 06/12] [CI] Auto-commit changed files from 'node scripts/eslint_all_files --no-cache --fix' --- .../platform/test/functional/apps/lens/group6/lens_tagging.ts | 4 +++- .../trial_license_complete_tier/tests/uncommon_processes.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 9c56fc5958d47..6210bcdd50504 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 @@ -30,7 +30,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('lens tagging', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded( + 'x-pack/platform/test/fixtures/es_archives/logstash_functional' + ); await timePicker.setDefaultAbsoluteRangeViaUiSettings(); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); 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 69d46c3323a71..f409c6c07da39 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,7 +31,9 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { before(async () => { supertest = await utils.createSuperTest(); bsearch = await utils.createBsearch(); - await esArchiver.load('x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes'); + await esArchiver.load( + 'x-pack/platform/test/fixtures/es_archives/auditbeat/uncommon_processes' + ); }); after(async () => { await esArchiver.unload( From 1f5cb0dae6e71ec218fadb9f90844130bb6d7d7a Mon Sep 17 00:00:00 2001 From: fake-haris Date: Thu, 14 Aug 2025 18:52:21 +0300 Subject: [PATCH 07/12] fixed broken tests --- .../apis/enrollment_api_keys/crud.ts | 4 +- .../fleet_api_integration/apis/epm/list.ts | 4 +- .../apis/package_policy/create.ts | 4 +- .../apis/settings/update.ts | 4 +- .../group3/reporting/download_csv.ts | 4 +- .../feature_controls/security.ts | 2 +- .../process_events/data.json | 228 ++++++++++++++++++ .../process_events/mapping.json | 31 +++ .../pages/rules.ts | 4 +- .../es_archives/alerts_legacy/tasks/data.json | 158 ++++++++++++ .../alerts_legacy/tasks/mapping.json | 120 +++++++++ 11 files changed, 550 insertions(+), 13 deletions(-) create mode 100644 x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/data.json create mode 100644 x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/mapping.json create mode 100644 x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json create mode 100644 x-pack/test/functional/es_archives/alerts_legacy/tasks/mapping.json diff --git a/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts b/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts index 9cb11df2b34de..206eb46627c0b 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts @@ -25,12 +25,12 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_enrollment_api_keys_crud', () => { 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/list.ts b/x-pack/platform/test/fleet_api_integration/apis/epm/list.ts index c0f6220c877e1..a05ca08c584dc 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/epm/list.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/epm/list.ts @@ -27,11 +27,11 @@ export default function (providerContext: FtrProviderContext) { const log = getService('log'); 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'); await removeBundledPackages(log); }); diff --git a/x-pack/platform/test/fleet_api_integration/apis/package_policy/create.ts b/x-pack/platform/test/fleet_api_integration/apis/package_policy/create.ts index 873034e5491f0..481571433291e 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/package_policy/create.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/package_policy/create.ts @@ -31,7 +31,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' ); const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`) @@ -56,7 +56,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' ); await supertest .post(`/api/fleet/agent_policies/delete`) diff --git a/x-pack/platform/test/fleet_api_integration/apis/settings/update.ts b/x-pack/platform/test/fleet_api_integration/apis/settings/update.ts index b4abd6414c865..0b456b69c76e1 100644 --- a/x-pack/platform/test/fleet_api_integration/apis/settings/update.ts +++ b/x-pack/platform/test/fleet_api_integration/apis/settings/update.ts @@ -22,7 +22,7 @@ export default function (providerContext: FtrProviderContext) { describe.skip('Settings - update', 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(); }); @@ -35,7 +35,7 @@ export default function (providerContext: FtrProviderContext) { .send({ agentPolicyId }) ); 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'); }); it('should explicitly set port on fleet_server_hosts', async function () { diff --git a/x-pack/platform/test/functional/apps/dashboard/group3/reporting/download_csv.ts b/x-pack/platform/test/functional/apps/dashboard/group3/reporting/download_csv.ts index ea2a66028ada5..2ce32d156a512 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group3/reporting/download_csv.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group3/reporting/download_csv.ts @@ -173,7 +173,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await esArchiver.emptyKibanaIndex(); await reportingService.initLogs(); - await esArchiver.load('x-pack/test/functional/es_archives/reporting/hugedata'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/hugedata'); await kibanaServer.uiSettings.update({ 'dateFormat:tz': 'UTC' }); }); @@ -192,7 +192,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await reportingService.teardownLogs(); - await esArchiver.unload('x-pack/test/functional/es_archives/reporting/hugedata'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/reporting/hugedata'); }); it('Generate CSV export of a saved search panel', async () => { diff --git a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts index 9c3b989882469..0b921dc7670b0 100644 --- a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts +++ b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts @@ -100,7 +100,7 @@ export default function (ctx: FtrProviderContext) { '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/es_archives/kubernetes_security/process_events/data.json b/x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/data.json new file mode 100644 index 0000000000000..bf91e696174f6 --- /dev/null +++ b/x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/data.json @@ -0,0 +1,228 @@ +{ + "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/platform/test/functional/es_archives/kubernetes_security/process_events/mapping.json b/x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/mapping.json new file mode 100644 index 0000000000000..366e303903746 --- /dev/null +++ b/x-pack/platform/test/functional/es_archives/kubernetes_security/process_events/mapping.json @@ -0,0 +1,31 @@ +{ + "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/solutions/security/test/cloud_security_posture_functional/pages/rules.ts b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules.ts index b1f83f55a49fb..f0cceacfee9b4 100644 --- a/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules.ts +++ b/x-pack/solutions/security/test/cloud_security_posture_functional/pages/rules.ts @@ -40,7 +40,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { findings = pageObjects.findings; 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`) @@ -68,7 +68,7 @@ export default function ({ getPageObjects, 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'); await findings.index.remove(); }); 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 new file mode 100644 index 0000000000000..e7c99521ff360 --- /dev/null +++ b/x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json @@ -0,0 +1,158 @@ +{ + "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/mapping.json b/x-pack/test/functional/es_archives/alerts_legacy/tasks/mapping.json new file mode 100644 index 0000000000000..d139264b8de93 --- /dev/null +++ b/x-pack/test/functional/es_archives/alerts_legacy/tasks/mapping.json @@ -0,0 +1,120 @@ +{ + "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" + } + } + } +} From 0ab50710e1b17863171493122b056cef3fb64a73 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 14 Aug 2025 16:22:51 +0000 Subject: [PATCH 08/12] [CI] Auto-commit changed files from 'node scripts/eslint_all_files --no-cache --fix' --- .../apps/saved_query_management/feature_controls/security.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts index 0b921dc7670b0..c09394b11add5 100644 --- a/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts +++ b/x-pack/platform/test/functional/apps/saved_query_management/feature_controls/security.ts @@ -100,7 +100,9 @@ export default function (ctx: FtrProviderContext) { 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' ); - await esArchiver.loadIfNeeded('x-pack/platform/test/fixtures/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(); From 48b1d1be84290dae0efc9ce5e34523b5fee6a92c Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sat, 16 Aug 2025 14:54:08 +0200 Subject: [PATCH 09/12] restore exception_list.json --- .../override_saved_objects_index/exception_list.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 747d6efdeb301..978fb3cf43585 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 @@ -3,6 +3,8 @@ "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/alerts_legacy/rules", + "x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks", "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", @@ -20,6 +22,7 @@ "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/lists", "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", @@ -29,4 +32,4 @@ "x-pack/test/functional/es_archives/security_solution/timelines/7.15.0_space", "x-pack/platform/test/fixtures/es_archives/task_manager_removed_types", "x-pack/platform/test/fixtures/es_archives/task_manager_tasks" -] +] \ No newline at end of file From 64cfb53516973ffd34c8bb1175c971d4bb4fe83a Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sat, 16 Aug 2025 14:57:26 +0200 Subject: [PATCH 10/12] relocate es_archives/alerts_legacy --- .../group2/tests/alerting/rbac_legacy.ts | 8 ++++---- .../fixtures}/es_archives/alerts_legacy/rules/data.json | 0 .../fixtures}/es_archives/alerts_legacy/tasks/data.json | 0 .../es_archives/alerts_legacy/tasks/mapping.json | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerts_legacy/rules/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerts_legacy/tasks/data.json (100%) rename x-pack/{test/functional => platform/test/fixtures}/es_archives/alerts_legacy/tasks/mapping.json (100%) diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/rbac_legacy.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/rbac_legacy.ts index 7e59d19edb247..6d0ae02ded831 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/rbac_legacy.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/rbac_legacy.ts @@ -65,8 +65,8 @@ export default function alertTests({ 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/alerts_legacy/rules'); - await esArchiver.load('x-pack/test/functional/es_archives/alerts_legacy/tasks'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules'); + await esArchiver.load('x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks'); await esTestIndexTool.setup(); await es.indices.create({ index: authorizationIndex }); await setupSpacesAndUsers(getService); @@ -75,8 +75,8 @@ export default function alertTests({ getService }: FtrProviderContext) { after(async () => { await esTestIndexTool.destroy(); await es.indices.delete({ index: authorizationIndex }); - await esArchiver.unload('x-pack/test/functional/es_archives/alerts_legacy/tasks'); - await esArchiver.unload('x-pack/test/functional/es_archives/alerts_legacy/rules'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks'); + await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules'); }); for (const scenario of UserAtSpaceScenarios) { diff --git a/x-pack/test/functional/es_archives/alerts_legacy/rules/data.json b/x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/data.json similarity index 100% rename from x-pack/test/functional/es_archives/alerts_legacy/rules/data.json rename to x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/data.json diff --git a/x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json b/x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks/data.json similarity index 100% rename from x-pack/test/functional/es_archives/alerts_legacy/tasks/data.json rename to x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks/data.json diff --git a/x-pack/test/functional/es_archives/alerts_legacy/tasks/mapping.json b/x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks/mapping.json similarity index 100% rename from x-pack/test/functional/es_archives/alerts_legacy/tasks/mapping.json rename to x-pack/platform/test/fixtures/es_archives/alerts_legacy/tasks/mapping.json From f359e6f1c88363a5bc68761f7df454b9f0047db7 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sat, 16 Aug 2025 15:04:09 +0200 Subject: [PATCH 11/12] restore es_archives/kubernetes_security --- .../process_events/data.json | 228 ++++++++++++++++++ .../process_events/mappings.json | 31 +++ 2 files changed, 259 insertions(+) create mode 100644 x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json create mode 100644 x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json 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 new file mode 100644 index 0000000000000..34dacbbe8b11e --- /dev/null +++ b/x-pack/test/functional/es_archives/kubernetes_security/process_events/data.json @@ -0,0 +1,228 @@ +{ + "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" + } + } +} \ No newline at end of file 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 new file mode 100644 index 0000000000000..8dd13af066fa9 --- /dev/null +++ b/x-pack/test/functional/es_archives/kubernetes_security/process_events/mappings.json @@ -0,0 +1,31 @@ +{ + "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 + } + } + } + } +} \ No newline at end of file From e0c9592d4b6d61884dc16794829c84c68d0d78b6 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sun, 17 Aug 2025 13:03:36 +0200 Subject: [PATCH 12/12] restore es_archives/alerts_legacy/rules/mappings.json --- .../alerts_legacy/rules/mappings.json | 2522 +++++++++++++++++ 1 file changed, 2522 insertions(+) create mode 100644 x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/mappings.json diff --git a/x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/mappings.json b/x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/mappings.json new file mode 100644 index 0000000000000..23f170737f498 --- /dev/null +++ b/x-pack/platform/test/fixtures/es_archives/alerts_legacy/rules/mappings.json @@ -0,0 +1,2522 @@ +{ + "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" + } + } + } +}