From 6d44bbfc1b30a4358da275bfb6f642ace5728137 Mon Sep 17 00:00:00 2001 From: Charis Kalpakis <39087493+fake-haris@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:39:42 +0300 Subject: [PATCH 1/4] [ska] Relocate platform kbn archives (#230096) (cherry picked from commit 12172bd147bdd2e61af2ea57a50a27a22ac00b4b) # Conflicts: # .github/CODEOWNERS # x-pack/platform/test/functional/apps/canvas/datasource.ts # x-pack/platform/test/functional/apps/canvas/embeddables/maps.ts # x-pack/platform/test/functional/apps/canvas/embeddables/saved_search.ts # x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts # x-pack/platform/test/functional/apps/spaces/enter_space.ts # x-pack/platform/test/serverless/api_integration/test_suites/reporting/management.ts # x-pack/test_serverless/functional/test_suites/common/reporting/management.ts --- .github/CODEOWNERS | 22 +- scripts/archive_migration_functions.sh | 2 +- .../field_stats.ts | 2 +- .../services/dashboard/drilldowns_manage.ts | 2 +- .../saved_objects_hidden_type/delete.ts | 2 +- .../saved_objects_hidden_type/export.ts | 2 +- .../saved_objects_hidden_type/find.ts | 2 +- .../resolve_import_errors.ts | 2 +- .../saved_objects_management/bulk_get.ts | 2 +- .../saved_objects_management/find.ts | 2 +- .../saved_objects_management/scroll_count.ts | 2 +- .../test/scout/ui/fixtures/constants.ts | 4 +- .../test/accessibility/apps/group2/lens.ts | 4 +- .../test/accessibility/apps/group3/canvas.ts | 2 +- .../test/api_integration/apis/maps/index.ts | 4 +- .../tests/common/cases/find_cases.ts | 8 +- .../tests/common/cases/migrations.ts | 24 +- .../tests/common/comments/migrations.ts | 12 +- .../internal/metrics/get_case_metrics.ts | 8 +- .../internal/metrics/get_cases_metrics.ts | 8 +- .../tests/common/internal/search_cases.ts | 4 +- .../common/internal/user_actions_get_users.ts | 4 +- .../tests/common/user_actions/migrations.ts | 24 +- .../tests/common/metrics/get_cases_metrics.ts | 8 +- .../test/examples/embedded_lens/index.ts | 4 +- .../test/examples/search_examples/index.ts | 4 +- .../functional/apps/canvas/custom_elements.ts | 2 +- .../apps/canvas/embeddables/lens.ts | 2 +- .../apps/canvas/embeddables/visualization.ts | 2 +- .../test/functional/apps/canvas/expression.ts | 2 +- .../feature_controls/canvas_security.ts | 2 +- .../canvas/feature_controls/canvas_spaces.ts | 5 +- .../test/functional/apps/canvas/filters.ts | 2 +- .../test/functional/apps/canvas/reports.ts | 2 +- .../apps/canvas/saved_object_resolve.ts | 3 +- .../test/functional/apps/canvas/smoke_test.ts | 4 +- .../apps/dashboard/group1/created_by.ts | 4 +- .../apps/dashboard/group1/favorite.ts | 4 +- .../feature_controls/dashboard_security.ts | 2 +- .../feature_controls/dashboard_spaces.ts | 4 +- .../time_to_visualize_security.ts | 2 +- .../apps/dashboard/group1/preserve_url.ts | 4 +- .../group2/dashboard_lens_by_value.ts | 4 +- .../group2/dashboard_maps_by_value.ts | 4 +- .../apps/dashboard/group2/panel_time_range.ts | 2 +- .../apps/dashboard/group2/panel_titles.ts | 2 +- .../apps/dashboard/group2/sync_colors.ts | 4 +- .../apps/dashboard/group3/drilldowns/index.ts | 2 +- .../dashboard/group3/reporting/screenshots.ts | 7 +- .../apps/discover/async_scripted_fields.ts | 2 +- .../functional/apps/discover/esql_starred.ts | 4 +- .../feature_controls/discover_security.ts | 4 +- .../feature_controls/discover_spaces.ts | 14 +- .../functional/apps/discover/preserve_url.ts | 4 +- .../functional/apps/discover/saved_queries.ts | 4 +- .../apps/discover/saved_searches.ts | 3 +- .../apps/discover/value_suggestions.ts | 2 +- .../apps/discover/visualize_field.ts | 4 +- .../home/feature_controls/home_security.ts | 2 +- .../test/functional/apps/lens/group1/index.ts | 8 +- .../color_mapping_runtime_migrations.ts | 2 +- .../test/functional/apps/lens/group2/index.ts | 4 +- .../apps/lens/group3/epoch_millis.ts | 4 +- .../test/functional/apps/lens/group3/index.ts | 8 +- .../test/functional/apps/lens/group4/index.ts | 8 +- .../test/functional/apps/lens/group5/index.ts | 8 +- .../apps/lens/group6/error_handling.ts | 14 +- .../test/functional/apps/lens/group6/index.ts | 12 +- .../apps/lens/group6/legend_statistics.ts | 6 +- .../apps/lens/group6/lens_reporting.ts | 2 +- .../functional/apps/lens/group6/rollup.ts | 2 +- .../test/functional/apps/lens/group7/index.ts | 8 +- .../apps/lens/open_in_lens/agg_based/index.ts | 8 +- .../apps/lens/open_in_lens/dashboard/index.ts | 8 +- .../apps/lens/open_in_lens/tsvb/index.ts | 8 +- .../test/functional/apps/maps/group1/index.js | 4 +- .../test/functional/apps/maps/group2/index.ts | 4 +- .../test/functional/apps/maps/group3/index.js | 4 +- .../test/functional/apps/maps/group4/index.js | 4 +- .../lens_to_ml.ts | 2 +- .../lens_to_ml_with_wizard.ts | 2 +- .../map_to_ml.ts | 2 +- .../reporting_management/report_listing.ts | 2 +- .../test/functional/apps/rollup_job/tsvb.js | 4 +- .../saved_objects_management_security.ts | 4 +- .../spaces_integration.ts | 2 +- .../feature_controls/create_security_tests.ts | 297 ++++++++++++++++++ .../apps/security/field_level_security.ts | 4 +- .../apps/security/secure_roles_perm.ts | 4 +- .../apps/spaces/copy_saved_objects.ts | 4 +- .../feature_controls/visualize_security.ts | 2 +- .../feature_controls/visualize_spaces.ts | 6 +- .../apps/visualize/hybrid_visualization.ts | 4 +- .../functional/apps/visualize/preserve_url.ts | 4 +- .../functional/apps/visualize/reporting.ts | 6 +- .../functional/apps/visualize/telemetry.ts | 4 +- .../kbn_archives}/canvas/ccs/default.json | 0 .../kbn_archives}/canvas/default.json | 0 .../fixtures/kbn_archives}/canvas/filter.json | 0 .../fixtures/kbn_archives}/canvas/lens.json | 0 .../kbn_archives}/canvas/reports.json | 0 .../canvas/saved_object_resolve.json | 0 .../kbn_archives}/cases/7.10.0/data.json | 0 .../kbn_archives}/cases/7.13.2/alerts.json | 0 .../cases/7.13.2/case_and_collection.json | 0 .../kbn_archives}/cases/7.13.2/cases.json | 0 .../kbn_archives}/cases/7.17.5/case.json | 0 .../kbn_archives}/cases/7.7.1/data.json | 0 .../kbn_archives}/cases/8.0.0/cases.json | 0 .../cases/8.1.0/status_changes.json | 0 .../cases/8.2.0/cases_duration.json | 0 .../cases/8.2.0/cases_various_dates.json | 0 .../cases/8.3.0/all_cases_metrics.json | 0 .../8.4.0/persistable_state_attachment.json | 0 .../cases/8.5.0/cases_assignees.json | 0 .../cases/8.5.0/cases_no_users.json | 0 .../8.5.0/cases_severity_and_status.json | 0 .../feature_controls/custom_space.json | 0 .../feature_controls/security/security.json | 0 .../dashboard/session_in_another_space.json | 0 .../dashboard/session_in_space.json | 0 .../kbn_archives}/dashboard/simple.json | 0 .../with_by_value_visualizations.json | 0 .../dashboard_async/async_search.json | 0 .../dashboard_drilldowns/drilldowns.json | 0 .../kbn_archives}/dashboard_view_mode.json | 0 .../kbn_archives}/discover/default.json | 0 .../feature_controls/custom_space.json | 0 .../discover/feature_controls/security.json | 0 .../discover/feature_controls/spaces.json | 0 .../kbn_archives}/global_search/basic.json | 0 .../global_search/search_syntax.json | 0 .../feature_controls/security/security.json | 0 .../kbn_archives}/hybrid_dataview.json | 0 .../kibana_scripted_fields_on_logstash.json | 0 .../kbn_archives}/lens/ccs/default.json | 0 .../kbn_archives}/lens/ccs/lens_basic.json | 0 .../fixtures/kbn_archives}/lens/default.json | 0 .../kbn_archives}/lens/epoch_millis.json | 0 .../fixtures/kbn_archives}/lens/errors.json | 0 .../fixtures/kbn_archives}/lens/errors2.json | 0 ...undamental_config_errors_on_dashboard.json | 0 .../kbn_archives}/lens/legend_statistics.json | 0 .../kbn_archives}/lens/lens_basic.json | 0 .../kbn_archives}/lens/missing_fields.json | 0 .../lens/old_color_mapping_dashboard.json | 0 .../kbn_archives}/lens/reporting.json | 0 .../fixtures/kbn_archives}/maps.json | 0 .../ml/lens_to_ml_dashboard.json | 0 .../kbn_archives}/ml/map_to_ml_dashboard.json | 0 .../fixtures/kbn_archives}/packaging.json | 0 .../reporting/big_int_id_field.json | 0 .../kbn_archives}/reporting/ecommerce.json | 0 .../kbn_archives}/reporting/ecommerce_76.json | 0 .../ecommerce_kibana_non_default_space.json | 0 .../kbn_archives}/reporting/logs.json | 0 .../kbn_archives}/reporting/timeless.json | 0 .../reporting/unmapped_fields.json | 0 .../view_in_console_index_pattern.json | 0 .../fixtures/kbn_archives}/rollup/config.json | 0 .../fixtures/kbn_archives}/rollup/rollup.json | 0 .../kbn_archives}/rollup/rollup_hybrid.json | 0 .../feature_controls/security.json | 0 .../hidden_saved_objects.json | 0 .../saved_objects_mix.json | 0 .../spaces_integration.json | 0 .../visible_in_management.json | 0 .../kbn_archives}/security/discover.json | 0 .../security/flstest/index_pattern.json | 0 .../copy_saved_objects_default_space.json | 0 .../copy_saved_objects_sales_space.json | 0 .../spaces/disabled_features.json | 0 .../spaces/multi_space_another_space.json | 0 .../spaces/multi_space_default_space.json | 0 .../kbn_archives}/visualize/custom_space.json | 0 .../kbn_archives}/visualize/default.json | 0 .../apps/cases/group1/view_case.ts | 4 +- .../apps/cases/group2/attachment_framework.ts | 4 +- .../apps/cases/group2/upgrade.ts | 6 +- .../test/localization/tests/lens/index.ts | 8 +- .../global_search/global_search_bar.ts | 2 +- .../global_search/global_search_providers.ts | 2 +- .../reporting_and_security/csv/csv_v2.ts | 6 +- .../csv/generate_csv_discover.ts | 14 +- .../reporting_and_security/list_jobs.ts | 2 +- .../reporting_and_security/spaces.ts | 2 +- .../services/scenarios.ts | 5 +- .../reporting_without_security/management.ts | 3 +- .../apis/api.saved_objects_tagging.tags.json | 2 +- .../apps/dashboard/async_search/index.ts | 2 +- .../async_search/sessions_in_space.ts | 4 +- .../apps/dashboard/session_sharing/lens.ts | 4 +- .../tests/apps/discover/async_search.ts | 4 +- .../tests/apps/discover/sessions_in_space.ts | 6 +- .../tests/apps/lens/search_sessions.ts | 4 +- .../apps/management/search_sessions/index.ts | 2 +- .../test_suites/reporting/datastream.ts | 2 +- .../reporting/generate_csv_discover.ts | 8 +- .../kbn_archives}/timelines/7.15.0_space | 0 .../timeline/tests/timeline_migrations.ts | 2 +- .../common/discover/x_pack/visualize_field.ts | 4 +- .../common/examples/search_examples/index.ts | 4 +- .../field_stats.ts | 2 +- .../management/transforms/transform_list.ts | 2 +- .../saved_objects_management/bulk_get.ts | 4 +- .../common/saved_objects_management/find.ts | 4 +- .../saved_objects_management/scroll_count.ts | 2 +- .../common/visualizations/group1/index.ts | 8 +- .../group2/open_in_lens/agg_based/index.ts | 8 +- .../group3/open_in_lens/tsvb/index.ts | 8 +- .../common/visualizations/group5/index.ts | 8 +- .../common/visualizations/group6/index.ts | 8 +- .../cases/attachment_framework.ts | 4 +- .../ml/anomaly_detection_jobs_list.ts | 2 +- .../search/cases/attachment_framework.ts | 4 +- .../search/dashboards/build_dashboard.ts | 4 +- .../ml/anomaly_detection_jobs_list.ts | 2 +- 217 files changed, 621 insertions(+), 312 deletions(-) create mode 100644 x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/ccs/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/filter.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/lens.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/reports.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/canvas/saved_object_resolve.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.10.0/data.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.13.2/alerts.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.13.2/case_and_collection.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.13.2/cases.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.17.5/case.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/7.7.1/data.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.0.0/cases.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.1.0/status_changes.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.2.0/cases_duration.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.2.0/cases_various_dates.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.3.0/all_cases_metrics.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.4.0/persistable_state_attachment.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.5.0/cases_assignees.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.5.0/cases_no_users.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/cases/8.5.0/cases_severity_and_status.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/feature_controls/custom_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/feature_controls/security/security.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/session_in_another_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/session_in_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/simple.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard/with_by_value_visualizations.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard_async/async_search.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard_drilldowns/drilldowns.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/dashboard_view_mode.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/discover/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/discover/feature_controls/custom_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/discover/feature_controls/security.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/discover/feature_controls/spaces.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/global_search/basic.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/global_search/search_syntax.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/home/feature_controls/security/security.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/hybrid_dataview.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/kibana_scripted_fields_on_logstash.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/ccs/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/ccs/lens_basic.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/epoch_millis.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/errors.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/errors2.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/fundamental_config_errors_on_dashboard.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/legend_statistics.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/lens_basic.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/missing_fields.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/old_color_mapping_dashboard.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/lens/reporting.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/maps.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/ml/lens_to_ml_dashboard.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/ml/map_to_ml_dashboard.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/packaging.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/big_int_id_field.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/ecommerce.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/ecommerce_76.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/ecommerce_kibana_non_default_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/logs.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/timeless.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/unmapped_fields.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/reporting/view_in_console_index_pattern.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/rollup/config.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/rollup/rollup.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/rollup/rollup_hybrid.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/saved_objects_management/feature_controls/security.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/saved_objects_management/hidden_saved_objects.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/saved_objects_management/saved_objects_mix.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/saved_objects_management/spaces_integration.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/saved_objects_management/visible_in_management.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/security/discover.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/security/flstest/index_pattern.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/spaces/copy_saved_objects_default_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/spaces/copy_saved_objects_sales_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/spaces/disabled_features.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/spaces/multi_space_another_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/spaces/multi_space_default_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/visualize/custom_space.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver => platform/test/functional/fixtures/kbn_archives}/visualize/default.json (100%) rename x-pack/{test/functional/fixtures/kbn_archiver/security_solution => solutions/security/test/fixtures/kbn_archives}/timelines/7.15.0_space (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f843942cf05e1..689f7ba817f04 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1159,8 +1159,8 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ /x-pack/platform/test/screenshot_creation @elastic/platform-docs # Visualizations -/x-pack/test/functional/fixtures/kbn_archiver/rollup @elastic/kibana-visualizations # Assigned per the only uses are in lens and tsvb tests -/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/platform/test/functional/fixtures/kbn_archives/rollup @elastic/kibana-visualizations # Assigned per the only uses are in lens and tsvb tests +/x-pack/platform/test/functional/fixtures/kbn_archives/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/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 @@ -1222,7 +1222,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/platform/test/examples/screenshotting/ @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/functional/fixtures/kbn_archives/reporting/ @elastic/response-ops /x-pack/platform/test/reporting_api_integration/ @elastic/response-ops /x-pack/platform/test/reporting_functional/ @elastic/response-ops /x-pack/test/stack_functional_integration/apps/reporting/ @elastic/appex-sharedux @@ -1537,8 +1537,8 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /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/platform/test/functional/fixtures/kbn_archives/maps.json @elastic/kibana-presentation +/x-pack/platform/test/functional/fixtures/kbn_archives/canvas @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 @@ -1554,7 +1554,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions ^/src/platform/test/functional/screenshots/baseline/dashboard_*.png @elastic/kibana-presentation ^/src/platform/test/functional/screenshots/baseline/area_chart.png @elastic/kibana-presentation /x-pack/platform/test/disable_ems @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/165986 -/x-pack/test/functional/fixtures/kbn_archiver/dashboard* @elastic/kibana-presentation +/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard* @elastic/kibana-presentation /src/platform/test/functional/page_objects/dashboard_page* @elastic/kibana-presentation /x-pack/platform/test/functional/page_objects/tag_management_page.ts @elastic/kibana-presentation /src/platform/test/functional/firefox/dashboard.config.ts @elastic/kibana-presentation # Assigned per: https://github.com/elastic/kibana/issues/15023 @@ -1588,7 +1588,7 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Machine Learning /x-pack/platform/test/stack_functional_integration/apps/ml @elastic/ml-ui -/x-pack/test/functional/fixtures/kbn_archiver/ml @elastic/ml-ui +/x-pack/platform/test/functional/fixtures/kbn_archives/ml @elastic/ml-ui /x-pack/platform/test/api_integration/apis/file_upload @elastic/ml-ui /x-pack/platform/test/accessibility/apps/group2/ml.ts @elastic/ml-ui /x-pack/platform/test/accessibility/apps/group2/ml_* @elastic/ml-ui @@ -2009,8 +2009,8 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi # Kibana Platform Security # 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/functional/fixtures/kbn_archives/spaces @elastic/kibana-security +/x-pack/platform/test/functional/fixtures/kbn_archives/security @elastic/kibana-security /x-pack/platform/test/ftr_apis/common/lib @elastic/kibana-security /x-pack/platform/test/ftr_apis/common/fixtures/es_archiver/base_data/space_1.json @elastic/kibana-security # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/ftr_apis/security_and_spaces/apis/test_utils.ts#L33 /x-pack/platform/test/ftr_apis/common/fixtures/es_archiver/base_data/default_space.json @elastic/kibana-security # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/ftr_apis/security_and_spaces/apis/test_utils.ts#L33 @@ -2110,7 +2110,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/platform/test/examples/triggers_actions_ui_examples @elastic/response-ops # Assigned per https://github.com/elastic/kibana/blob/main/x-pack/examples/triggers_actions_ui_example/kibana.jsonc#L4 /x-pack/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/platform/test/functional/fixtures/kbn_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 @@ -2287,7 +2287,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi #CC# /x-pack/plugins/cross_cluster_replication/ @elastic/kibana-management # Security Solution -/x-pack/test/functional/fixtures/kbn_archiver/security_solution/timelines/7.15.0_space @elastic/security-solution # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts#L58 +/x-pack/solutions/security/test/fixtures/kbn_archives/timelines/7.15.0_space @elastic/security-solution # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts#L58 /x-pack/solutions/security/test/fixtures/es_archives/packetbeat @elastic/security-solution /x-pack/test/security_solution_ftr @elastic/security-solution /x-pack/solutions/security/test/fixtures/es_archives/security_solution @elastic/security-solution diff --git a/scripts/archive_migration_functions.sh b/scripts/archive_migration_functions.sh index 5ee3377df68a6..4aba84f05c6b5 100755 --- a/scripts/archive_migration_functions.sh +++ b/scripts/archive_migration_functions.sh @@ -20,7 +20,7 @@ standard_list="url,index-pattern,query,graph-workspace,tag,visualization,canvas-element,canvas-workpad,dashboard,search,lens,map,cases,uptime-dynamic-settings,osquery-saved-query,osquery-pack,infrastructure-ui-source,metrics-explorer-view,inventory-view,infrastructure-monitoring-log-view,apm-indices" orig_archive="src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects" -new_archive="x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects" +new_archive="x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects" testFiles=("src/platform/test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts") test_config="src/platform/test/plugin_functional/config.ts" 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 be6054657b9da..371f2ddbca045 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 @@ -31,7 +31,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await esArchiver.loadIfNeeded( 'x-pack/platform/test/fixtures/es_archives/pre_calculated_histogram' diff --git a/src/platform/test/functional/services/dashboard/drilldowns_manage.ts b/src/platform/test/functional/services/dashboard/drilldowns_manage.ts index 7846840881797..a2b2bcf120a93 100644 --- a/src/platform/test/functional/services/dashboard/drilldowns_manage.ts +++ b/src/platform/test/functional/services/dashboard/drilldowns_manage.ts @@ -31,7 +31,7 @@ export function DashboardDrilldownsManageProvider({ getService }: FtrProviderCon log.debug('loadData'); await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns' ); } diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/delete.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/delete.ts index 241096f7ab265..36c558378d0ce 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/delete.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/delete.ts @@ -21,7 +21,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/export.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/export.ts index c91e465b57837..3c1906b8df04a 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/export.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/export.ts @@ -25,7 +25,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/find.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/find.ts index b1a3bf7dd33c4..618fb6e2f03df 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/find.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/find.ts @@ -21,7 +21,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/resolve_import_errors.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/resolve_import_errors.ts index 7c0f3fa4bb6fc..ab71357730db8 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/resolve_import_errors.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_hidden_type/resolve_import_errors.ts @@ -21,7 +21,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_management/bulk_get.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_management/bulk_get.ts index 8e6bb9e85589c..d390f689c68d9 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_management/bulk_get.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_management/bulk_get.ts @@ -23,7 +23,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_management/find.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_management/find.ts index 03723a6579720..e51efe715b5ea 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_management/find.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_management/find.ts @@ -22,7 +22,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { diff --git a/src/platform/test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts b/src/platform/test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts index 39281fe9131f7..8e0eb86977e4b 100644 --- a/src/platform/test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts +++ b/src/platform/test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts @@ -23,7 +23,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); }); after(async () => { 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 5bf7fd4489e2a..5803437b6a34f 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 @@ -51,7 +51,7 @@ export const KBN_ARCHIVES = { NO_TIME_FIELD: 'src/platform/test/functional/fixtures/kbn_archiver/index_pattern_without_timefield', DASHBOARD_DRILLDOWNS: - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns', + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns', DISCOVER: 'src/platform/test/functional/fixtures/kbn_archiver/discover', - ECOMMERCE: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json', + ECOMMERCE: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json', }; diff --git a/x-pack/platform/test/accessibility/apps/group2/lens.ts b/x-pack/platform/test/accessibility/apps/group2/lens.ts index 9e1c5a4011e29..b4a82734c1993 100644 --- a/x-pack/platform/test/accessibility/apps/group2/lens.ts +++ b/x-pack/platform/test/accessibility/apps/group2/lens.ts @@ -33,14 +33,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); diff --git a/x-pack/platform/test/accessibility/apps/group3/canvas.ts b/x-pack/platform/test/accessibility/apps/group3/canvas.ts index fb6cc672e2ffa..a2ddab9ff0ea6 100644 --- a/x-pack/platform/test/accessibility/apps/group3/canvas.ts +++ b/x-pack/platform/test/accessibility/apps/group3/canvas.ts @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Canvas Accessibility', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default' ); await canvas.goToListingPage(); }); 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 6111e39f869ac..bcb7ef142311d 100644 --- a/x-pack/platform/test/api_integration/apis/maps/index.ts +++ b/x-pack/platform/test/api_integration/apis/maps/index.ts @@ -17,7 +17,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); await esArchiver.load('x-pack/platform/test/fixtures/es_archives/maps/data'); }); @@ -26,7 +26,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts index dcf7ca309ebb6..ca3d72dc77530 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts @@ -789,13 +789,13 @@ export default ({ getService }: FtrProviderContext): void => { describe('range queries', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json' ); await deleteAllCaseItems(es); }); @@ -1051,14 +1051,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('range queries', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); await deleteAllCaseItems(es); 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 d5b8920b184ff..6d362bfae3f89 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 @@ -33,13 +33,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('7.10.0 -> latest stack version', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); await deleteAllCaseItems(es); }); @@ -413,13 +413,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.1.0 removing type', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/case_and_collection.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/case_and_collection.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/case_and_collection.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/case_and_collection.json' ); await deleteAllCaseItems(es); }); @@ -446,13 +446,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.3.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json' ); await deleteAllCaseItems(es); }); @@ -505,19 +505,19 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.5.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json' ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json' ); await deleteAllCaseItems(es); }); @@ -554,13 +554,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.7.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_severity_and_status.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_severity_and_status.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_severity_and_status.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_severity_and_status.json' ); await deleteAllCaseItems(es); }); 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 6b5434f3810c5..7889a6c246a16 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 @@ -21,13 +21,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('7.11.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); await deleteAllCaseItems(es); }); @@ -69,13 +69,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.0.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); await deleteAllCaseItems(es); }); @@ -106,13 +106,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.1.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); await deleteAllCaseItems(es); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts index 9b0e6464edf5f..555cd653e4d09 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts @@ -53,13 +53,13 @@ export default ({ getService }: FtrProviderContext): void => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/cases.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/cases.json' ); await deleteAllCaseItems(es); }); @@ -94,13 +94,13 @@ export default ({ getService }: FtrProviderContext): void => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.1.0/status_changes.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.1.0/status_changes.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.1.0/status_changes.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.1.0/status_changes.json' ); await deleteAllCaseItems(es); }); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts index 45a320046c8f0..f03cf9703f2a2 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts @@ -83,13 +83,13 @@ export default ({ getService }: FtrProviderContext): void => { describe('closed and open cases from kbn archive', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json' ); await deleteAllCaseItems(es); @@ -178,14 +178,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('rbac', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space1' } ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space1' } ); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts index 3556da445f285..42c8aa6b4726b 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts @@ -865,14 +865,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('range queries', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); await deleteAllCaseItems(es); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts index b12835eb8ac3e..5ee7f2b26d59d 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts @@ -83,13 +83,13 @@ export default ({ getService }: FtrProviderContext): void => { * b) A user action that removes an assignee that does not exists */ await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_no_users.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_no_users.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_no_users.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_no_users.json' ); }); 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 1620157fc512a..f5e82eb43ce7c 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 @@ -25,13 +25,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.7.1/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.7.1/data.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.7.1/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.7.1/data.json' ); await deleteAllCaseItems(es); }); @@ -258,13 +258,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json' ); await deleteAllCaseItems(es); }); @@ -897,13 +897,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('8.0.0', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json' ); await deleteAllCaseItems(es); }); @@ -946,13 +946,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); await deleteAllCaseItems(es); }); @@ -1308,13 +1308,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); await deleteAllCaseItems(es); }); @@ -1387,13 +1387,13 @@ export default function createGetTests({ getService }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json' ); await deleteAllCaseItems(es); }); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts index 03d7350020614..23bcd425753bc 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts @@ -24,24 +24,24 @@ export default ({ getService }: FtrProviderContext): void => { describe('all cases metrics', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space1' } ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space2' } ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space1' } ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json', { space: 'space2' } ); await deleteAllCaseItems(es); diff --git a/x-pack/platform/test/examples/embedded_lens/index.ts b/x-pack/platform/test/examples/embedded_lens/index.ts index 416e00c1abf34..ba086393b956b 100644 --- a/x-pack/platform/test/examples/embedded_lens/index.ts +++ b/x-pack/platform/test/examples/embedded_lens/index.ts @@ -18,7 +18,7 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC before(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); // need at least one index pattern await kibanaServer.uiSettings.update({ defaultIndex: 'logstash-*', @@ -28,7 +28,7 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 8e5d76d6738e8..356840b4a71ce 100644 --- a/x-pack/platform/test/examples/search_examples/index.ts +++ b/x-pack/platform/test/examples/search_examples/index.ts @@ -19,14 +19,14 @@ export default function ({ getService, loadTestFile }: PluginFunctionalProviderC 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); // need at least one index pattern }); after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); diff --git a/x-pack/platform/test/functional/apps/canvas/custom_elements.ts b/x-pack/platform/test/functional/apps/canvas/custom_elements.ts index cfeace496eafe..31f189939b918 100644 --- a/x-pack/platform/test/functional/apps/canvas/custom_elements.ts +++ b/x-pack/platform/test/functional/apps/canvas/custom_elements.ts @@ -19,7 +19,7 @@ export default function canvasCustomElementTest({ const { canvas } = getPageObjects(['canvas']); const find = getService('find'); const kibanaServer = getService('kibanaServer'); - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default'; + const archive = 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default'; describe('custom elements', function () { this.tags('skipFirefox'); 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 4f9e699f12eaa..1c5202f7ab37f 100644 --- a/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts +++ b/x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts @@ -16,7 +16,7 @@ export default function canvasLensTest({ getService, getPageObjects }: FtrProvid const testSubjects = getService('testSubjects'); const archives = { es: 'x-pack/platform/test/fixtures/es_archives/canvas/logstash_lens', - kbn: 'x-pack/test/functional/fixtures/kbn_archiver/canvas/lens', + kbn: 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/lens', }; describe('lens in canvas', function () { diff --git a/x-pack/platform/test/functional/apps/canvas/embeddables/visualization.ts b/x-pack/platform/test/functional/apps/canvas/embeddables/visualization.ts index 8a3e2eadbdce7..d481712802a30 100644 --- a/x-pack/platform/test/functional/apps/canvas/embeddables/visualization.ts +++ b/x-pack/platform/test/functional/apps/canvas/embeddables/visualization.ts @@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/canvas/lens' + 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/lens' ); await kibanaServer.importExport.unload( 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana_unload' diff --git a/x-pack/platform/test/functional/apps/canvas/expression.ts b/x-pack/platform/test/functional/apps/canvas/expression.ts index 9b3096231bba1..a4b106528a67a 100644 --- a/x-pack/platform/test/functional/apps/canvas/expression.ts +++ b/x-pack/platform/test/functional/apps/canvas/expression.ts @@ -10,7 +10,7 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../ftr_provider_context'; export default function canvasExpressionTest({ getService, getPageObjects }: FtrProviderContext) { - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default'; + const archive = 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default'; const browser = getService('browser'); const find = getService('find'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_security.ts b/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_security.ts index afcee962374db..70a1c7cb6fa5e 100644 --- a/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_security.ts +++ b/x-pack/platform/test/functional/apps/canvas/feature_controls/canvas_security.ts @@ -20,7 +20,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const globalNav = getService('globalNav'); const testSubjects = getService('testSubjects'); const kibanaServer = getService('kibanaServer'); - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default'; + const archive = 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default'; describe('security feature controls', function () { this.tags(['skipFirefox']); 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 755c1497bfb53..cc695e3cf15a0 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 @@ -33,7 +33,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); describe('space with no features disabled', () => { - const canvasDefaultArchive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default'; + const canvasDefaultArchive = + 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default'; before(async () => { // we need to load the following in every situation as deleting @@ -95,7 +96,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('space with Canvas disabled', () => { const spaceWithCanvasDisabledArchive = - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/disabled_features'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/disabled_features'; before(async () => { // we need to load the following in every situation as deleting diff --git a/x-pack/platform/test/functional/apps/canvas/filters.ts b/x-pack/platform/test/functional/apps/canvas/filters.ts index ac3b5673b1fe1..9b9f20a2da4c8 100644 --- a/x-pack/platform/test/functional/apps/canvas/filters.ts +++ b/x-pack/platform/test/functional/apps/canvas/filters.ts @@ -15,7 +15,7 @@ export default function canvasFiltersTest({ getService, getPageObjects }: FtrPro const { canvas } = getPageObjects(['canvas']); const find = getService('find'); const kibanaServer = getService('kibanaServer'); - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/filter'; + const archive = 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/filter'; describe('filters', function () { // there is an issue with FF not properly clicking on workpad elements diff --git a/x-pack/platform/test/functional/apps/canvas/reports.ts b/x-pack/platform/test/functional/apps/canvas/reports.ts index 1dcff8b74f1d3..1eb6070f95ba0 100644 --- a/x-pack/platform/test/functional/apps/canvas/reports.ts +++ b/x-pack/platform/test/functional/apps/canvas/reports.ts @@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const log = getService('log'); const security = getService('security'); const { reporting, canvas } = getPageObjects(['reporting', 'canvas']); - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/reports'; + const archive = 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/reports'; describe('Canvas PDF Report Generation', () => { before('initialize tests', async () => { diff --git a/x-pack/platform/test/functional/apps/canvas/saved_object_resolve.ts b/x-pack/platform/test/functional/apps/canvas/saved_object_resolve.ts index f77da5e8a8d86..4763773fd972d 100644 --- a/x-pack/platform/test/functional/apps/canvas/saved_object_resolve.ts +++ b/x-pack/platform/test/functional/apps/canvas/saved_object_resolve.ts @@ -15,7 +15,8 @@ export default function canvasFiltersTest({ getService, getPageObjects }: FtrPro const find = getService('find'); const kibanaServer = getService('kibanaServer'); const spacesService = getService('spaces'); - const archive = 'x-pack/test/functional/fixtures/kbn_archiver/canvas/saved_object_resolve'; + const archive = + 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/saved_object_resolve'; const browser = getService('browser'); describe('filters', function () { diff --git a/x-pack/platform/test/functional/apps/canvas/smoke_test.ts b/x-pack/platform/test/functional/apps/canvas/smoke_test.ts index 99ff1612ada4d..c61570ac8916c 100644 --- a/x-pack/platform/test/functional/apps/canvas/smoke_test.ts +++ b/x-pack/platform/test/functional/apps/canvas/smoke_test.ts @@ -16,8 +16,8 @@ export default function canvasSmokeTest({ getService, getPageObjects }: FtrProvi const kibanaServer = getService('kibanaServer'); const config = getService('config'); const archive = { - local: 'x-pack/test/functional/fixtures/kbn_archiver/canvas/default', - ccs: 'x-pack/test/functional/fixtures/kbn_archiver/canvas/ccs/default', + local: 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default', + ccs: 'x-pack/platform/test/functional/fixtures/kbn_archives/canvas/ccs/default', }; describe('smoke test', function () { 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 7b58dd0f08ac5..224419b3207ca 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 @@ -31,7 +31,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); // ensure we're logged out so we can login as the appropriate users @@ -90,7 +90,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/kbn_archiver/dashboard/current/kibana' ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/favorite.ts b/x-pack/platform/test/functional/apps/dashboard/group1/favorite.ts index 3fdc206b1252e..9596d67501907 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/favorite.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/favorite.ts @@ -32,7 +32,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { disabledFeatures: [], }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space', { space: customSpace } ); @@ -80,7 +80,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await securityService.role.delete(ROLE); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space', { space: customSpace } ); }); 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 6c5d1cb6f2022..6a52999b69b44 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 @@ -42,7 +42,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { '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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json' ); await kbnServer.uiSettings.update({ defaultIndex: 'logstash-*', 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 875c5c68a77c9..9283fba59fc11 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 @@ -35,7 +35,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // we need to load the following in every situation as deleting // a space deletes all of the associated saved objects await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space', { space: customSpace } ); }); @@ -102,7 +102,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // we need to load the following in every situation as deleting // a space deletes all of the associated saved objects await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space', { space: customSpace } ); }); 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 57aad8fef5706..3568ff2328d53 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 @@ -36,7 +36,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { '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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json' ); await kbnServer.uiSettings.update({ diff --git a/x-pack/platform/test/functional/apps/dashboard/group1/preserve_url.ts b/x-pack/platform/test/functional/apps/dashboard/group1/preserve_url.ts index 5265e52bc5e91..a2d5dee380ddc 100644 --- a/x-pack/platform/test/functional/apps/dashboard/group1/preserve_url.ts +++ b/x-pack/platform/test/functional/apps/dashboard/group1/preserve_url.ts @@ -24,11 +24,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_default_space' + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_default_space' ); await spacesService.create({ id: anotherSpace, name: 'Another Space' }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_another_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_another_space', { space: anotherSpace } ); }); 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 afcb5f1035ee2..788fe053b1a94 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 @@ -27,7 +27,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); @@ -37,7 +37,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 00aad2689ba99..6b5301aa78f43 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 @@ -76,14 +76,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); 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 9dc0ae3254179..88930fff2a3a3 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 @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); 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 74ea59688d380..5793741893956 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 @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await dashboard.navigateToApp(); await dashboard.preserveCrossAppState(); 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 77d176ec18004..6e4428ffd19fa 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 @@ -35,14 +35,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); after(async function () { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await kibanaServer.savedObjects.cleanStandardList(); }); 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 c1f975747346a..8ee60c57511f4 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 @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { ); await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns' ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); }); 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 1c6cde7c72138..4ed532295d534 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 @@ -24,7 +24,8 @@ export default function ({ const testSubjects = getService('testSubjects'); const kibanaServer = getService('kibanaServer'); const png = getService('png'); - const ecommerceSOPath = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json'; + const ecommerceSOPath = + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json'; const loadEcommerce = async () => { await esArchiver.load('x-pack/platform/test/fixtures/es_archives/reporting/ecommerce'); @@ -275,7 +276,7 @@ export default function ({ 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json' ); await dashboard.navigateToApp(); @@ -300,7 +301,7 @@ export default function ({ after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json' ); }); 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 613e6133d2a82..f42ee8de92f4e 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 @@ -32,7 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async function () { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash' + 'x-pack/platform/test/functional/fixtures/kbn_archives/kibana_scripted_fields_on_logstash' ); await esArchiver.loadIfNeeded( 'x-pack/platform/test/fixtures/es_archives/logstash_functional' 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 76e4a2af560b3..bfa151dc2578b 100644 --- a/x-pack/platform/test/functional/apps/discover/esql_starred.ts +++ b/x-pack/platform/test/functional/apps/discover/esql_starred.ts @@ -32,7 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await security.forceLogout(); @@ -65,7 +65,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after('clean up archives', async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await security.forceLogout(); await securityService.user.delete(user); 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 e08c2d6bfcffc..f501bf8f1b061 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 @@ -58,7 +58,7 @@ export default function (ctx: FtrProviderContext) { describe('discover feature controls security', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/security' ); await esArchiver.loadIfNeeded( 'x-pack/platform/test/fixtures/es_archives/logstash_functional' @@ -74,7 +74,7 @@ export default function (ctx: FtrProviderContext) { await security.forceLogout(); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/security' ); await kibanaServer.savedObjects.cleanStandardList(); }); 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 9141457a52661..d7c01d4470d35 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 @@ -38,10 +38,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // we need to load the following in every situation as deleting // a space deletes all of the associated saved objects await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/custom_space', { space: 'custom_space' } ); await spacesService.create({ @@ -54,11 +54,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { await spacesService.delete('custom_space'); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/custom_space', { space: 'custom_space' } ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces' ); }); @@ -94,7 +94,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // we need to load the following in every situation as deleting // a space deletes all of the associated saved objects await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces' ); await spacesService.create({ id: 'custom_space', @@ -106,7 +106,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { await spacesService.delete('custom_space'); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces' ); }); @@ -140,7 +140,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { disabledFeatures: ['visualize'], }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/custom_space', { space: customSpace } ); }); diff --git a/x-pack/platform/test/functional/apps/discover/preserve_url.ts b/x-pack/platform/test/functional/apps/discover/preserve_url.ts index f7a5623d01220..c5a8c4149e69c 100644 --- a/x-pack/platform/test/functional/apps/discover/preserve_url.ts +++ b/x-pack/platform/test/functional/apps/discover/preserve_url.ts @@ -24,11 +24,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_default_space' + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_default_space' ); await spacesService.create({ id: anotherSpace, name: 'Another Space' }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_another_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_another_space', { space: anotherSpace } ); }); 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 67cb3ee19d4ed..96e6f2eb2b5cf 100644 --- a/x-pack/platform/test/functional/apps/discover/saved_queries.ts +++ b/x-pack/platform/test/functional/apps/discover/saved_queries.ts @@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await spaces.create({ id: destinationSpaceId, @@ -41,7 +41,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after('clean up archives', async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await spaces.delete(destinationSpaceId); }); 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 d28ccb45b57b4..0001fa3ffbe85 100644 --- a/x-pack/platform/test/functional/apps/discover/saved_searches.ts +++ b/x-pack/platform/test/functional/apps/discover/saved_searches.ts @@ -25,7 +25,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const filterBar = getService('filterBar'); const testSubjects = getService('testSubjects'); const retry = getService('retry'); - const ecommerceSOPath = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json'; + const ecommerceSOPath = + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json'; const defaultSettings = { defaultIndex: 'logstash-*', 'doc_table:legacy': false, 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 c004439aa2e07..33831c3fff232 100644 --- a/x-pack/platform/test/functional/apps/discover/value_suggestions.ts +++ b/x-pack/platform/test/functional/apps/discover/value_suggestions.ts @@ -35,7 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns' ); await kibanaServer.uiSettings.update({ 'doc_table:legacy': false, 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 a96d0d1ee17d8..65772bea556d8 100644 --- a/x-pack/platform/test/functional/apps/discover/visualize_field.ts +++ b/x-pack/platform/test/functional/apps/discover/visualize_field.ts @@ -55,7 +55,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); @@ -72,7 +72,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await timePicker.resetDefaultAbsoluteRangeViaUiSettings(); 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); 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 b9c456bc807f1..5afa18e953ca5 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 @@ -21,7 +21,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { '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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/home/feature_controls/security/security.json' ); // ensure we're logged out so we can login as the appropriate users 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 0c376c99a2b7c..d69ede6cc1a2e 100644 --- a/x-pack/platform/test/functional/apps/lens/group1/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group1/index.ts @@ -22,13 +22,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { diff --git a/x-pack/platform/test/functional/apps/lens/group2/color_mapping_runtime_migrations.ts b/x-pack/platform/test/functional/apps/lens/group2/color_mapping_runtime_migrations.ts index 93dd737db34b0..9b1e848a94011 100644 --- a/x-pack/platform/test/functional/apps/lens/group2/color_mapping_runtime_migrations.ts +++ b/x-pack/platform/test/functional/apps/lens/group2/color_mapping_runtime_migrations.ts @@ -13,7 +13,7 @@ import chroma from 'chroma-js'; import { FtrProviderContext } from '../../../ftr_provider_context'; const oldColorMappingsDashboardFixture = - 'x-pack/test/functional/fixtures/kbn_archiver/lens/old_color_mapping_dashboard.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/old_color_mapping_dashboard.json'; const palettes = getKbnPalettes({ darkMode: false }); const defaultPaletteColors = palettes 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 da1a5fed3d6a4..26f2bc27072bd 100644 --- a/x-pack/platform/test/functional/apps/lens/group2/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group2/index.ts @@ -19,8 +19,8 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext 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', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 30332aab96633..7014b25ff2794 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 @@ -17,14 +17,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/epoch_millis.json' ); }); after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/epoch_millis.json' ); }); it('should show field list', async () => { 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 637b92aa1da21..d84d9d80e865e 100644 --- a/x-pack/platform/test/functional/apps/lens/group3/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group3/index.ts @@ -22,13 +22,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 fada9d4e12edb..e23af5c0a7b6d 100644 --- a/x-pack/platform/test/functional/apps/lens/group4/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group4/index.ts @@ -22,13 +22,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 a9b9d650ea0ea..381969607fb28 100644 --- a/x-pack/platform/test/functional/apps/lens/group5/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group5/index.ts @@ -22,13 +22,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { diff --git a/x-pack/platform/test/functional/apps/lens/group6/error_handling.ts b/x-pack/platform/test/functional/apps/lens/group6/error_handling.ts index 9ac57287feb0b..2a959f787a6ba 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/error_handling.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/error_handling.ts @@ -31,17 +31,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ); // loading an object without reference fails, so we load data view + lens object and then unload data view await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/errors' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors' ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/errors2' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors2' ); }); after(async () => { await security.testUser.restoreDefaults(); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/errors' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors' ); }); @@ -81,7 +81,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('does not block render when missing fields', async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/missing_fields' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/missing_fields' ); await dashboard.navigateToApp(); @@ -121,13 +121,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await testSubjects.find('emptyPlaceholder'); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/missing_fields' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/missing_fields' ); }); it('displays fundamental configuration issues on dashboard', async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/fundamental_config_errors_on_dashboard' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/fundamental_config_errors_on_dashboard' ); await dashboard.navigateToApp(); @@ -143,7 +143,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ]); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/fundamental_config_errors_on_dashboard' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/fundamental_config_errors_on_dashboard' ); }); }); 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 72fce3c9dfa37..4c1be044878a8 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/index.ts @@ -22,17 +22,17 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', lensLegendStatistics: - 'x-pack/test/functional/fixtures/kbn_archiver/lens/legend_statistics.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/legend_statistics.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', lensLegendStatistics: - 'x-pack/test/functional/fixtures/kbn_archiver/lens/legend_statistics.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/legend_statistics.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { diff --git a/x-pack/platform/test/functional/apps/lens/group6/legend_statistics.ts b/x-pack/platform/test/functional/apps/lens/group6/legend_statistics.ts index d810a622f2199..e571e44d0948e 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/legend_statistics.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/legend_statistics.ts @@ -35,13 +35,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('lens legend statistics', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/legend_statistics' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/legend_statistics' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default' ); await kibanaServer.uiSettings.update({ 'timepicker:timeDefaults': diff --git a/x-pack/platform/test/functional/apps/lens/group6/lens_reporting.ts b/x-pack/platform/test/functional/apps/lens/group6/lens_reporting.ts index d1cc13d1054db..c994f4e6c4cdf 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/lens_reporting.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/lens_reporting.ts @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('lens reporting', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/reporting' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/reporting' ); await timePicker.setDefaultAbsoluteRangeViaUiSettings(); await security.testUser.setRoles( 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 8ff8b84e3a827..252f1feb466b0 100644 --- a/x-pack/platform/test/functional/apps/lens/group6/rollup.ts +++ b/x-pack/platform/test/functional/apps/lens/group6/rollup.ts @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await kibanaServer.savedObjects.cleanStandardList(); 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/rollup/config.json' ); await timePicker.setDefaultAbsoluteRangeViaUiSettings(); }); 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 16e08afd4c5f3..9c71301963606 100644 --- a/x-pack/platform/test/functional/apps/lens/group7/index.ts +++ b/x-pack/platform/test/functional/apps/lens/group7/index.ts @@ -22,13 +22,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 b41026e5b1725..643dbd7d49211 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 @@ -22,13 +22,13 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 ee9d63ac36ede..51b476239f742 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 @@ -23,13 +23,13 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 9883cc312658b..1e38aaf7ba412 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 @@ -22,13 +22,13 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 7f739755c8e1a..a5b71661de9fb 100644 --- a/x-pack/platform/test/functional/apps/maps/group1/index.js +++ b/x-pack/platform/test/functional/apps/maps/group1/index.js @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService }) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); // Functional tests verify behavior when referenced index pattern saved objects can not be found. // However, saved object import fails when reference saved objects can not be found. @@ -56,7 +56,7 @@ export default function ({ loadTestFile, getService }) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 8d0b5d021dd88..db54d9ec4ad57 100644 --- a/x-pack/platform/test/functional/apps/maps/group2/index.ts +++ b/x-pack/platform/test/functional/apps/maps/group2/index.ts @@ -22,7 +22,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); // Functional tests verify behavior when referenced index pattern saved objects can not be found. // However, saved object import fails when reference saved objects can not be found. @@ -58,7 +58,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 0780eedd2d866..82b7a732eedd2 100644 --- a/x-pack/platform/test/functional/apps/maps/group3/index.js +++ b/x-pack/platform/test/functional/apps/maps/group3/index.js @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService }) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); // Functional tests verify behavior when referenced index pattern saved objects can not be found. // However, saved object import fails when reference saved objects can not be found. @@ -56,7 +56,7 @@ export default function ({ loadTestFile, getService }) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 536d86d1081d8..7bdb3bc2836db 100644 --- a/x-pack/platform/test/functional/apps/maps/group4/index.js +++ b/x-pack/platform/test/functional/apps/maps/group4/index.js @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService }) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/maps.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); // Functional tests verify behavior when referenced index pattern saved objects can not be found. // However, saved object import fails when reference saved objects can not be found. @@ -56,7 +56,7 @@ export default function ({ loadTestFile, getService }) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/maps.json' ); }); 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 c364de69cff1f..6251a485bcd53 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 @@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const dashboardTitle = 'lens_to_ml'; const dashboardArchive = - 'x-pack/test/functional/fixtures/kbn_archiver/ml/lens_to_ml_dashboard.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/ml/lens_to_ml_dashboard.json'; async function setFarequoteTimerange() { await PageObjects.timePicker.setAbsoluteRange( 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 12c9f747f2fb2..ecceaf1a47f69 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 @@ -19,7 +19,7 @@ export default function ({ getService, getPageObject, getPageObjects }: FtrProvi const dashboardTitle = 'lens_to_ml'; const dashboardArchive = - 'x-pack/test/functional/fixtures/kbn_archiver/ml/lens_to_ml_dashboard.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/ml/lens_to_ml_dashboard.json'; async function retrySwitchTab(tabIndex: number, seconds: number) { await retry.tryForTime(seconds * 1000, async () => { 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 0b9f263eb199f..db2da226d186d 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 @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const dashboardTitle = 'map_to_ml'; const dashboardArchive = - 'x-pack/test/functional/fixtures/kbn_archiver/ml/map_to_ml_dashboard.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/ml/map_to_ml_dashboard.json'; async function dashboardPreparation(selectedPanelTitle: string) { await PageObjects.dashboard.loadSavedDashboard(dashboardTitle); 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 8f47afcd4d77b..068b93fb62343 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 @@ -22,7 +22,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { describe('Listing of Reports', function () { const kbnArchive = - 'x-pack/test/functional/fixtures/kbn_archiver/reporting/view_in_console_index_pattern.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/view_in_console_index_pattern.json'; before(async () => { await security.testUser.setRoles([ diff --git a/x-pack/platform/test/functional/apps/rollup_job/tsvb.js b/x-pack/platform/test/functional/apps/rollup_job/tsvb.js index 1220e3c51845a..a46ebd44a059d 100644 --- a/x-pack/platform/test/functional/apps/rollup_job/tsvb.js +++ b/x-pack/platform/test/functional/apps/rollup_job/tsvb.js @@ -41,7 +41,7 @@ export default function ({ getService, getPageObjects }) { // load visualize to have an index pattern ready, otherwise visualize will redirect await security.testUser.setRoles(['global_visualize_all', 'test_rollup_reader']); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup.json' ); await kibanaServer.uiSettings.update({ defaultIndex: 'rollup', @@ -117,7 +117,7 @@ export default function ({ getService, getPageObjects }) { MOCK_ROLLUP_INDEX_NAME, ]); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup.json' ); await kibanaServer.uiSettings.update({ 'metrics:allowStringIndices': false }); await kibanaServer.uiSettings.replace({}); diff --git a/x-pack/platform/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts b/x-pack/platform/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts index 9a94d03ce6d6d..2f2abc0084e8b 100644 --- a/x-pack/platform/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts +++ b/x-pack/platform/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts @@ -22,13 +22,13 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // Using the version below instead because we don't need the extra `-SNAPSHOT` bit version = (await kibanaServer.status.get()).version.number; await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/feature_controls/security' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/feature_controls/security' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/feature_controls/security' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/feature_controls/security' ); }); diff --git a/x-pack/platform/test/functional/apps/saved_objects_management/spaces_integration.ts b/x-pack/platform/test/functional/apps/saved_objects_management/spaces_integration.ts index 62c742e39d02b..82f2934869bea 100644 --- a/x-pack/platform/test/functional/apps/saved_objects_management/spaces_integration.ts +++ b/x-pack/platform/test/functional/apps/saved_objects_management/spaces_integration.ts @@ -35,7 +35,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await spacesService.create({ id: spaceId, name: spaceId }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/spaces_integration', + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/spaces_integration', { space: spaceId } ); }); 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..5cb3aee536434 --- /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/platform/test/functional/fixtures/kbn_archives/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/platform/test/functional/fixtures/kbn_archives/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/field_level_security.ts b/x-pack/platform/test/functional/apps/security/field_level_security.ts index f71c2d54c80bb..cf4f12e76ced7 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 @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { '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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/security/flstest/index_pattern' ); await browser.setWindowSize(1600, 1000); }); @@ -129,7 +129,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // NOTE: Logout needs to happen before anything else to avoid flaky behavior await PageObjects.security.forceLogout(); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern' + 'x-pack/platform/test/functional/fixtures/kbn_archives/security/flstest/index_pattern' ); await security.testUser.restoreDefaults(); }); 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 9f84a7a34fc44..1237000780626 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 @@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ); log.debug('load kibana index with default index pattern'); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/security/discover' + 'x-pack/platform/test/functional/fixtures/kbn_archives/security/discover' ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); await PageObjects.settings.navigateTo(); @@ -94,7 +94,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // NOTE: Logout needs to happen before anything else to avoid flaky behavior await PageObjects.security.forceLogout(); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/security/discover' + 'x-pack/platform/test/functional/fixtures/kbn_archives/security/discover' ); await security.testUser.restoreDefaults(); }); diff --git a/x-pack/platform/test/functional/apps/spaces/copy_saved_objects.ts b/x-pack/platform/test/functional/apps/spaces/copy_saved_objects.ts index 6260d2941956b..0e67d6a4dcf9b 100644 --- a/x-pack/platform/test/functional/apps/spaces/copy_saved_objects.ts +++ b/x-pack/platform/test/functional/apps/spaces/copy_saved_objects.ts @@ -23,10 +23,10 @@ export default function spaceSelectorFunctionalTests({ log.debug('Loading test data for the following spaces: default, sales'); await Promise.all([ kbnServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_default_space.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_default_space.json' ), kbnServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_sales_space.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_sales_space.json', { space: 'sales' } ), ]); 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 971b9a06af43f..b1402dea190f8 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 @@ -32,7 +32,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await esArchiver.loadIfNeeded( 'x-pack/platform/test/fixtures/es_archives/logstash_functional' 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 e80d0ed26c810..978d9a5389597 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 @@ -32,7 +32,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // a space deletes all of the associated saved objects await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await spacesService.create({ id: 'custom_space', @@ -40,7 +40,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { disabledFeatures: [], }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/custom_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/custom_space', { space: 'custom_space' } ); }); @@ -80,7 +80,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { // a space deletes all of the associated saved objects await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await spacesService.create({ id: 'custom_space', 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 78bb23acede83..46af2cdfce4fb 100644 --- a/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts +++ b/x-pack/platform/test/functional/apps/visualize/hybrid_visualization.ts @@ -17,7 +17,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/hybrid_dataview.json' ); await esArchiver.load('x-pack/platform/test/fixtures/es_archives/hybrid/logstash'); await esArchiver.load('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); @@ -25,7 +25,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/hybrid_dataview.json' ); await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/hybrid/logstash'); await esArchiver.unload('x-pack/platform/test/fixtures/es_archives/hybrid/rollup'); diff --git a/x-pack/platform/test/functional/apps/visualize/preserve_url.ts b/x-pack/platform/test/functional/apps/visualize/preserve_url.ts index aa4e9ee1dfe16..3f1d186dad97d 100644 --- a/x-pack/platform/test/functional/apps/visualize/preserve_url.ts +++ b/x-pack/platform/test/functional/apps/visualize/preserve_url.ts @@ -25,11 +25,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_default_space' + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_default_space' ); await spacesService.create({ id: anotherSpace, name: 'Another Space' }); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_another_space', + 'x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_another_space', { space: anotherSpace } ); }); diff --git a/x-pack/platform/test/functional/apps/visualize/reporting.ts b/x-pack/platform/test/functional/apps/visualize/reporting.ts index c07efcea2a040..9feedc78badde 100644 --- a/x-pack/platform/test/functional/apps/visualize/reporting.ts +++ b/x-pack/platform/test/functional/apps/visualize/reporting.ts @@ -43,7 +43,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Print PDF button', () => { const ecommerceSOPath = - 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json'; + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json'; before('initialize tests', async () => { log.debug('ReportingPage:initTests'); @@ -103,7 +103,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json' ); log.debug('navigate to visualize'); @@ -113,7 +113,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json' ); await kibanaServer.uiSettings.unset('defaultIndex'); }); diff --git a/x-pack/platform/test/functional/apps/visualize/telemetry.ts b/x-pack/platform/test/functional/apps/visualize/telemetry.ts index 0ca0992a92dd9..0d001cfbc5e3b 100644 --- a/x-pack/platform/test/functional/apps/visualize/telemetry.ts +++ b/x-pack/platform/test/functional/apps/visualize/telemetry.ts @@ -32,7 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { '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` + `x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/with_by_value_visualizations` ); await kibanaServer.uiSettings.update({ 'histogram:maxBars': 100, @@ -53,7 +53,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/with_by_value_visualizations' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/with_by_value_visualizations' ); await kibanaServer.uiSettings.update({ 'histogram:maxBars': 1000, diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/ccs/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/ccs/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/ccs/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/ccs/default.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/default.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/filter.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/filter.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/filter.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/filter.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/lens.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/lens.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/lens.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/lens.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/reports.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/reports.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/reports.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/reports.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/canvas/saved_object_resolve.json b/x-pack/platform/test/functional/fixtures/kbn_archives/canvas/saved_object_resolve.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/canvas/saved_object_resolve.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/canvas/saved_object_resolve.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.10.0/data.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.10.0/data.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/alerts.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/alerts.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/case_and_collection.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/case_and_collection.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/case_and_collection.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/case_and_collection.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/cases.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/cases.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.13.2/cases.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.13.2/cases.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.17.5/case.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.17.5/case.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.17.5/case.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.17.5/case.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/7.7.1/data.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.7.1/data.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/7.7.1/data.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.7.1/data.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.0.0/cases.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.0.0/cases.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.1.0/status_changes.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.1.0/status_changes.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.1.0/status_changes.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.1.0/status_changes.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_duration.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_duration.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.3.0/all_cases_metrics.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.3.0/all_cases_metrics.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.4.0/persistable_state_attachment.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.4.0/persistable_state_attachment.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.4.0/persistable_state_attachment.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.4.0/persistable_state_attachment.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_no_users.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_no_users.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_no_users.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_no_users.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_severity_and_status.json b/x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_severity_and_status.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_severity_and_status.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_severity_and_status.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/custom_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_another_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_another_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_another_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_another_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/simple.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/simple.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/simple.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/simple.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard/with_by_value_visualizations.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/with_by_value_visualizations.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard/with_by_value_visualizations.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/with_by_value_visualizations.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_async/async_search.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_async/async_search.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_drilldowns/drilldowns.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/dashboard_view_mode.json b/x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_view_mode.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/dashboard_view_mode.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_view_mode.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/discover/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/discover/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/discover/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/discover/default.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/custom_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/custom_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security.json b/x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/security.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/security.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces.json b/x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/spaces.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/discover/feature_controls/spaces.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/global_search/basic.json b/x-pack/platform/test/functional/fixtures/kbn_archives/global_search/basic.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/global_search/basic.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/global_search/basic.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/global_search/search_syntax.json b/x-pack/platform/test/functional/fixtures/kbn_archives/global_search/search_syntax.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/global_search/search_syntax.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/global_search/search_syntax.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json b/x-pack/platform/test/functional/fixtures/kbn_archives/home/feature_controls/security/security.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/home/feature_controls/security/security.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json b/x-pack/platform/test/functional/fixtures/kbn_archives/hybrid_dataview.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/hybrid_dataview.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash.json b/x-pack/platform/test/functional/fixtures/kbn_archives/kibana_scripted_fields_on_logstash.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/kibana_scripted_fields_on_logstash.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/default.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/epoch_millis.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/epoch_millis.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/errors.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/errors.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/errors2.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors2.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/errors2.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/errors2.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/fundamental_config_errors_on_dashboard.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/fundamental_config_errors_on_dashboard.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/fundamental_config_errors_on_dashboard.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/fundamental_config_errors_on_dashboard.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/legend_statistics.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/legend_statistics.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/legend_statistics.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/legend_statistics.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/missing_fields.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/missing_fields.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/missing_fields.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/missing_fields.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/old_color_mapping_dashboard.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/old_color_mapping_dashboard.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/old_color_mapping_dashboard.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/old_color_mapping_dashboard.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/reporting.json b/x-pack/platform/test/functional/fixtures/kbn_archives/lens/reporting.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/lens/reporting.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/lens/reporting.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/maps.json b/x-pack/platform/test/functional/fixtures/kbn_archives/maps.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/maps.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/maps.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/ml/lens_to_ml_dashboard.json b/x-pack/platform/test/functional/fixtures/kbn_archives/ml/lens_to_ml_dashboard.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/ml/lens_to_ml_dashboard.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/ml/lens_to_ml_dashboard.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/ml/map_to_ml_dashboard.json b/x-pack/platform/test/functional/fixtures/kbn_archives/ml/map_to_ml_dashboard.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/ml/map_to_ml_dashboard.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/ml/map_to_ml_dashboard.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/packaging.json b/x-pack/platform/test/functional/fixtures/kbn_archives/packaging.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/packaging.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/packaging.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/big_int_id_field.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/big_int_id_field.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/big_int_id_field.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/big_int_id_field.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_76.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_76.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_kibana_non_default_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_kibana_non_default_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_kibana_non_default_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_kibana_non_default_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/logs.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/logs.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/timeless.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/timeless.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/timeless.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/timeless.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/unmapped_fields.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/unmapped_fields.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/view_in_console_index_pattern.json b/x-pack/platform/test/functional/fixtures/kbn_archives/reporting/view_in_console_index_pattern.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/reporting/view_in_console_index_pattern.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/reporting/view_in_console_index_pattern.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/rollup/config.json b/x-pack/platform/test/functional/fixtures/kbn_archives/rollup/config.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/rollup/config.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/rollup/config.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup.json b/x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup_hybrid.json b/x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup_hybrid.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/rollup/rollup_hybrid.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/rollup/rollup_hybrid.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/feature_controls/security.json b/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/feature_controls/security.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/feature_controls/security.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/feature_controls/security.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects.json b/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/saved_objects_mix.json b/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/saved_objects_mix.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/saved_objects_mix.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/saved_objects_mix.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/spaces_integration.json b/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/spaces_integration.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/spaces_integration.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/spaces_integration.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/visible_in_management.json b/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/visible_in_management.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/visible_in_management.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/visible_in_management.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/security/discover.json b/x-pack/platform/test/functional/fixtures/kbn_archives/security/discover.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/security/discover.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/security/discover.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json b/x-pack/platform/test/functional/fixtures/kbn_archives/security/flstest/index_pattern.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/security/flstest/index_pattern.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_default_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_default_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_default_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_default_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_sales_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_sales_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/spaces/copy_saved_objects_sales_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/spaces/copy_saved_objects_sales_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/spaces/disabled_features.json b/x-pack/platform/test/functional/fixtures/kbn_archives/spaces/disabled_features.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/spaces/disabled_features.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/spaces/disabled_features.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_another_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_another_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_another_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_another_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_default_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_default_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space_default_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/spaces/multi_space_default_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/visualize/custom_space.json b/x-pack/platform/test/functional/fixtures/kbn_archives/visualize/custom_space.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/visualize/custom_space.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/visualize/custom_space.json diff --git a/x-pack/test/functional/fixtures/kbn_archiver/visualize/default.json b/x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default.json similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/visualize/default.json rename to x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default.json 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 e0dae22194539..6e1e6cb26ad76 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 @@ -894,7 +894,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { describe('unknown users', () => { beforeEach(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json' ); await cases.navigation.navigateToApp(); @@ -905,7 +905,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { afterEach(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.5.0/cases_assignees.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.5.0/cases_assignees.json' ); await cases.api.deleteAllCases(); 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 53c42c0e66759..3f4072d51f974 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 @@ -372,7 +372,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await common.navigateToApp('dashboard'); @@ -396,7 +396,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await cases.api.deleteAllCases(); diff --git a/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts index a88f8c617c0a3..3d7383d0eedf8 100644 --- a/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts +++ b/x-pack/platform/test/functional_with_es_ssl/apps/cases/group2/upgrade.ts @@ -34,7 +34,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { /** * This test test an upgrade from 7.15 to the latest Kibana version. - * The x-pack/test/functional/fixtures/kbn_archiver/cases/7.17.5/case.json contains a case with + * The x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.17.5/case.json contains a case with * all available user actions except user actions related to alerts. By importing the case, * all migrations run. We ensure that the case shows all data after migrations. */ @@ -45,7 +45,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.17.5/case.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.17.5/case.json' ); await cases.testResources.installKibanaSampleData('logs'); @@ -66,7 +66,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/7.17.5/case.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/7.17.5/case.json' ); await cases.testResources.removeKibanaSampleData('logs'); diff --git a/x-pack/platform/test/localization/tests/lens/index.ts b/x-pack/platform/test/localization/tests/lens/index.ts index 58045942f624b..415f046cea069 100644 --- a/x-pack/platform/test/localization/tests/lens/index.ts +++ b/x-pack/platform/test/localization/tests/lens/index.ts @@ -22,13 +22,13 @@ export default function ({ getService, getPageObjects, loadTestFile }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { diff --git a/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_bar.ts b/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_bar.ts index 41bc13a7651ac..16b18f245962e 100644 --- a/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_bar.ts +++ b/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_bar.ts @@ -18,7 +18,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/global_search/search_syntax' + 'x-pack/platform/test/functional/fixtures/kbn_archives/global_search/search_syntax' ); await common.navigateToApp('home'); }); diff --git a/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_providers.ts b/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_providers.ts index 543a72a29ed88..e93fa6e6b0110 100644 --- a/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_providers.ts +++ b/x-pack/platform/test/plugin_functional/test_suites/global_search/global_search_providers.ts @@ -37,7 +37,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/global_search/basic' + 'x-pack/platform/test/functional/fixtures/kbn_archives/global_search/basic' ); }); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts index 9437717a19814..933b3b1986250 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts @@ -16,9 +16,11 @@ import { FtrProviderContext } from '../../ftr_provider_context'; const LOGSTASH_DATA_ARCHIVE = 'src/platform/test/functional/fixtures/es_archiver/logstash_functional'; -const LOGSTASH_SAVED_OBJECTS = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs'; +const LOGSTASH_SAVED_OBJECTS = + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs'; const ECOM_SAVED_SEARCH_ID = '6091ead0-1c6d-11ea-a100-8589bb9d7c6b'; -const TIMELESS_SAVED_OBJECTS = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/timeless'; +const TIMELESS_SAVED_OBJECTS = + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/timeless'; const TIMELESS_SAVED_SEARCH_WITH_QUERY = 'fc3e8ff0-9844-11ed-8e25-6b737289a7c8'; export default ({ getService }: FtrProviderContext) => { 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 36c2e40f7d15a..ec9c6b9805329 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 @@ -35,27 +35,29 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce', }, unmappedFields: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json', + savedObjects: + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/unmapped_fields.json', }, logs: { data: 'x-pack/platform/test/fixtures/es_archives/logstash_functional', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs', }, nanos: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/nanos', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs', }, sales: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/sales', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/logs', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/logs', }, bigIntIdField: { 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', + savedObjects: + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 6e7db9e6b3507..1becd03e56fc6 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 @@ -20,7 +20,7 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await spacesService.create({ id: spaceId, name: spaceId }); await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_kibana_non_default_space`, + `x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_kibana_non_default_space`, { space: spaceId } ); await reportingAPI.initEcommerce(); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts index 6252504fbb7ce..7886018f7972d 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts @@ -43,7 +43,7 @@ export default function ({ getService }: FtrProviderContext) { before(async () => { await spacesService.create({ id, name: id }); await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_kibana_non_default_space`, + `x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce_kibana_non_default_space`, { space: id } ); await reportingAPI.initEcommerce(); 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 2d51a9e3e3e2e..ff2b46ffd5add 100644 --- a/x-pack/platform/test/reporting_api_integration/services/scenarios.ts +++ b/x-pack/platform/test/reporting_api_integration/services/scenarios.ts @@ -33,8 +33,9 @@ export function createScenarios({ getService }: Pick { const kibanaServer = getService('kibanaServer'); const testSubjects = getService('testSubjects'); const reportingApi = getService('reportingAPI'); - const ecommerceSOPath = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json'; + const ecommerceSOPath = + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce.json'; const postJobJSON = async ( apiPath: string, diff --git a/x-pack/platform/test/scalability/apis/api.saved_objects_tagging.tags.json b/x-pack/platform/test/scalability/apis/api.saved_objects_tagging.tags.json index 7c82efa710f23..13e966c03de46 100644 --- a/x-pack/platform/test/scalability/apis/api.saved_objects_tagging.tags.json +++ b/x-pack/platform/test/scalability/apis/api.saved_objects_tagging.tags.json @@ -21,7 +21,7 @@ "testData": { "esArchives": [], "kbnArchives": [ - "x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/saved_objects_mix.json" + "x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/saved_objects_mix.json" ] }, "streams": [ 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 7977d68d068b9..eee869980739e 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 @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid ); await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_async/async_search' ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); await kibanaServer.uiSettings.replace({ 'search:timeout': 10000 }); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts index e9356912ee92a..bf71378132f80 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/async_search/sessions_in_space.ts @@ -85,11 +85,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); async function load(dashboards: string[]) { await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space` + `x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_space` ); await spacesService.create({ id: 'another-space', name: 'Another Space' }); await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_another_space`, + `x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_another_space`, { space: 'another-space' } ); await kibanaServer.uiSettings.replace( diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts index 0ce8303a291b3..6f97b65fc6646 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/dashboard/session_sharing/lens.ts @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Search session sharing with lens', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await common.navigateToApp('dashboard'); await dashboard.preserveCrossAppState(); @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); 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 910003357b568..54902278bdb90 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 @@ -35,7 +35,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/default' ); await kibanaServer.uiSettings.replace({ enableESQL: true, @@ -46,7 +46,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/discover/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/discover/default' ); }); diff --git a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts index 8e545d7878d52..88d4a567919f1 100644 --- a/x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts +++ b/x-pack/platform/test/search_sessions_integration/tests/apps/discover/sessions_in_space.ts @@ -96,11 +96,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); async function load(discoverIDs: string[]) { await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space` + `x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_space` ); await spacesService.create({ id: 'another-space', name: 'Another Space' }); await kibanaServer.importExport.load( - `x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_another_space`, + `x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_another_space`, { space: 'another-space' } ); await kibanaServer.uiSettings.replace( @@ -140,7 +140,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { } async function clean() { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/session_in_space' ); // NOTE: Logout needs to happen before anything else to avoid flaky behavior await security.forceLogout(); 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 b81842a40d37a..cd0fa04983b19 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 @@ -21,12 +21,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 b896949f7fa17..7bf4e98e9f775 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 @@ -22,7 +22,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { '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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard_async/async_search' ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' }); await kibanaServer.uiSettings.replace({ 'search:timeout': 10000 }); 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 c73fdfdb1d46f..419166a6a6981 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 @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/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 f22adf19b0a79..1268a9a499b7a 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 @@ -40,11 +40,12 @@ export default function ({ getService }: FtrProviderContext) { const archives: Record = { ecommerce: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/ecommerce', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce', + savedObjects: 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/ecommerce', }, unmappedFields: { data: 'x-pack/platform/test/fixtures/es_archives/reporting/unmapped_fields', - savedObjects: 'x-pack/test/functional/fixtures/kbn_archiver/reporting/unmapped_fields.json', + savedObjects: + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/unmapped_fields.json', }, logs: { data: 'x-pack/platform/test/fixtures/es_archives/logstash_functional', @@ -60,7 +61,8 @@ export default function ({ getService }: FtrProviderContext) { }, bigIntIdField: { 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', + savedObjects: + 'x-pack/platform/test/functional/fixtures/kbn_archives/reporting/big_int_id_field', }, }; diff --git a/x-pack/test/functional/fixtures/kbn_archiver/security_solution/timelines/7.15.0_space b/x-pack/solutions/security/test/fixtures/kbn_archives/timelines/7.15.0_space similarity index 100% rename from x-pack/test/functional/fixtures/kbn_archiver/security_solution/timelines/7.15.0_space rename to x-pack/solutions/security/test/fixtures/kbn_archives/timelines/7.15.0_space diff --git a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts index 0191c2911250c..d385dac905e9b 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts @@ -56,7 +56,7 @@ export default function ({ getService }: FtrProviderContextWithSpaces) { 'x-pack/solutions/security/test/fixtures/es_archives/security_solution/timelines/7.15.0_space' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/security_solution/timelines/7.15.0_space', + 'x-pack/solutions/security/test/fixtures/kbn_archives/timelines/7.15.0_space', { space: 'awesome-space' } ); }); 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 a1f11e1fccd9f..b2a247b17cbdb 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 @@ -41,7 +41,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*', @@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await kibanaServer.uiSettings.replace({}); }); 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 3715e8079b659..dbeba0ef479ee 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 @@ -22,14 +22,14 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); // need at least one index pattern }); after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 cdbb82f84e4f5..553b0499fd919 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 @@ -35,7 +35,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); // TODO: Loading this from `es_archives` in `test_serverless` // instead since minor modifications were required 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 758e290891a57..b2c82be4f853b 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 @@ -26,7 +26,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); // For this test to work, make sure there are no pre-existing transform present. diff --git a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/bulk_get.ts b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/bulk_get.ts index 3d397b123dbd4..962b334eb2ce5 100644 --- a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/bulk_get.ts +++ b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/bulk_get.ts @@ -24,7 +24,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); await pageObjects.svlCommonPage.loginAsAdmin(); await pageObjects.common.navigateToApp('management'); @@ -37,7 +37,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); await kibanaServer.savedObjects.cleanStandardList(); }); diff --git a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/find.ts b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/find.ts index c466b757121e1..f3a5a1456b40b 100644 --- a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/find.ts +++ b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/find.ts @@ -23,7 +23,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); await pageObjects.svlCommonPage.loginAsAdmin(); await pageObjects.common.navigateToApp('management'); @@ -36,7 +36,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); // emptyKibanaIndex fails in Serverless with // "index_not_found_exception: no such index [.kibana_ingest]", diff --git a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/scroll_count.ts b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/scroll_count.ts index 88550586ef194..c915664bfa779 100644 --- a/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/scroll_count.ts +++ b/x-pack/test_serverless/functional/test_suites/common/saved_objects_management/scroll_count.ts @@ -24,7 +24,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'src/platform/test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects' + 'x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management/hidden_saved_objects' ); await pageObjects.svlCommonPage.loginAsAdmin(); await pageObjects.common.navigateToApp('management'); 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 e2384414d58ee..a1b106e4df629 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 @@ -24,13 +24,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 2733d699ba1a6..7dbeea98bb696 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 @@ -22,13 +22,13 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 67bd147d1ecde..84a5c523d05d9 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 @@ -22,13 +22,13 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 85872da0869b4..cc99abd74f979 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 @@ -24,13 +24,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 e530b12375cea..23eae697c765e 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 @@ -24,13 +24,13 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const localIndexPatternString = 'logstash-*'; const remoteIndexPatternString = 'ftr-remote:logstash-*'; const localFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/default', }; const remoteFixtures = { - lensBasic: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/lens_basic.json', - lensDefault: 'x-pack/test/functional/fixtures/kbn_archiver/lens/ccs/default', + lensBasic: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/lens_basic.json', + lensDefault: 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/ccs/default', }; let esNode: EsArchiver; let fixtureDirs: { 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 2e56c2f78a086..13b20eff891e4 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 @@ -35,7 +35,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await svlObltNavigation.navigateToLandingPage(); @@ -51,7 +51,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await kibanaServer.savedObjects.cleanStandardList(); 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 4d1bd0b5bb70d..bc2af2ed02d4b 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 @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await ml.api.createAnomalyDetectionJob(ml.commonConfig.getADFqMultiMetricJobConfig(adJobId)); 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 4601374d0bd86..85daaecffc00e 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 @@ -29,7 +29,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await settings.refreshDataViewFieldList('default:all-data', { ignoreMissing: true }); @@ -46,7 +46,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/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 bf2661fd856ca..6ebd709cd7043 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 @@ -34,7 +34,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); await PageObjects.common.navigateToApp('dashboards'); await PageObjects.dashboard.preserveCrossAppState(); @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { after(async () => { 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' + 'x-pack/platform/test/functional/fixtures/kbn_archives/lens/lens_basic.json' ); 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 d17c9857ca71e..0158ac431a942 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 @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'x-pack/platform/test/fixtures/es_archives/logstash_functional' ); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/visualize/default' + 'x-pack/platform/test/functional/fixtures/kbn_archives/visualize/default' ); await ml.api.createAnomalyDetectionJob(ml.commonConfig.getADFqMultiMetricJobConfig(adJobId)); }); From d15b254b3368fdeac63978ad9feba458c4f7be4a Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Wed, 20 Aug 2025 12:06:29 +0200 Subject: [PATCH 2/4] Delete x-pack/platform/test/functional/apps/saved_query_management/feature_controls/create_security_tests.ts --- .../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 5cb3aee536434..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/platform/test/functional/fixtures/kbn_archives/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/platform/test/functional/fixtures/kbn_archives/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 915d989d69a52016d511f276a7cec7ffe9f202e6 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Wed, 20 Aug 2025 12:56:13 +0200 Subject: [PATCH 3/4] Update kbn archive path for streams scout tests --- .../shared/streams_app/test/scout/ui/fixtures/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/streams_app/test/scout/ui/fixtures/constants.ts b/x-pack/platform/plugins/shared/streams_app/test/scout/ui/fixtures/constants.ts index 86465e5a01a62..9cc543f9554b4 100644 --- a/x-pack/platform/plugins/shared/streams_app/test/scout/ui/fixtures/constants.ts +++ b/x-pack/platform/plugins/shared/streams_app/test/scout/ui/fixtures/constants.ts @@ -6,5 +6,5 @@ */ export const KBN_ARCHIVES = { - DASHBOARD: 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/simple.json', + DASHBOARD: 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/simple.json', }; From 38b9a9c49ee00aa5171fa0aea24431f2792fbfa8 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Wed, 20 Aug 2025 14:18:01 +0200 Subject: [PATCH 4/4] update more paths --- .github/CODEOWNERS | 16 ++++++++-------- scripts/archive_migration_functions.sh | 2 +- .../tests/common/cases/status/get_status.ts | 8 ++++---- .../feature_controls/security.ts | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 689f7ba817f04..0ed32044f3712 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1121,8 +1121,8 @@ x-pack/platform/test/serverless/api_integration/test_suites/platform_security @e # Data Discovery /x-pack/platform/test/api_integration/services/data_view_api.ts @elastic/kibana-data-discovery /src/platform/test/functional/fixtures/es_archiver/makelogs @elastic/kibana-data-discovery -/x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/discover/async_scripted_fields.ts#L35 -/x-pack/test/functional/fixtures/kbn_archiver/discover @elastic/kibana-data-discovery +/x-pack/platform/test/functional/fixtures/kbn_archives/kibana_scripted_fields_on_logstash.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/discover/async_scripted_fields.ts#L35 +/x-pack/platform/test/functional/fixtures/kbn_archives/discover @elastic/kibana-data-discovery /x-pack/platform/test/search_sessions_integration @elastic/kibana-data-discovery /x-pack/platform/test/stack_functional_integration/apps/ccs/ccs_discover.js @elastic/kibana-data-discovery /x-pack/platform/test/stack_functional_integration/apps/management/_index_pattern_create.js @elastic/kibana-data-discovery @@ -1188,8 +1188,8 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/ /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 ^/src/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations @elastic/kibana-visualizations -/x-pack/test/functional/fixtures/kbn_archiver/visualize @elastic/kibana-visualizations -/x-pack/test/functional/fixtures/kbn_archiver/lens @elastic/kibana-visualizations +/x-pack/platform/test/functional/fixtures/kbn_archives/visualize @elastic/kibana-visualizations +/x-pack/platform/test/functional/fixtures/kbn_archives/lens @elastic/kibana-visualizations ^/src/platform/test/functional/page_objects/legacy/data_table_vis.ts @elastic/kibana-visualizations ^/src/platform/test/functional/page_objects/annotation_library_editor_page.ts @elastic/kibana-visualizations # Assigned per git blame ^/src/platform/test/functional/firefox/visualize.config.ts @elastic/kibana-visualizations @@ -1666,7 +1666,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/tests/discover_cdp_perf.spec.ts @elastic/kibana-data-discovery # test tracks bundle size limits /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/platform/test/functional/fixtures/kbn_archives/packaging.json @elastic/appex-qa # No usages found /x-pack/solutions/security/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 @@ -1920,7 +1920,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security ^/src/platform/test/plugin_functional/test_suites/saved_objects* @elastic/kibana-core ^/src/platform/test/plugin_functional/test_suites/core* @elastic/kibana-core ^/src/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline @elastic/kibana-core -/x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management @elastic/kibana-core +/x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects_management @elastic/kibana-core /x-pack/platform/test/functional_embedded @elastic/kibana-core /src/platform/test/node_roles_functional @elastic/kibana-core /src/platform/test/functional/page_objects/newsfeed_page.ts @elastic/kibana-core # assigned per https://github.com/elastic/kibana/pull/160210 @@ -2191,7 +2191,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/platform/test/functional/fixtures/kbn_archives/home/feature_controls/security/security.json @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 @@ -2819,7 +2819,7 @@ x-pack/solutions/observability/plugins/observability_shared/public/components/pr /x-pack/platform/test/upgrade/apps/reporting @elastic/appex-sharedux /x-pack/test/functional/apps/advanced_settings @elastic/appex-sharedux ^/src/platform/test/functional/services/monaco_editor.ts @elastic/appex-sharedux -/x-pack/test/functional/fixtures/kbn_archiver/global_search @elastic/appex-sharedux +/x-pack/platform/test/functional/fixtures/kbn_archives/global_search @elastic/appex-sharedux /src/platform/test/api_integration/fixtures/unused_urls_task @elastic/appex-sharedux /x-pack/platform/test/plugin_functional/test_suites/global_search @elastic/appex-sharedux /src/platform/test/plugin_functional/test_suites/shared_ux @elastic/appex-sharedux diff --git a/scripts/archive_migration_functions.sh b/scripts/archive_migration_functions.sh index 4aba84f05c6b5..c73f980acdc2c 100755 --- a/scripts/archive_migration_functions.sh +++ b/scripts/archive_migration_functions.sh @@ -379,7 +379,7 @@ save_kbn() { set -x node scripts/kbn_archiver.js --config "$test_config" save "$new_archive" --type $standard_list --space "$space" set +x - # node scripts/kbn_archiver.js --config x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts save x-pack/test/functional/fixtures/kbn_archiver/saved_objects/default_space --type search,index-pattern,visualization,dashboard,lens,map,graph-workspace,query,tag,url,canvas-workpad + # node scripts/kbn_archiver.js --config x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts save x-pack/platform/test/functional/fixtures/kbn_archives/saved_objects/default_space --type search,index-pattern,visualization,dashboard,lens,map,graph-workspace,query,tag,url,canvas-workpad } load_kbn() { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/status/get_status.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/status/get_status.ts index 5773061149f92..b11b9febb1072 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/status/get_status.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/status/get_status.ts @@ -74,13 +74,13 @@ export default ({ getService }: FtrProviderContext): void => { before(async () => { await deleteAllCaseItems(es); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json' ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json' ); await deleteAllCaseItems(es); }); @@ -243,14 +243,14 @@ export default ({ getService }: FtrProviderContext): void => { describe('range queries', () => { before(async () => { await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); }); after(async () => { await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/cases/8.2.0/cases_various_dates.json', + 'x-pack/platform/test/functional/fixtures/kbn_archives/cases/8.2.0/cases_various_dates.json', { space: 'space1' } ); await deleteAllCaseItems(es); 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 c09394b11add5..1a204bdffca45 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 @@ -97,7 +97,7 @@ export default function (ctx: FtrProviderContext) { await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.importExport.load( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json' ); await esArchiver.loadIfNeeded( @@ -114,7 +114,7 @@ export default function (ctx: FtrProviderContext) { await security.forceLogout(); await kibanaServer.importExport.unload( - 'x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/security/security.json' + 'x-pack/platform/test/functional/fixtures/kbn_archives/dashboard/feature_controls/security/security.json' ); await kibanaServer.savedObjects.cleanStandardList();