diff --git a/x-pack/plugins/uptime/server/legacy_uptime/lib/lib.ts b/x-pack/plugins/uptime/server/legacy_uptime/lib/lib.ts index 9008ff9b33100..ae5ceca74fdd1 100644 --- a/x-pack/plugins/uptime/server/legacy_uptime/lib/lib.ts +++ b/x-pack/plugins/uptime/server/legacy_uptime/lib/lib.ts @@ -24,7 +24,6 @@ import { DYNAMIC_SETTINGS_DEFAULT_ATTRIBUTES } from '../../constants/settings'; import { DynamicSettingsAttributes } from '../../runtime_types/settings'; import { settingsObjectId, umDynamicSettings } from './saved_objects/uptime_settings'; import { API_URLS } from '../../../common/constants'; -import { UptimeServerSetup } from './adapters'; export type { UMServerLibs } from '../uptime_server'; @@ -287,7 +286,3 @@ export function debugESCall({ } console.log(`\n`); } - -export const isTestUser = (server: UptimeServerSetup) => { - return server.config.service?.username === 'localKibanaIntegrationTestsUser'; -}; diff --git a/x-pack/plugins/uptime/server/legacy_uptime/routes/uptime_route_wrapper.ts b/x-pack/plugins/uptime/server/legacy_uptime/routes/uptime_route_wrapper.ts index 3e92f73efab10..5beaa563790e8 100644 --- a/x-pack/plugins/uptime/server/legacy_uptime/routes/uptime_route_wrapper.ts +++ b/x-pack/plugins/uptime/server/legacy_uptime/routes/uptime_route_wrapper.ts @@ -7,7 +7,7 @@ import { KibanaResponse } from '@kbn/core-http-router-server-internal'; import { UMKibanaRouteWrapper } from './types'; -import { isTestUser, UptimeEsClient } from '../lib/lib'; +import { UptimeEsClient } from '../lib/lib'; export const uptimeRouteWrapper: UMKibanaRouteWrapper = (uptimeRoute, server) => ({ ...uptimeRoute, @@ -24,7 +24,7 @@ export const uptimeRouteWrapper: UMKibanaRouteWrapper = (uptimeRoute, server) => { request, uiSettings: coreContext.uiSettings, - isDev: Boolean(server.isDev && !isTestUser(server)), + isDev: Boolean(server.isDev), } );