From a2462c07f97141531309fd42cbd01c5faa9ab94a Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:10:26 +0000 Subject: [PATCH] [Authz] Migrated authorized routes owned by @elastic/fleet --- .../services/preconfiguration/fleet_server_host.test.ts | 4 ++-- x-pack/plugins/fleet/server/telemetry/sender.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts b/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts index de7578129a09b..c382b1f13f40e 100644 --- a/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts +++ b/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts @@ -15,6 +15,8 @@ import { updateFleetServerHost, } from '../fleet_server_host'; +import type { FleetServerHost } from '../../../common/types'; + import { createCloudFleetServerHostIfNeeded, getCloudFleetServersHosts, @@ -22,8 +24,6 @@ import { createOrUpdatePreconfiguredFleetServerHosts, } from './fleet_server_host'; -import type { FleetServerHost } from '../../../common/types'; - jest.mock('../fleet_server_host'); jest.mock('../app_context'); jest.mock('../agent_policy'); diff --git a/x-pack/plugins/fleet/server/telemetry/sender.ts b/x-pack/plugins/fleet/server/telemetry/sender.ts index 8fb71683b2c9c..bdecd6cc8d0bf 100644 --- a/x-pack/plugins/fleet/server/telemetry/sender.ts +++ b/x-pack/plugins/fleet/server/telemetry/sender.ts @@ -14,10 +14,10 @@ import axios from 'axios'; import type { InfoResponse, LicenseGetResponse } from '@elastic/elasticsearch/lib/api/types'; -import { appContextService } from '../services'; - import { exhaustMap, Subject, takeUntil, timer } from 'rxjs'; +import { appContextService } from '../services'; + import { TelemetryQueue } from './queue'; import type { FleetTelemetryChannel, FleetTelemetryChannelEvents } from './types';