From fed9a4fddcc0087ee9eca6582a2a84e001890f08 Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet Date: Thu, 12 Nov 2020 13:50:59 -0500 Subject: [PATCH] [Fleet] Rename ingest_manager_api_integration tests fleet_api_integration (#83011) --- .github/paths-labeller.yml | 3 +- src/dev/precommit_hook/casing_check_config.js | 2 +- vars/kibanaPipeline.groovy | 4 +-- x-pack/plugins/fleet/README.md | 6 ++-- .../fleet/dev_docs/api_integration_tests.md | 24 +++++++-------- x-pack/plugins/security_solution/README.md | 10 +++--- x-pack/scripts/functional_tests.js | 2 +- .../apis/agent_policy/agent_policy.ts | 2 +- .../agent_policy_with_agents_setup.ts | 6 ++-- .../apis/agent_policy/index.js | 2 +- .../apis}/agents/acks.ts | 2 +- .../apis}/agents/actions.ts | 2 +- .../apis}/agents/checkin.ts | 8 ++--- .../apis}/agents/complete_flow.ts | 8 ++--- .../apis}/agents/delete.ts | 2 +- .../apis}/agents/enroll.ts | 8 ++--- .../apis}/agents/events.ts | 2 +- .../apis}/agents/list.ts | 2 +- .../apis}/agents/reassign.ts | 6 ++-- .../apis}/agents/services.ts | 4 +-- .../apis}/agents/unenroll.ts | 8 ++--- .../apis}/agents/upgrade.ts | 10 +++--- .../apis/agents_setup.ts} | 6 ++-- .../apis}/enrollment_api_keys/crud.ts | 8 ++--- .../apis/epm/bulk_upgrade.ts | 0 .../apis/epm/data_stream.ts | 0 .../apis/epm/file.ts | 0 .../apis/epm/get.ts | 0 .../apis/epm/ilm.ts | 0 .../apis/epm/index.js | 0 .../apis/epm/install_by_upload.ts | 0 .../apis/epm/install_overrides.ts | 0 .../apis/epm/install_prerelease.ts | 0 .../apis/epm/install_remove_assets.ts | 0 .../apis/epm/install_remove_multiple.ts | 0 .../apis/epm/install_update.ts | 0 .../apis/epm/list.ts | 4 +-- .../apis/epm/package_install_complete.ts | 0 .../apis/epm/setup.ts | 0 .../apis/epm/template.ts | 0 .../apis/epm/update_assets.ts | 0 .../apache_0.1.4.tar.gz | Bin .../direct_upload_packages/apache_0.1.4.zip | Bin ...he_invalid_manifest_invalid_yaml_0.1.4.zip | Bin ...e_invalid_manifest_missing_field_0.1.4.zip | Bin .../apache_invalid_no_manifest_0.1.4.zip | Bin ...apache_invalid_toplevel_mismatch_0.1.4.zip | Bin .../apache_invalid_two_toplevels_0.1.4.zip | Bin .../apis/fixtures/package_registry_config.yml | 0 .../elasticsearch/ilm_policy/all_assets.json | 0 .../elasticsearch/ingest_pipeline/default.yml | 0 .../ingest_pipeline/pipeline1.yml | 0 .../ingest_pipeline/pipeline2.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.1.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../all_assets/0.1.0/docs/README.md | 0 .../elasticsearch/transform/test/default.json | 0 .../0.1.0/img/logo_overrides_64_color.svg | 0 .../kibana/dashboard/sample_dashboard.json | 0 .../kibana/dashboard/sample_dashboard2.json | 0 .../0.1.0/kibana/index_pattern/invalid.json | 0 .../index_pattern/test_index_pattern.json | 0 .../0.1.0/kibana/search/sample_search.json | 0 .../visualization/sample_visualization.json | 0 .../all_assets/0.1.0/manifest.yml | 0 .../elasticsearch/ilm_policy/all_assets.json | 0 .../elasticsearch/ingest_pipeline/default.yml | 0 .../ingest_pipeline/pipeline1.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.2.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_logs2/fields/ecs.yml | 0 .../data_stream/test_logs2/fields/fields.yml | 0 .../0.2.0/data_stream/test_logs2/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../all_assets/0.2.0/docs/README.md | 0 .../0.2.0/img/logo_overrides_64_color.svg | 0 .../kibana/dashboard/sample_dashboard.json | 0 .../0.2.0/kibana/search/sample_search2.json | 0 .../visualization/sample_visualization.json | 0 .../all_assets/0.2.0/manifest.yml | 0 .../elasticsearch/ilm_policy/all_assets.json | 0 .../elasticsearch/ingest_pipeline/default.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.1.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../datastreams/0.1.0/docs/README.md | 0 .../datastreams/0.1.0/manifest.yml | 0 .../elasticsearch/ilm_policy/all_assets.json | 0 .../elasticsearch/ingest_pipeline/default.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.2.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../datastreams/0.2.0/docs/README.md | 0 .../datastreams/0.2.0/manifest.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.1.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../experimental/0.1.0/docs/README.md | 0 .../0.1.0/img/logo_overrides_64_color.svg | 0 .../experimental/0.1.0/manifest.yml | 0 .../data_stream/test_logs/fields/ecs.yml | 0 .../data_stream/test_logs/fields/fields.yml | 0 .../0.1.0/data_stream/test_logs/manifest.yml | 0 .../data_stream/test_metrics/fields/ecs.yml | 0 .../test_metrics/fields/fields.yml | 0 .../data_stream/test_metrics/manifest.yml | 0 .../experimental2/0.1.0/docs/README.md | 0 .../0.1.0/img/logo_overrides_64_color.svg | 0 .../experimental2/0.1.0/manifest.yml | 0 .../filetest/0.1.0/docs/README.md | 5 +++ .../test_packages/filetest/0.1.0/img/logo.svg | 0 .../img/screenshots/metricbeat_dashboard.png | Bin .../kibana/dashboard/sample_dashboard.json | 0 .../0.1.0/kibana/search/sample_search.json | 0 .../visualization/sample_visualization.json | 0 .../test_packages/filetest/0.1.0/manifest.yml | 0 .../0.1.0/data_stream/test/fields/fields.yml | 0 .../0.1.0/data_stream/test/manifest.yml | 0 .../multiple_versions/0.1.0/docs/README.md | 0 .../multiple_versions/0.1.0/manifest.yml | 0 .../0.2.0/data_stream/test/fields/fields.yml | 0 .../0.2.0/data_stream/test/manifest.yml | 0 .../multiple_versions/0.2.0/docs/README.md | 0 .../multiple_versions/0.2.0/manifest.yml | 0 .../0.3.0/data_stream/test/fields/fields.yml | 0 .../0.3.0/data_stream/test/manifest.yml | 0 .../multiple_versions/0.3.0/docs/README.md | 0 .../multiple_versions/0.3.0/manifest.yml | 0 .../0.1.0/data_stream/test/fields/fields.yml | 0 .../0.1.0/data_stream/test/manifest.yml | 0 .../overrides/0.1.0/docs/README.md | 0 .../0.1.0/img/logo_overrides_64_color.svg | 0 .../overrides/0.1.0/manifest.yml | 0 .../data_stream/test/fields/fields.yml | 0 .../data_stream/test/manifest.yml | 0 .../prerelease/0.1.0-dev.0+abc/docs/README.md | 0 .../img/logo_prerelease_64_color.svg | 0 .../prerelease/0.1.0-dev.0+abc/manifest.yml | 0 .../apis}/index.js | 28 ++++++++++++++--- .../apis/mock_http_server.d.ts | 0 .../apis/package_policy/create.ts | 0 .../apis/package_policy/get.ts | 0 .../apis/package_policy/update.ts | 0 .../apis/settings/index.js | 0 .../apis/settings/update.ts | 4 +-- .../apis/setup.ts | 2 +- .../config.ts | 4 +-- .../helpers.ts | 2 +- .../filetest/0.1.0/docs/README.md | 5 --- .../apis/fleet/install.ts | 27 ---------------- .../apis/index.js | 29 ------------------ .../apis/artifacts/index.ts | 2 +- .../registry.ts | 4 +-- 169 files changed, 108 insertions(+), 145 deletions(-) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/agent_policy/agent_policy.ts (99%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/agent_policy/agent_policy_with_agents_setup.ts (96%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/agent_policy/index.js (90%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/acks.ts (98%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/actions.ts (96%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/checkin.ts (92%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/complete_flow.ts (97%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/delete.ts (96%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/enroll.ts (95%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/events.ts (95%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/list.ts (97%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/reassign.ts (94%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/services.ts (89%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/unenroll.ts (94%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/agents/upgrade.ts (98%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet/setup.ts => fleet_api_integration/apis/agents_setup.ts} (95%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/enrollment_api_keys/crud.ts (94%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/bulk_upgrade.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/data_stream.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/file.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/get.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/ilm.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/index.js (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_by_upload.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_overrides.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_prerelease.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_remove_assets.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_remove_multiple.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/install_update.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/list.ts (94%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/package_install_complete.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/setup.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/template.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/epm/update_assets.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_0.1.4.tar.gz (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_invalid_manifest_invalid_yaml_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_invalid_manifest_missing_field_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_invalid_no_manifest_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_invalid_toplevel_mismatch_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/direct_upload_packages/apache_invalid_two_toplevels_0.1.4.zip (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/package_registry_config.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline2.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/elasticsearch/transform/test/default.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/img/logo_overrides_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard2.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/invalid.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/test_index_pattern.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/search/sample_search.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/kibana/visualization/sample_visualization.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/img/logo_overrides_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/kibana/dashboard/sample_dashboard.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/kibana/search/sample_search2.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/kibana/visualization/sample_visualization.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/all_assets/0.2.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/datastreams/0.2.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/img/logo_overrides_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/ecs.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/img/logo_overrides_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/experimental2/0.1.0/manifest.yml (100%) create mode 100644 x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/img/logo.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/img/screenshots/metricbeat_dashboard.png (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/kibana/dashboard/sample_dashboard.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/kibana/search/sample_search.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/kibana/visualization/sample_visualization.json (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/filetest/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.2.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.2.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.3.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/multiple_versions/0.3.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/fields/fields.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/docs/README.md (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/img/logo_prerelease_64_color.svg (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/manifest.yml (100%) rename x-pack/test/{ingest_manager_api_integration/apis/fleet => fleet_api_integration/apis}/index.js (58%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/mock_http_server.d.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/package_policy/create.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/package_policy/get.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/package_policy/update.ts (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/settings/index.js (100%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/settings/update.ts (97%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/apis/setup.ts (96%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/config.ts (93%) rename x-pack/test/{ingest_manager_api_integration => fleet_api_integration}/helpers.ts (94%) delete mode 100644 x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md delete mode 100644 x-pack/test/ingest_manager_api_integration/apis/fleet/install.ts delete mode 100644 x-pack/test/ingest_manager_api_integration/apis/index.js diff --git a/.github/paths-labeller.yml b/.github/paths-labeller.yml index bd8427ea18d69..f74870578ecb1 100644 --- a/.github/paths-labeller.yml +++ b/.github/paths-labeller.yml @@ -12,8 +12,7 @@ - "x-pack/plugins/apm/**/*.*" - "Team:Ingest Management": - "x-pack/plugins/fleet/**/*.*" - - "x-pack/test/api_integration/apis/fleet/**/*.*" - - "x-pack/test/epm_api_integration/**/*.*" + - "x-pack/test/fleet_api_integration/**/*.*" - "Team:uptime": - "x-pack/plugins/uptime/**/*.*" - "x-pack/plugins/apm/e2e/cypress/support/step_definitions/csm/*.*" diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 9cd6ca6801bc3..94ebc53b17ec1 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -70,7 +70,7 @@ export const IGNORE_FILE_GLOBS = [ 'x-pack/plugins/maps/server/fonts/**/*', // packages for the ingest manager's api integration tests could be valid semver which has dashes - 'x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/**/*', + 'x-pack/test/fleet_api_integration/apis/fixtures/test_packages/**/*', ]; /** diff --git a/vars/kibanaPipeline.groovy b/vars/kibanaPipeline.groovy index 521637a1b0f7f..eea3ff18f3453 100644 --- a/vars/kibanaPipeline.groovy +++ b/vars/kibanaPipeline.groovy @@ -87,7 +87,7 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) { def kibanaPort = "61${parallelId}1" def esPort = "61${parallelId}2" def esTransportPort = "61${parallelId}3" - def ingestManagementPackageRegistryPort = "61${parallelId}4" + def fleetPackageRegistryPort = "61${parallelId}4" def alertingProxyPort = "61${parallelId}5" withEnv([ @@ -100,7 +100,7 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) { "TEST_ES_URL=http://elastic:changeme@localhost:${esPort}", "TEST_ES_TRANSPORT_PORT=${esTransportPort}", "KBN_NP_PLUGINS_BUILT=true", - "INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=${ingestManagementPackageRegistryPort}", + "FLEET_PACKAGE_REGISTRY_PORT=${fleetPackageRegistryPort}", "ALERTING_PROXY_PORT=${alertingProxyPort}" ] + additionalEnvs) { closure() diff --git a/x-pack/plugins/fleet/README.md b/x-pack/plugins/fleet/README.md index 78ac2e3bdfdbe..614e1aba2ab86 100644 --- a/x-pack/plugins/fleet/README.md +++ b/x-pack/plugins/fleet/README.md @@ -55,17 +55,17 @@ You need to have `docker` to run ingest manager api integration tests 1. In one terminal, run the tests from the Kibana root directory with ``` - INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/ingest_manager_api_integration/config.ts + FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.ts ``` 1. in a second terminal, run the tests from the Kibana root directory with ``` - INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/ingest_manager_api_integration/config.ts + FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.ts ``` Optionally you can filter which tests you want to run using `--grep` ``` - INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/ingest_manager_api_integration/config.ts --grep='fleet' + FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.ts --grep='fleet' ``` diff --git a/x-pack/plugins/fleet/dev_docs/api_integration_tests.md b/x-pack/plugins/fleet/dev_docs/api_integration_tests.md index 1f4ea89efdf77..bf1a84ae4c563 100644 --- a/x-pack/plugins/fleet/dev_docs/api_integration_tests.md +++ b/x-pack/plugins/fleet/dev_docs/api_integration_tests.md @@ -5,29 +5,29 @@ Many API integration tests for Ingest Manager trigger at some point a connection - the deployed registry is temporarily unavailable - the packages served by the registry do not match the expectation of the code under test -For that reason, we run a dockerized version of the package registry in Kibana CI. For this to work, our tests must run against a custom test configuration and be kept in a custom directory, `x-pack/test/ingest_manager_api_integration`. +For that reason, we run a dockerized version of the package registry in Kibana CI. For this to work, our tests must run against a custom test configuration and be kept in a custom directory, `x-pack/test/fleet_api_integration`. ## How to run the tests locally Usually, having the test server and the test runner in two different shells is most efficient, as it is possible to keep the server running and only rerun the test runner as often as needed. To do so, in one shell in the main `kibana` directory, run: ``` -$ export INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 -$ yarn test:ftr:server --config x-pack/test/ingest_manager_api_integration/config.ts +$ export FLEET_PACKAGE_REGISTRY_PORT=12345 +$ yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.ts ``` In another shell in the same directory, run ``` -$ export INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 -$ yarn test:ftr:runner --config x-pack/test/ingest_manager_api_integration/config.ts +$ export FLEET_PACKAGE_REGISTRY_PORT=12345 +$ yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.ts ``` However, it is also possible to **alternatively** run everything in one go, again from the main `kibana` directory: ``` -$ export INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 -$ yarn test:ftr --config x-pack/test/ingest_manager_api_integration/config.ts +$ export FLEET_PACKAGE_REGISTRY_PORT=12345 +$ yarn test:ftr --config x-pack/test/fleet_api_integration/config.ts ``` Port `12345` is used as an example here, it can be anything, but the environment variable has to be present for the tests to run at all. @@ -37,7 +37,7 @@ Port `12345` is used as an example here, it can be anything, but the environment We use the `DockerServers` service provided by `kbn-test`. The documentation for this functionality can be found here: https://github.com/elastic/kibana/blob/master/packages/kbn-test/src/functional_test_runner/lib/docker_servers/README.md -The main configuration for the `DockerServers` service for our tests can be found in `x-pack/test/ingest_manager_api_integration/config.ts`: +The main configuration for the `DockerServers` service for our tests can be found in `x-pack/test/fleet_api_integration/config.ts`: ### Specify the arguments to pass to `docker run`: @@ -74,13 +74,13 @@ The containerized package registry contains a set of packages which should be su docker run -p 8080:8080 docker.elastic.co/package-registry/package-registry:kibana-testing-1 ``` -Additional packages for testing certain corner cases or error conditions can be put into `x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages`. A package `filetest` has been added there as an example. +Additional packages for testing certain corner cases or error conditions can be put into `x-pack/test/fleet_api_integration/apis/fixtures/test_packages`. A package `filetest` has been added there as an example. ## Some DockerServers background -For the `DockerServers` servers to run correctly in CI, the `INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT` environment variable needs to be under control of the CI environment. The reason behind this: it is possible that several versions of our tests are run in parallel on the same worker in Jenkins, and if we used a hard-coded port number here, those tests would run into port conflicts. (This is also the case for a few other ports, and the setup happens in `vars/kibanaPipeline.groovy`). +For the `DockerServers` servers to run correctly in CI, the `FLEET_PACKAGE_REGISTRY_PORT` environment variable needs to be under control of the CI environment. The reason behind this: it is possible that several versions of our tests are run in parallel on the same worker in Jenkins, and if we used a hard-coded port number here, those tests would run into port conflicts. (This is also the case for a few other ports, and the setup happens in `vars/kibanaPipeline.groovy`). -Also, not every developer has `docker` installed on their workstation, so it must be possible to run the testsuite as a whole without `docker`, and preferably this should be the default behaviour. Therefore, our `DockerServers` service is only enabled when `INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT` is set. This needs to be checked in every test like this: +Also, not every developer has `docker` installed on their workstation, so it must be possible to run the testsuite as a whole without `docker`, and preferably this should be the default behaviour. Therefore, our `DockerServers` service is only enabled when `FLEET_PACKAGE_REGISTRY_PORT` is set. This needs to be checked in every test like this: ``` it('fetches a .json search file', async function () { @@ -105,7 +105,7 @@ If the tests are skipped in this way, they are marked in the test summary as `pe └-> "before all" hook └-> lists all packages from the registry └-> "before each" hook: global before each - │ warn disabling tests because DockerServers service is not enabled, set INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT to run them + │ warn disabling tests because DockerServers service is not enabled, set FLEET_PACKAGE_REGISTRY_PORT to run them └-> lists all packages from the registry └-> "after all" hook [...] diff --git a/x-pack/plugins/security_solution/README.md b/x-pack/plugins/security_solution/README.md index d9aa4a6cfebbe..4d57947bd67ac 100644 --- a/x-pack/plugins/security_solution/README.md +++ b/x-pack/plugins/security_solution/README.md @@ -28,7 +28,7 @@ The endpoint functional tests are located [here](../../test/security_solution_en ### Using Docker To run the tests using the recommended docker image version you must have `docker` installed. The testing infrastructure -will stand up a docker container using the image defined [here](../../test/ingest_manager_api_integration/config.ts#L15) +will stand up a docker container using the image defined [here](../../test/fleet_api_integration/config.ts#L15) Make sure you're in the Kibana root directory. @@ -37,13 +37,13 @@ Make sure you're in the Kibana root directory. In one terminal, run: ```bash -INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint_api_int/config.ts +FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint_api_int/config.ts ``` In another terminal, run: ```bash -INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint_api_int/config.ts +FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint_api_int/config.ts ``` #### Endpoint Functional Tests @@ -51,13 +51,13 @@ INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pa In one terminal, run: ```bash -INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint/config.ts +FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint/config.ts ``` In another terminal, run: ```bash -INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint/config.ts +FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint/config.ts ``` ### Running your own package registry diff --git a/x-pack/scripts/functional_tests.js b/x-pack/scripts/functional_tests.js index 9db102e487116..7d4cc41cfbe5a 100644 --- a/x-pack/scripts/functional_tests.js +++ b/x-pack/scripts/functional_tests.js @@ -64,7 +64,7 @@ const onlyNotInCoverageTests = [ require.resolve('../test/reporting_api_integration/reporting_and_security.config.ts'), require.resolve('../test/reporting_api_integration/reporting_without_security.config.ts'), require.resolve('../test/security_solution_endpoint_api_int/config.ts'), - require.resolve('../test/ingest_manager_api_integration/config.ts'), + require.resolve('../test/fleet_api_integration/config.ts'), require.resolve('../test/functional_vis_wizard/config.ts'), require.resolve('../test/saved_object_tagging/functional/config.ts'), require.resolve('../test/saved_object_tagging/api_integration/security_and_spaces/config.ts'), diff --git a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy.ts b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts similarity index 99% rename from x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy.ts rename to x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts index c0132a5822b58..4d7ed03998f54 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy.ts +++ b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts @@ -11,7 +11,7 @@ export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); - describe('ingest_manager_agent_policies', () => { + describe('fleet_agent_policies', () => { const createdPolicyIds: string[] = []; after(async () => { const deletedPromises = createdPolicyIds.map((agentPolicyId) => diff --git a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts similarity index 96% rename from x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts rename to x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts index d99e6a69c5124..aac399f722b48 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts +++ b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts @@ -7,7 +7,7 @@ import expect from '@kbn/expect'; import { skipIfNoDockerRegistry } from '../../helpers'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; -import { setupIngest, getSupertestWithoutAuth } from '../fleet/agents/services'; +import { setupFleetAndAgents, getSupertestWithoutAuth } from '../agents/services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -68,7 +68,7 @@ export default function (providerContext: FtrProviderContext) { } // Test all the side effect that should occurs when we create|update an agent policy - describe('ingest_manager_agent_policies_with_agents_setup', () => { + describe('fleet_agent_policies_with_agents_setup', () => { skipIfNoDockerRegistry(providerContext); before(async () => { @@ -78,7 +78,7 @@ export default function (providerContext: FtrProviderContext) { await esArchiver.unload('fleet/agents'); }); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); describe('POST /api/fleet/agent_policies', () => { it('should create an enrollment key and an agent action `POLICY_CHANGE` for the policy', async () => { diff --git a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/index.js b/x-pack/test/fleet_api_integration/apis/agent_policy/index.js similarity index 90% rename from x-pack/test/ingest_manager_api_integration/apis/agent_policy/index.js rename to x-pack/test/fleet_api_integration/apis/agent_policy/index.js index da608b7057c0a..808feef25cc9f 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/agent_policy/index.js +++ b/x-pack/test/fleet_api_integration/apis/agent_policy/index.js @@ -5,7 +5,7 @@ */ export default function loadTests({ loadTestFile }) { - describe('Ingest Manager Endpoints', () => { + describe('Fleet Endpoints', () => { loadTestFile(require.resolve('./agent_policy_with_agents_setup')); loadTestFile(require.resolve('./agent_policy')); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/acks.ts b/x-pack/test/fleet_api_integration/apis/agents/acks.ts similarity index 98% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/acks.ts rename to x-pack/test/fleet_api_integration/apis/agents/acks.ts index 119efa92d2327..98c5451db8628 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/acks.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/acks.ts @@ -6,7 +6,7 @@ import expect from '@kbn/expect'; import uuid from 'uuid'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { getSupertestWithoutAuth } from './services'; export default function (providerContext: FtrProviderContext) { diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/actions.ts b/x-pack/test/fleet_api_integration/apis/agents/actions.ts similarity index 96% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/actions.ts rename to x-pack/test/fleet_api_integration/apis/agents/actions.ts index df0de51aa2611..01f69328388db 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/actions.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/actions.ts @@ -5,7 +5,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/checkin.ts b/x-pack/test/fleet_api_integration/apis/agents/checkin.ts similarity index 92% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/checkin.ts rename to x-pack/test/fleet_api_integration/apis/agents/checkin.ts index a8e811548ef27..7555b9d073584 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/checkin.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/checkin.ts @@ -7,9 +7,9 @@ import expect from '@kbn/expect'; import uuid from 'uuid'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { getSupertestWithoutAuth, setupIngest } from './services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { getSupertestWithoutAuth, setupFleetAndAgents } from './services'; +import { skipIfNoDockerRegistry } from '../../helpers'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -46,7 +46,7 @@ export default function (providerContext: FtrProviderContext) { }, }); }); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); after(async () => { await esArchiver.unload('fleet/agents'); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/complete_flow.ts b/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts similarity index 97% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/complete_flow.ts rename to x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts index 80b831f875d17..e3e80b0fbcfe6 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/complete_flow.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts @@ -6,9 +6,9 @@ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { setupIngest, getSupertestWithoutAuth } from './services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { setupFleetAndAgents, getSupertestWithoutAuth } from './services'; +import { skipIfNoDockerRegistry } from '../../helpers'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -24,7 +24,7 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await esArchiver.load('empty_kibana'); }); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); after(async () => { await esArchiver.unload('empty_kibana'); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/delete.ts b/x-pack/test/fleet_api_integration/apis/agents/delete.ts similarity index 96% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/delete.ts rename to x-pack/test/fleet_api_integration/apis/agents/delete.ts index c3b0a3086e35e..39f518cb93696 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/delete.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/delete.ts @@ -5,7 +5,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/enroll.ts b/x-pack/test/fleet_api_integration/apis/agents/enroll.ts similarity index 95% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/enroll.ts rename to x-pack/test/fleet_api_integration/apis/agents/enroll.ts index c47099e620144..c88106eb79cd2 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/enroll.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/enroll.ts @@ -7,9 +7,9 @@ import expect from '@kbn/expect'; import uuid from 'uuid'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { getSupertestWithoutAuth, setupIngest, getEsClientForAPIKey } from './services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { getSupertestWithoutAuth, setupFleetAndAgents, getEsClientForAPIKey } from './services'; +import { skipIfNoDockerRegistry } from '../../helpers'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -52,7 +52,7 @@ export default function (providerContext: FtrProviderContext) { const kibanaVersionAccessor = kibanaServer.version; kibanaVersion = await kibanaVersionAccessor.get(); }); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); after(async () => { await esArchiver.unload('fleet/agents'); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/events.ts b/x-pack/test/fleet_api_integration/apis/agents/events.ts similarity index 95% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/events.ts rename to x-pack/test/fleet_api_integration/apis/agents/events.ts index bed4fbcbe370b..15556b03a7907 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/events.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/events.ts @@ -6,7 +6,7 @@ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/list.ts b/x-pack/test/fleet_api_integration/apis/agents/list.ts similarity index 97% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/list.ts rename to x-pack/test/fleet_api_integration/apis/agents/list.ts index e4e7b4b6be54e..cb7d97f49c9e1 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/list.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/list.ts @@ -6,7 +6,7 @@ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/reassign.ts b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts similarity index 94% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/reassign.ts rename to x-pack/test/fleet_api_integration/apis/agents/reassign.ts index 251f6a9bd695b..081f9dd3375a2 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/reassign.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { setupIngest } from './services'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { setupFleetAndAgents } from './services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -13,7 +13,7 @@ export default function (providerContext: FtrProviderContext) { const supertest = getService('supertest'); describe('fleet_reassign_agent', () => { - setupIngest(providerContext); + setupFleetAndAgents(providerContext); before(async () => { await esArchiver.loadIfNeeded('fleet/agents'); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/services.ts b/x-pack/test/fleet_api_integration/apis/agents/services.ts similarity index 89% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/services.ts rename to x-pack/test/fleet_api_integration/apis/agents/services.ts index 7539fcf37a3de..f74211b1faf09 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/services.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/services.ts @@ -8,7 +8,7 @@ import supertestAsPromised from 'supertest-as-promised'; import { Client } from '@elastic/elasticsearch'; import { format as formatUrl } from 'url'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; export function getSupertestWithoutAuth({ getService }: FtrProviderContext) { const config = getService('config'); @@ -31,7 +31,7 @@ export function getEsClientForAPIKey({ getService }: FtrProviderContext, esApiKe }); } -export function setupIngest({ getService }: FtrProviderContext) { +export function setupFleetAndAgents({ getService }: FtrProviderContext) { before(async () => { await getService('supertest').post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); await getService('supertest') diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/unenroll.ts b/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts similarity index 94% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/unenroll.ts rename to x-pack/test/fleet_api_integration/apis/agents/unenroll.ts index 05702a6dcb1ce..0c40797699c86 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/unenroll.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts @@ -7,9 +7,9 @@ import expect from '@kbn/expect'; import uuid from 'uuid'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { setupIngest } from './services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { setupFleetAndAgents } from './services'; +import { skipIfNoDockerRegistry } from '../../helpers'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -24,7 +24,7 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await esArchiver.loadIfNeeded('fleet/agents'); }); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); beforeEach(async () => { const { body: accessAPIKeyBody } = await esClient.security.createApiKey({ body: { diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/upgrade.ts b/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts similarity index 98% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/agents/upgrade.ts rename to x-pack/test/fleet_api_integration/apis/agents/upgrade.ts index cbb07b91caf34..1ab687a54b990 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/agents/upgrade.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts @@ -6,10 +6,10 @@ import expect from '@kbn/expect/expect.js'; import semver from 'semver'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { setupIngest } from './services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; -import { AGENT_SAVED_OBJECT_TYPE } from '../../../../../plugins/fleet/common'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { setupFleetAndAgents } from './services'; +import { skipIfNoDockerRegistry } from '../../helpers'; +import { AGENT_SAVED_OBJECT_TYPE } from '../../../../plugins/fleet/common'; const makeSnapshotVersion = (version: string) => { return version.endsWith('-SNAPSHOT') ? version : `${version}-SNAPSHOT`; @@ -23,7 +23,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet upgrade agent', () => { skipIfNoDockerRegistry(providerContext); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); beforeEach(async () => { await esArchiver.loadIfNeeded('fleet/agents'); }); diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/setup.ts b/x-pack/test/fleet_api_integration/apis/agents_setup.ts similarity index 95% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/setup.ts rename to x-pack/test/fleet_api_integration/apis/agents_setup.ts index f6cc7be534f6f..4da1335da9a6c 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/setup.ts +++ b/x-pack/test/fleet_api_integration/apis/agents_setup.ts @@ -5,15 +5,15 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; -import { skipIfNoDockerRegistry } from '../../helpers'; +import { FtrProviderContext } from '../../api_integration/ftr_provider_context'; +import { skipIfNoDockerRegistry } from '../helpers'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); const es = getService('es'); - describe('fleet_setup', () => { + describe('fleet_agents_setup', () => { skipIfNoDockerRegistry(providerContext); beforeEach(async () => { try { diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/enrollment_api_keys/crud.ts b/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts similarity index 94% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/enrollment_api_keys/crud.ts rename to x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts index 22f7c9d8572a1..3a526fac2f08a 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/enrollment_api_keys/crud.ts +++ b/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts @@ -6,9 +6,9 @@ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../api_integration/ftr_provider_context'; -import { setupIngest, getEsClientForAPIKey } from '../agents/services'; -import { skipIfNoDockerRegistry } from '../../../helpers'; +import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; +import { setupFleetAndAgents, getEsClientForAPIKey } from '../agents/services'; +import { skipIfNoDockerRegistry } from '../../helpers'; const ENROLLMENT_KEY_ID = 'ed22ca17-e178-4cfe-8b02-54ea29fbd6d0'; @@ -28,7 +28,7 @@ export default function (providerContext: FtrProviderContext) { }); skipIfNoDockerRegistry(providerContext); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); describe('GET /fleet/enrollment-api-keys', async () => { it('should list existing api keys', async () => { diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/bulk_upgrade.ts b/x-pack/test/fleet_api_integration/apis/epm/bulk_upgrade.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/bulk_upgrade.ts rename to x-pack/test/fleet_api_integration/apis/epm/bulk_upgrade.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/data_stream.ts b/x-pack/test/fleet_api_integration/apis/epm/data_stream.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/data_stream.ts rename to x-pack/test/fleet_api_integration/apis/epm/data_stream.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/file.ts b/x-pack/test/fleet_api_integration/apis/epm/file.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/file.ts rename to x-pack/test/fleet_api_integration/apis/epm/file.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/get.ts b/x-pack/test/fleet_api_integration/apis/epm/get.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/get.ts rename to x-pack/test/fleet_api_integration/apis/epm/get.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/ilm.ts b/x-pack/test/fleet_api_integration/apis/epm/ilm.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/ilm.ts rename to x-pack/test/fleet_api_integration/apis/epm/ilm.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/index.js b/x-pack/test/fleet_api_integration/apis/epm/index.js similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/index.js rename to x-pack/test/fleet_api_integration/apis/epm/index.js diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_by_upload.ts b/x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_by_upload.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_overrides.ts b/x-pack/test/fleet_api_integration/apis/epm/install_overrides.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_overrides.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_overrides.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_prerelease.ts b/x-pack/test/fleet_api_integration/apis/epm/install_prerelease.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_prerelease.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_prerelease.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_remove_assets.ts b/x-pack/test/fleet_api_integration/apis/epm/install_remove_assets.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_remove_assets.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_remove_assets.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_remove_multiple.ts b/x-pack/test/fleet_api_integration/apis/epm/install_remove_multiple.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_remove_multiple.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_remove_multiple.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/install_update.ts b/x-pack/test/fleet_api_integration/apis/epm/install_update.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/install_update.ts rename to x-pack/test/fleet_api_integration/apis/epm/install_update.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/list.ts b/x-pack/test/fleet_api_integration/apis/epm/list.ts similarity index 94% rename from x-pack/test/ingest_manager_api_integration/apis/epm/list.ts rename to x-pack/test/fleet_api_integration/apis/epm/list.ts index 4d22aad749239..c8fbf4dde6e13 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/epm/list.ts +++ b/x-pack/test/fleet_api_integration/apis/epm/list.ts @@ -7,7 +7,7 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { skipIfNoDockerRegistry } from '../../helpers'; -import { setupIngest } from '../fleet/agents/services'; +import { setupFleetAndAgents } from '../agents/services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -19,7 +19,7 @@ export default function (providerContext: FtrProviderContext) { describe('EPM - list', async function () { skipIfNoDockerRegistry(providerContext); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); describe('list api tests', async () => { it('lists all packages from the registry', async function () { diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts b/x-pack/test/fleet_api_integration/apis/epm/package_install_complete.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts rename to x-pack/test/fleet_api_integration/apis/epm/package_install_complete.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/setup.ts b/x-pack/test/fleet_api_integration/apis/epm/setup.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/setup.ts rename to x-pack/test/fleet_api_integration/apis/epm/setup.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/template.ts b/x-pack/test/fleet_api_integration/apis/epm/template.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/template.ts rename to x-pack/test/fleet_api_integration/apis/epm/template.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/epm/update_assets.ts b/x-pack/test/fleet_api_integration/apis/epm/update_assets.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/epm/update_assets.ts rename to x-pack/test/fleet_api_integration/apis/epm/update_assets.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.tar.gz b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.tar.gz similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.tar.gz rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.tar.gz diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_invalid_yaml_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_invalid_yaml_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_invalid_yaml_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_invalid_yaml_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_missing_field_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_missing_field_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_missing_field_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_manifest_missing_field_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_no_manifest_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_no_manifest_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_no_manifest_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_no_manifest_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_toplevel_mismatch_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_toplevel_mismatch_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_toplevel_mismatch_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_toplevel_mismatch_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_two_toplevels_0.1.4.zip b/x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_two_toplevels_0.1.4.zip similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_two_toplevels_0.1.4.zip rename to x-pack/test/fleet_api_integration/apis/fixtures/direct_upload_packages/apache_invalid_two_toplevels_0.1.4.zip diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/package_registry_config.yml b/x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/package_registry_config.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline2.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline2.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline2.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline2.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/elasticsearch/transform/test/default.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/elasticsearch/transform/test/default.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/elasticsearch/transform/test/default.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/elasticsearch/transform/test/default.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/img/logo_overrides_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/img/logo_overrides_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/img/logo_overrides_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/img/logo_overrides_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard2.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard2.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard2.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/dashboard/sample_dashboard2.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/invalid.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/invalid.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/invalid.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/invalid.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/test_index_pattern.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/test_index_pattern.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/test_index_pattern.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/index_pattern/test_index_pattern.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/search/sample_search.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/search/sample_search.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/search/sample_search.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/search/sample_search.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/visualization/sample_visualization.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/visualization/sample_visualization.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/visualization/sample_visualization.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/kibana/visualization/sample_visualization.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/pipeline1.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_logs2/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/img/logo_overrides_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/img/logo_overrides_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/img/logo_overrides_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/img/logo_overrides_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/dashboard/sample_dashboard.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/dashboard/sample_dashboard.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/dashboard/sample_dashboard.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/dashboard/sample_dashboard.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/search/sample_search2.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/search/sample_search2.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/search/sample_search2.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/search/sample_search2.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/visualization/sample_visualization.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/visualization/sample_visualization.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/visualization/sample_visualization.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/kibana/visualization/sample_visualization.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/all_assets/0.2.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ilm_policy/all_assets.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/elasticsearch/ingest_pipeline/default.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/datastreams/0.2.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/img/logo_overrides_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/img/logo_overrides_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/img/logo_overrides_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/img/logo_overrides_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_logs/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/ecs.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/ecs.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/ecs.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/ecs.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/data_stream/test_metrics/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/img/logo_overrides_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/img/logo_overrides_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/img/logo_overrides_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/img/logo_overrides_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/experimental2/0.1.0/manifest.yml diff --git a/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md new file mode 100644 index 0000000000000..d6cfcce90527c --- /dev/null +++ b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md @@ -0,0 +1,5 @@ +# filetest + +This package contains randomly collected files from other packages to be used in API integration tests. + +It also serves as an example how to serve a package from the fixtures directory with the package registry docker container. For this, also see the `x-pack/test/fleet_api_integration/config.ts` how the `test_packages` directory is mounted into the docker container, and `x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml` how to pass the directory to the registry. diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/logo.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/logo.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/logo.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/logo.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/screenshots/metricbeat_dashboard.png b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/screenshots/metricbeat_dashboard.png similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/screenshots/metricbeat_dashboard.png rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/img/screenshots/metricbeat_dashboard.png diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/dashboard/sample_dashboard.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/dashboard/sample_dashboard.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/dashboard/sample_dashboard.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/dashboard/sample_dashboard.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/search/sample_search.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/search/sample_search.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/search/sample_search.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/search/sample_search.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/visualization/sample_visualization.json b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/visualization/sample_visualization.json similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/visualization/sample_visualization.json rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/kibana/visualization/sample_visualization.json diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/filetest/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/data_stream/test/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/data_stream/test/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.2.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/data_stream/test/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/multiple_versions/0.3.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/data_stream/test/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/fields/fields.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/fields/fields.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/fields/fields.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/fields/fields.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/data_stream/test/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/docs/README.md b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/docs/README.md similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/docs/README.md rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/docs/README.md diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/img/logo_prerelease_64_color.svg b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/img/logo_prerelease_64_color.svg similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/img/logo_prerelease_64_color.svg rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/img/logo_prerelease_64_color.svg diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/manifest.yml b/x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/manifest.yml similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/manifest.yml rename to x-pack/test/fleet_api_integration/apis/fixtures/test_packages/prerelease/0.1.0-dev.0+abc/manifest.yml diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/index.js b/x-pack/test/fleet_api_integration/apis/index.js similarity index 58% rename from x-pack/test/ingest_manager_api_integration/apis/fleet/index.js rename to x-pack/test/fleet_api_integration/apis/index.js index 9eb51bee3c7dd..5b230e5a179a5 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/index.js +++ b/x-pack/test/fleet_api_integration/apis/index.js @@ -4,9 +4,14 @@ * you may not use this file except in compliance with the Elastic License. */ -export default function loadTests({ loadTestFile }) { - describe('Fleet Endpoints', () => { +export default function ({ loadTestFile }) { + describe('Fleet Endpoints', function () { + this.tags('ciGroup10'); + // Fleet setup loadTestFile(require.resolve('./setup')); + // Agent setup + loadTestFile(require.resolve('./agents_setup')); + // Agents loadTestFile(require.resolve('./agents/delete')); loadTestFile(require.resolve('./agents/list')); loadTestFile(require.resolve('./agents/enroll')); @@ -15,10 +20,25 @@ export default function loadTests({ loadTestFile }) { loadTestFile(require.resolve('./agents/events')); loadTestFile(require.resolve('./agents/acks')); loadTestFile(require.resolve('./agents/complete_flow')); - loadTestFile(require.resolve('./enrollment_api_keys/crud')); - loadTestFile(require.resolve('./install')); loadTestFile(require.resolve('./agents/actions')); loadTestFile(require.resolve('./agents/upgrade')); loadTestFile(require.resolve('./agents/reassign')); + + // Enrollement API keys + loadTestFile(require.resolve('./enrollment_api_keys/crud')); + + // EPM + loadTestFile(require.resolve('./epm/index')); + + // Package policies + loadTestFile(require.resolve('./package_policy/create')); + loadTestFile(require.resolve('./package_policy/update')); + loadTestFile(require.resolve('./package_policy/get')); + + // Agent policies + loadTestFile(require.resolve('./agent_policy/index')); + + // Settings + loadTestFile(require.resolve('./settings/index')); }); } diff --git a/x-pack/test/ingest_manager_api_integration/apis/mock_http_server.d.ts b/x-pack/test/fleet_api_integration/apis/mock_http_server.d.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/mock_http_server.d.ts rename to x-pack/test/fleet_api_integration/apis/mock_http_server.d.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/package_policy/create.ts b/x-pack/test/fleet_api_integration/apis/package_policy/create.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/package_policy/create.ts rename to x-pack/test/fleet_api_integration/apis/package_policy/create.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/package_policy/get.ts b/x-pack/test/fleet_api_integration/apis/package_policy/get.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/package_policy/get.ts rename to x-pack/test/fleet_api_integration/apis/package_policy/get.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/package_policy/update.ts b/x-pack/test/fleet_api_integration/apis/package_policy/update.ts similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/package_policy/update.ts rename to x-pack/test/fleet_api_integration/apis/package_policy/update.ts diff --git a/x-pack/test/ingest_manager_api_integration/apis/settings/index.js b/x-pack/test/fleet_api_integration/apis/settings/index.js similarity index 100% rename from x-pack/test/ingest_manager_api_integration/apis/settings/index.js rename to x-pack/test/fleet_api_integration/apis/settings/index.js diff --git a/x-pack/test/ingest_manager_api_integration/apis/settings/update.ts b/x-pack/test/fleet_api_integration/apis/settings/update.ts similarity index 97% rename from x-pack/test/ingest_manager_api_integration/apis/settings/update.ts rename to x-pack/test/fleet_api_integration/apis/settings/update.ts index 4bd7b81b02d57..774f84ae26df3 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/settings/update.ts +++ b/x-pack/test/fleet_api_integration/apis/settings/update.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { Client } from 'elasticsearch'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { skipIfNoDockerRegistry } from '../../helpers'; -import { setupIngest } from '../fleet/agents/services'; +import { setupFleetAndAgents } from '../agents/services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -18,7 +18,7 @@ export default function (providerContext: FtrProviderContext) { describe('Settings - update', async function () { skipIfNoDockerRegistry(providerContext); - setupIngest(providerContext); + setupFleetAndAgents(providerContext); const createdAgentPolicyIds: string[] = []; after(async () => { diff --git a/x-pack/test/ingest_manager_api_integration/apis/setup.ts b/x-pack/test/fleet_api_integration/apis/setup.ts similarity index 96% rename from x-pack/test/ingest_manager_api_integration/apis/setup.ts rename to x-pack/test/fleet_api_integration/apis/setup.ts index c496813d86223..4d1562e703770 100644 --- a/x-pack/test/ingest_manager_api_integration/apis/setup.ts +++ b/x-pack/test/fleet_api_integration/apis/setup.ts @@ -11,7 +11,7 @@ export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); const es = getService('es'); - describe('ingest manager setup', async () => { + describe('Fleet setup', async () => { before(async () => { await supertest.post(`/api/fleet/setup`).set('kbn-xsrf', 'xxx').send(); }); diff --git a/x-pack/test/ingest_manager_api_integration/config.ts b/x-pack/test/fleet_api_integration/config.ts similarity index 93% rename from x-pack/test/ingest_manager_api_integration/config.ts rename to x-pack/test/fleet_api_integration/config.ts index 15b68b8c8208d..01db750d23c12 100644 --- a/x-pack/test/ingest_manager_api_integration/config.ts +++ b/x-pack/test/fleet_api_integration/config.ts @@ -9,7 +9,7 @@ import path from 'path'; import { FtrConfigProviderContext } from '@kbn/test/types/ftr'; import { defineDockerServersConfig } from '@kbn/test'; -// Docker image to use for Ingest Manager API integration tests. +// Docker image to use for Fleet API integration tests. // This hash comes from the commit hash here: https://github.com/elastic/package-storage/commit export const dockerImage = 'docker.elastic.co/package-registry/distribution:fb58d670bafbac7e9e28baf6d6f99ba65cead548'; @@ -17,7 +17,7 @@ export const dockerImage = export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); - const registryPort: string | undefined = process.env.INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT; + const registryPort: string | undefined = process.env.FLEET_PACKAGE_REGISTRY_PORT; // mount the config file for the package registry as well as // the directory containing additional packages into the container diff --git a/x-pack/test/ingest_manager_api_integration/helpers.ts b/x-pack/test/fleet_api_integration/helpers.ts similarity index 94% rename from x-pack/test/ingest_manager_api_integration/helpers.ts rename to x-pack/test/fleet_api_integration/helpers.ts index a5ffc4e7adc24..e6492d5f3af9e 100644 --- a/x-pack/test/ingest_manager_api_integration/helpers.ts +++ b/x-pack/test/fleet_api_integration/helpers.ts @@ -10,7 +10,7 @@ import { FtrProviderContext } from '../api_integration/ftr_provider_context'; export function warnAndSkipTest(mochaContext: Context, log: ToolingLog) { log.warning( - 'disabling tests because DockerServers service is not enabled, set INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT to run them' + 'disabling tests because DockerServers service is not enabled, set FLEET_PACKAGE_REGISTRY_PORT to run them' ); mochaContext.skip(); } diff --git a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md b/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md deleted file mode 100644 index 0d19532bae2d7..0000000000000 --- a/x-pack/test/ingest_manager_api_integration/apis/fixtures/test_packages/filetest/0.1.0/docs/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# filetest - -This package contains randomly collected files from other packages to be used in API integration tests. - -It also serves as an example how to serve a package from the fixtures directory with the package registry docker container. For this, also see the `x-pack/test/ingest_manager_api_integration/config.ts` how the `test_packages` directory is mounted into the docker container, and `x-pack/test/ingest_manager_api_integration/apis/fixtures/package_registry_config.yml` how to pass the directory to the registry. \ No newline at end of file diff --git a/x-pack/test/ingest_manager_api_integration/apis/fleet/install.ts b/x-pack/test/ingest_manager_api_integration/apis/fleet/install.ts deleted file mode 100644 index ada445edf4970..0000000000000 --- a/x-pack/test/ingest_manager_api_integration/apis/fleet/install.ts +++ /dev/null @@ -1,27 +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; - * you may not use this file except in compliance with the Elastic License. - */ - -import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; -import { setupIngest } from './agents/services'; - -export default function (providerContext: FtrProviderContext) { - const { getService } = providerContext; - const supertest = getService('supertest'); - - describe('fleet_install', () => { - setupIngest(providerContext); - - it('should return a 400 if we try download an install script for a not supported OS', async () => { - await supertest.get(`/api/fleet/install/gameboy`).expect(400); - }); - - it('should return an install script for a supported OS', async () => { - const { text: apiResponse } = await supertest.get(`/api/fleet/install/macos`).expect(200); - expect(apiResponse).match(/^#!\/bin\/sh/); - }); - }); -} diff --git a/x-pack/test/ingest_manager_api_integration/apis/index.js b/x-pack/test/ingest_manager_api_integration/apis/index.js deleted file mode 100644 index 7c1ebef337baa..0000000000000 --- a/x-pack/test/ingest_manager_api_integration/apis/index.js +++ /dev/null @@ -1,29 +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; - * you may not use this file except in compliance with the Elastic License. - */ - -export default function ({ loadTestFile }) { - describe('Ingest Manager Endpoints', function () { - this.tags('ciGroup7'); - // Ingest Manager setup - loadTestFile(require.resolve('./setup')); - // Fleet - loadTestFile(require.resolve('./fleet/index')); - - // EPM - loadTestFile(require.resolve('./epm/index')); - - // Package policies - loadTestFile(require.resolve('./package_policy/create')); - loadTestFile(require.resolve('./package_policy/update')); - loadTestFile(require.resolve('./package_policy/get')); - - // Agent policies - loadTestFile(require.resolve('./agent_policy/index')); - - // Settings - loadTestFile(require.resolve('./settings/index')); - }); -} diff --git a/x-pack/test/security_solution_endpoint_api_int/apis/artifacts/index.ts b/x-pack/test/security_solution_endpoint_api_int/apis/artifacts/index.ts index 9ce4b3a149dd2..e9fd9c7cdfd8c 100644 --- a/x-pack/test/security_solution_endpoint_api_int/apis/artifacts/index.ts +++ b/x-pack/test/security_solution_endpoint_api_int/apis/artifacts/index.ts @@ -9,7 +9,7 @@ import { createHash } from 'crypto'; import { inflateSync } from 'zlib'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; -import { getSupertestWithoutAuth } from '../../../ingest_manager_api_integration/apis/fleet/agents/services'; +import { getSupertestWithoutAuth } from '../../../fleet_api_integration/apis/agents/services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; diff --git a/x-pack/test/security_solution_endpoint_api_int/registry.ts b/x-pack/test/security_solution_endpoint_api_int/registry.ts index 9c5a8e98e3e2b..cab1369ec3c4f 100644 --- a/x-pack/test/security_solution_endpoint_api_int/registry.ts +++ b/x-pack/test/security_solution_endpoint_api_int/registry.ts @@ -6,7 +6,7 @@ import path from 'path'; import { defineDockerServersConfig } from '@kbn/test'; -import { dockerImage as ingestDockerImage } from '../ingest_manager_api_integration/config'; +import { dockerImage as ingestDockerImage } from '../fleet_api_integration/config'; /** * This is used by CI to set the docker registry port @@ -14,7 +14,7 @@ import { dockerImage as ingestDockerImage } from '../ingest_manager_api_integrat * will spin up a local docker package registry locally for you * if this is defined it takes precedence over the `packageRegistryOverride` variable */ -const dockerRegistryPort: string | undefined = process.env.INGEST_MANAGEMENT_PACKAGE_REGISTRY_PORT; +const dockerRegistryPort: string | undefined = process.env.FLEET_PACKAGE_REGISTRY_PORT; /** * If you don't want to use the docker image version pinned below and instead want to run your own