mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR4 (#212508)
- Enabled @typescript-eslint/consistent-type-imports eslint rule for ResponseOps packages and plugins: - this rule ensures that imports used only for type declarations are consistently written using import type syntax - fixed type imports for: - x-pack/test/alerting_api_integration - x-pack/test/cases_api_integration - x-pack/test/rule_registry - x-pack/test/api_integration/apis/cases --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
35f8739b9a
commit
d60335a195
501 changed files with 940 additions and 923 deletions
|
@ -1650,6 +1650,10 @@ module.exports = {
|
|||
'x-pack/platform/plugins/shared/stack_connectors/**/*.{ts, tsx}',
|
||||
'x-pack/platform/plugins/shared/triggers_actions_ui/**/*.{ts, tsx}',
|
||||
'x-pack/platform/plugins/shared/embeddable_alerts_table/**/*.{ts,tsx}',
|
||||
'x-pack/test/alerting_api_integration/**/*.{ts, tsx}',
|
||||
'x-pack/test/cases_api_integration/**/*.{ts, tsx}',
|
||||
'x-pack/test/rule_registry/**/*.{ts, tsx}',
|
||||
'x-pack/test/api_integration/apis/cases/**/*.{ts, tsx}',
|
||||
],
|
||||
rules: {
|
||||
'@typescript-eslint/consistent-type-imports': 'error',
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function casesWebhookTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function emailTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function indexTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function jiraTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function pagerdutyTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function resilientTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serverLogTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function servicenowTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { getSlackServer } from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function slackTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function swimlaneTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { getWebhookServer } from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function webhookTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function connectorsTests({ loadTestFile }: FtrProviderContext) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { getTestRuleData } from '../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function basicRuleTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { getTestRuleData } from '../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function emailTest({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function alertingTests({ loadTestFile }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function alertingApiIntegrationTests({
|
||||
|
|
|
@ -8,10 +8,11 @@
|
|||
import path from 'path';
|
||||
import getPort from 'get-port';
|
||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||
import { FtrConfigProviderContext, findTestPluginPaths } from '@kbn/test';
|
||||
import type { FtrConfigProviderContext } from '@kbn/test';
|
||||
import { findTestPluginPaths } from '@kbn/test';
|
||||
import { ScoutTestRunConfigCategory } from '@kbn/scout-info';
|
||||
import { getAllExternalServiceSimulatorPaths } from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { ExperimentalConfigKeys } from '@kbn/stack-connectors-plugin/common/experimental_features';
|
||||
import type { ExperimentalConfigKeys } from '@kbn/stack-connectors-plugin/common/experimental_features';
|
||||
import { SENTINELONE_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/sentinelone/constants';
|
||||
import { CROWDSTRIKE_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/crowdstrike/constants';
|
||||
import { MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/microsoft_defender_endpoint/constants';
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { GenericFtrProviderContext } from '@kbn/test';
|
||||
import type { GenericFtrProviderContext } from '@kbn/test';
|
||||
|
||||
import { services } from './services';
|
||||
import type { services } from './services';
|
||||
|
||||
export type FtrProviderContext = GenericFtrProviderContext<typeof services, {}>;
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
*/
|
||||
|
||||
import { ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { AlertsFilter } from '@kbn/alerting-plugin/common/rule';
|
||||
import { SupertestWithoutAuthProviderType } from '@kbn/ftr-common-functional-services';
|
||||
import { SnoozeBody } from '@kbn/alerting-plugin/common/routes/rule/apis/snooze';
|
||||
import { Space, User } from '../types';
|
||||
import { ObjectRemover } from './object_remover';
|
||||
import type { AlertsFilter } from '@kbn/alerting-plugin/common/rule';
|
||||
import type { SupertestWithoutAuthProviderType } from '@kbn/ftr-common-functional-services';
|
||||
import type { SnoozeBody } from '@kbn/alerting-plugin/common/routes/rule/apis/snooze';
|
||||
import type { Space, User } from '../types';
|
||||
import type { ObjectRemover } from './object_remover';
|
||||
import { getUrlPrefix } from './space_test_utils';
|
||||
import { getTestRuleData } from './get_test_rule_data';
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { IValidatedEventInternalDocInfo } from '@kbn/event-log-plugin/server';
|
||||
import type { IValidatedEventInternalDocInfo } from '@kbn/event-log-plugin/server';
|
||||
import { getUrlPrefix } from '.';
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
interface GreaterThanEqualCondition {
|
||||
gte: number;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import SuperTest from 'supertest';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import type SuperTest from 'supertest';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
export interface LogErrorDetailsInterface {
|
||||
(this: SuperTest.Test, err: Error & { response?: any }): SuperTest.Test;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
|
||||
import { SerializedConcreteTaskInstance } from '@kbn/task-manager-plugin/server/task';
|
||||
import type { SerializedConcreteTaskInstance } from '@kbn/task-manager-plugin/server/task';
|
||||
|
||||
export interface TaskManagerDoc {
|
||||
type: string;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
import expect from '@kbn/expect';
|
||||
import supertest from 'supertest';
|
||||
import type supertest from 'supertest';
|
||||
import { getUrlPrefix } from './space_test_utils';
|
||||
|
||||
async function delay(millis: number): Promise<void> {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
Plugin,
|
||||
CoreSetup,
|
||||
RequestHandlerContext,
|
||||
|
@ -14,8 +14,8 @@ import {
|
|||
IKibanaResponse,
|
||||
} from '@kbn/core/server';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import { SpacesPluginSetup } from '@kbn/spaces-plugin/server';
|
||||
import type { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import type { SpacesPluginSetup } from '@kbn/spaces-plugin/server';
|
||||
import { RULE_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server';
|
||||
import { AD_HOC_RUN_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server/saved_objects';
|
||||
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { EventStreamCodec } from '@smithy/eventstream-codec';
|
||||
import { fromUtf8, toUtf8 } from '@smithy/util-utf8';
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class BedrockSimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class D3SecuritySimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
export const getDataFromRequest = async (request: http.IncomingMessage) => {
|
||||
if (request.method !== 'POST' && request.method !== 'PATCH') {
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class GeminiSimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class InferenceSimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class OpenAISimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class OpsgenieSimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -5,17 +5,17 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import https from 'https';
|
||||
import { Plugin, CoreSetup } from '@kbn/core/server';
|
||||
import type http from 'http';
|
||||
import type https from 'https';
|
||||
import type { Plugin, CoreSetup } from '@kbn/core/server';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import {
|
||||
import type { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import type { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import type {
|
||||
PluginSetupContract as ActionsPluginSetupContract,
|
||||
PluginStartContract as ActionsPluginStartContract,
|
||||
} from '@kbn/actions-plugin/server/plugin';
|
||||
import { ActionType } from '@kbn/actions-plugin/server';
|
||||
import type { ActionType } from '@kbn/actions-plugin/server';
|
||||
import { KibanaFeatureScope } from '@kbn/features-plugin/common';
|
||||
import { initPlugin as initPagerduty } from './pagerduty_simulation';
|
||||
import { initPlugin as initSwimlane } from './swimlane_simulation';
|
||||
|
|
|
@ -5,15 +5,16 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import {
|
||||
import type http from 'http';
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
IKibanaResponse,
|
||||
IRouter,
|
||||
} from '@kbn/core/server';
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export const resilientFailedResponse = {
|
||||
errors: {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import type http from 'http';
|
||||
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export class TheHiveSimulator extends Simulator {
|
||||
private readonly returnError: boolean;
|
||||
|
|
|
@ -5,15 +5,16 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import {
|
||||
import type http from 'http';
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
IKibanaResponse,
|
||||
IRouter,
|
||||
} from '@kbn/core/server';
|
||||
import { ProxyArgs, Simulator } from './simulator';
|
||||
import type { ProxyArgs } from './simulator';
|
||||
import { Simulator } from './simulator';
|
||||
|
||||
export const tinesStory1 = { name: 'story 1', id: 1, team: 'team', published: true };
|
||||
export const tinesStory2 = { name: 'story 2', id: 2, team: 'team', published: true };
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import {
|
||||
import type {
|
||||
CoreSetup,
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
|
@ -14,7 +14,7 @@ import {
|
|||
IKibanaResponse,
|
||||
IRouter,
|
||||
} from '@kbn/core/server';
|
||||
import { FixtureStartDeps } from './plugin';
|
||||
import type { FixtureStartDeps } from './plugin';
|
||||
|
||||
export function initPlugin(router: IRouter, coreSetup: CoreSetup<FixtureStartDeps>) {
|
||||
router.post(
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import {
|
||||
import type {
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
KibanaResponseFactory,
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { CoreSetup } from '@kbn/core/server';
|
||||
import { schema, TypeOf } from '@kbn/config-schema';
|
||||
import { ActionType } from '@kbn/actions-plugin/server';
|
||||
import { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import type { CoreSetup } from '@kbn/core/server';
|
||||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import type { ActionType } from '@kbn/actions-plugin/server';
|
||||
import type { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import {
|
||||
getTestSubActionConnector,
|
||||
getTestSubActionConnectorWithoutSubActions,
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ConnectorAdapter } from '@kbn/alerting-plugin/server';
|
||||
import { CoreSetup } from '@kbn/core/server';
|
||||
import type { ConnectorAdapter } from '@kbn/alerting-plugin/server';
|
||||
import type { CoreSetup } from '@kbn/core/server';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import type { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
|
||||
export function defineConnectorAdapters(
|
||||
core: CoreSetup<FixtureStartDeps>,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { PluginInitializerContext } from '@kbn/core/server';
|
||||
import type { PluginInitializerContext } from '@kbn/core/server';
|
||||
import { FixturePlugin } from './plugin';
|
||||
|
||||
export const plugin = async (initContext: PluginInitializerContext) =>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// have the caller make explicit conflict checks, where the conflict was
|
||||
// caused by a background update.
|
||||
|
||||
import { Logger } from '@kbn/core/server';
|
||||
import type { Logger } from '@kbn/core/server';
|
||||
|
||||
type RetryableForConflicts<T> = () => Promise<T>;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
Plugin,
|
||||
CoreSetup,
|
||||
CoreStart,
|
||||
|
@ -14,20 +14,20 @@ import {
|
|||
ElasticsearchClient,
|
||||
} from '@kbn/core/server';
|
||||
import { firstValueFrom, Subject } from 'rxjs';
|
||||
import { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import { AlertingServerSetup, AlertingServerStart } from '@kbn/alerting-plugin/server/plugin';
|
||||
import {
|
||||
import type { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import type { AlertingServerSetup, AlertingServerStart } from '@kbn/alerting-plugin/server/plugin';
|
||||
import type {
|
||||
TaskManagerSetupContract,
|
||||
TaskManagerStartContract,
|
||||
} from '@kbn/task-manager-plugin/server/plugin';
|
||||
import { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import { SpacesPluginStart } from '@kbn/spaces-plugin/server';
|
||||
import { SecurityPluginStart } from '@kbn/security-plugin/server';
|
||||
import { PluginStartContract as ActionsPluginStart } from '@kbn/actions-plugin/server';
|
||||
import { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server';
|
||||
import { IEventLogClientService, IEventLogService } from '@kbn/event-log-plugin/server';
|
||||
import { NotificationsPluginStart } from '@kbn/notifications-plugin/server';
|
||||
import type { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import type { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import type { SpacesPluginStart } from '@kbn/spaces-plugin/server';
|
||||
import type { SecurityPluginStart } from '@kbn/security-plugin/server';
|
||||
import type { PluginStartContract as ActionsPluginStart } from '@kbn/actions-plugin/server';
|
||||
import type { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server';
|
||||
import type { IEventLogClientService, IEventLogService } from '@kbn/event-log-plugin/server';
|
||||
import type { NotificationsPluginStart } from '@kbn/notifications-plugin/server';
|
||||
import { RULE_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server';
|
||||
import { ALERTING_FEATURE_ID } from '@kbn/alerting-plugin/common';
|
||||
import { KibanaFeatureScope } from '@kbn/features-plugin/common';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import pRetry from 'p-retry';
|
||||
import {
|
||||
import type {
|
||||
CoreSetup,
|
||||
RequestHandlerContext,
|
||||
KibanaRequest,
|
||||
|
@ -17,24 +17,24 @@ import {
|
|||
SavedObject,
|
||||
} from '@kbn/core/server';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { InvalidatePendingApiKey } from '@kbn/alerting-plugin/server/types';
|
||||
import { RawRule } from '@kbn/alerting-plugin/server/types';
|
||||
import {
|
||||
import type { InvalidatePendingApiKey } from '@kbn/alerting-plugin/server/types';
|
||||
import type { RawRule } from '@kbn/alerting-plugin/server/types';
|
||||
import type {
|
||||
ConcreteTaskInstance,
|
||||
TaskInstance,
|
||||
TaskManagerStartContract,
|
||||
} from '@kbn/task-manager-plugin/server';
|
||||
import { SECURITY_EXTENSION_ID, SPACES_EXTENSION_ID } from '@kbn/core-saved-objects-server';
|
||||
import { queryOptionsSchema } from '@kbn/event-log-plugin/server/event_log_client';
|
||||
import { NotificationsPluginStart } from '@kbn/notifications-plugin/server';
|
||||
import type { NotificationsPluginStart } from '@kbn/notifications-plugin/server';
|
||||
import {
|
||||
RULE_SAVED_OBJECT_TYPE,
|
||||
API_KEY_PENDING_INVALIDATION_TYPE,
|
||||
} from '@kbn/alerting-plugin/server';
|
||||
import { ActionExecutionSourceType } from '@kbn/actions-plugin/server/types';
|
||||
import { AlertingEventLogger } from '@kbn/alerting-plugin/server/lib/alerting_event_logger/alerting_event_logger';
|
||||
import { IEventLogger } from '@kbn/event-log-plugin/server';
|
||||
import { FixtureStartDeps } from './plugin';
|
||||
import type { IEventLogger } from '@kbn/event-log-plugin/server';
|
||||
import type { FixtureStartDeps } from './plugin';
|
||||
import { retryIfConflicts } from './lib/retry_if_conflicts';
|
||||
|
||||
export function defineRoutes(
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
*/
|
||||
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { Logger } from '@kbn/logging';
|
||||
import { CoreSetup, ElasticsearchClient } from '@kbn/core/server';
|
||||
import { schema, TypeOf } from '@kbn/config-schema';
|
||||
import type { Logger } from '@kbn/logging';
|
||||
import type { CoreSetup, ElasticsearchClient } from '@kbn/core/server';
|
||||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { curry, range, times } from 'lodash';
|
||||
import {
|
||||
import type {
|
||||
RuleType,
|
||||
AlertInstanceState,
|
||||
AlertInstanceContext,
|
||||
|
@ -18,7 +19,7 @@ import {
|
|||
RuleTypeParams,
|
||||
} from '@kbn/alerting-plugin/server';
|
||||
import { ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import type { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
|
||||
export const EscapableStrings = {
|
||||
escapableBold: '*bold*',
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
*/
|
||||
|
||||
// eslint-disable-next-line max-classes-per-file
|
||||
import { AxiosError } from 'axios';
|
||||
import type { AxiosError } from 'axios';
|
||||
import type { ServiceParams } from '@kbn/actions-plugin/server';
|
||||
import { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import { schema, TypeOf } from '@kbn/config-schema';
|
||||
import { SubActionConnectorType } from '@kbn/actions-plugin/server/sub_action_framework/types';
|
||||
import { ConnectorUsageCollector } from '@kbn/actions-plugin/server/types';
|
||||
import type { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import type { SubActionConnectorType } from '@kbn/actions-plugin/server/sub_action_framework/types';
|
||||
import type { ConnectorUsageCollector } from '@kbn/actions-plugin/server/types';
|
||||
|
||||
const TestConfigSchema = schema.object({ url: schema.string() });
|
||||
const TestSecretsSchema = schema.object({
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { CoreSetup } from '@kbn/core/server';
|
||||
import { RuleType } from '@kbn/alerting-plugin/server';
|
||||
import type { CoreSetup } from '@kbn/core/server';
|
||||
import type { RuleType } from '@kbn/alerting-plugin/server';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import type { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
|
||||
export function defineAlertTypes(
|
||||
core: CoreSetup<FixtureStartDeps>,
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { Plugin, CoreSetup } from '@kbn/core/server';
|
||||
import { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import { AlertingServerSetup } from '@kbn/alerting-plugin/server/plugin';
|
||||
import { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import type { Plugin, CoreSetup } from '@kbn/core/server';
|
||||
import type { PluginSetupContract as ActionsPluginSetup } from '@kbn/actions-plugin/server/plugin';
|
||||
import type { AlertingServerSetup } from '@kbn/alerting-plugin/server/plugin';
|
||||
import type { EncryptedSavedObjectsPluginStart } from '@kbn/encrypted-saved-objects-plugin/server';
|
||||
import type { FeaturesPluginSetup } from '@kbn/features-plugin/server';
|
||||
import { RULE_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server';
|
||||
import { ALERTING_FEATURE_ID } from '@kbn/alerting-plugin/common';
|
||||
import { KibanaFeatureScope } from '@kbn/features-plugin/common';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
Plugin,
|
||||
CoreSetup,
|
||||
CoreStart,
|
||||
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@kbn/core/server';
|
||||
import { firstValueFrom, Subject } from 'rxjs';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
import { TaskManagerStartContract } from '@kbn/task-manager-plugin/server';
|
||||
import type { TaskManagerStartContract } from '@kbn/task-manager-plugin/server';
|
||||
|
||||
export interface SampleTaskManagerFixtureStartDeps {
|
||||
taskManager: TaskManagerStartContract;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import type { RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Aggregators } from '@kbn/observability-plugin/common/custom_threshold_r
|
|||
import { OBSERVABILITY_THRESHOLD_RULE_TYPE_ID } from '@kbn/rule-data-utils';
|
||||
|
||||
import { COMPARATORS } from '@kbn/alerting-comparators';
|
||||
import { FtrProviderContext } from '../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover } from '../common/lib';
|
||||
import { createRule } from './helpers/alerting_api_helper';
|
||||
import { createDataView, deleteDataView } from './helpers/data_view';
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
import type { Client } from '@elastic/elasticsearch';
|
||||
import type { Agent as SuperTestAgent } from 'supertest';
|
||||
import expect from '@kbn/expect';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { ThresholdParams } from '@kbn/observability-plugin/common/custom_threshold_rule/types';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
import type { ThresholdParams } from '@kbn/observability-plugin/common/custom_threshold_rule/types';
|
||||
import { refreshSavedObjectIndices } from './refresh_index';
|
||||
|
||||
export async function createIndexConnector({
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import type SuperTest from 'supertest';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import type { AggregationsAggregate, SearchResponse } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
||||
import { retry } from '../../common/retry';
|
||||
|
||||
const TIMEOUT = 70_000;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { Agent as SuperTestAgent } from 'supertest';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import type { Agent as SuperTestAgent } from 'supertest';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
export const createDataView = async ({
|
||||
supertest,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { Client } from '@elastic/elasticsearch';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import {
|
||||
ApmSynthtraceEsClient,
|
||||
ApmSynthtraceKibanaClient,
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { cleanup, generate, Dataset, PartialConfig } from '@kbn/data-forge';
|
||||
import { Aggregators, MetricThresholdParams } from '@kbn/infra-plugin/common/alerting/metrics';
|
||||
import type { Dataset, PartialConfig } from '@kbn/data-forge';
|
||||
import { cleanup, generate } from '@kbn/data-forge';
|
||||
import type { MetricThresholdParams } from '@kbn/infra-plugin/common/alerting/metrics';
|
||||
import { Aggregators } from '@kbn/infra-plugin/common/alerting/metrics';
|
||||
import { COMPARATORS } from '@kbn/alerting-comparators';
|
||||
import { InfraRuleType } from '@kbn/rule-data-utils';
|
||||
import {
|
||||
|
@ -15,7 +17,7 @@ import {
|
|||
waitForAlertInIndex,
|
||||
waitForRuleStatus,
|
||||
} from './helpers/alerting_wait_for_helpers';
|
||||
import { FtrProviderContext } from '../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../common/ftr_provider_context';
|
||||
import { createIndexConnector, createRule } from './helpers/alerting_api_helper';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants';
|
||||
import { SyntheticsMonitorStatusRuleParams as StatusRuleParams } from '@kbn/response-ops-rule-params/synthetics_monitor_status';
|
||||
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import type { SyntheticsMonitorStatusRuleParams as StatusRuleParams } from '@kbn/response-ops-rule-params/synthetics_monitor_status';
|
||||
import type { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import { SyntheticsRuleHelper, SYNTHETICS_ALERT_ACTION_INDEX } from './synthetics_rule_helper';
|
||||
import { waitForDocumentInIndex } from '../helpers/alerting_wait_for_helpers';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
SyntheticsMonitorStatusTranslations,
|
||||
TlsTranslations,
|
||||
} from '@kbn/synthetics-plugin/common/rules/synthetics/translations';
|
||||
import { SanitizedRule } from '@kbn/alerting-types';
|
||||
import type { SanitizedRule } from '@kbn/alerting-types';
|
||||
|
||||
export const statusRule = {
|
||||
id: 'dbbc39f0-1781-11ee-80b9-6522650f1d50',
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants';
|
||||
import { SanitizedRule } from '@kbn/alerting-plugin/common';
|
||||
import type { SanitizedRule } from '@kbn/alerting-plugin/common';
|
||||
import { omit } from 'lodash';
|
||||
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import { statusRule, tlsRule } from './data';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { SyntheticsMonitorStatusRuleParams as StatusRuleParams } from '@kbn/response-ops-rule-params/synthetics_monitor_status';
|
||||
import type { SyntheticsMonitorStatusRuleParams as StatusRuleParams } from '@kbn/response-ops-rule-params/synthetics_monitor_status';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
import { makeDownSummary, makeUpSummary } from '@kbn/observability-synthetics-test-data';
|
||||
import { RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import { EncryptedSyntheticsSavedMonitor } from '@kbn/synthetics-plugin/common/runtime_types';
|
||||
import type { RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import type { EncryptedSyntheticsSavedMonitor } from '@kbn/synthetics-plugin/common/runtime_types';
|
||||
import moment from 'moment';
|
||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
||||
import { Agent as SuperTestAgent } from 'supertest';
|
||||
import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { Agent as SuperTestAgent } from 'supertest';
|
||||
import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants';
|
||||
import expect from '@kbn/expect';
|
||||
import { PrivateLocationTestService } from '../../../api_integration/apis/synthetics/services/private_location_test_service';
|
||||
import { waitForAlertInIndex } from '../helpers/alerting_wait_for_helpers';
|
||||
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||
import { createIndexConnector, createRule } from '../helpers/alerting_api_helper';
|
||||
|
||||
export const SYNTHETICS_ALERT_ACTION_INDEX = 'alert-action-synthetics';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
import { omit } from 'lodash';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { DeleteByQueryRequest } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { DeleteByQueryRequest } from '@elastic/elasticsearch/lib/api/types';
|
||||
|
||||
export const ES_TEST_INDEX_NAME = '.kibana-alerting-test-data';
|
||||
|
||||
|
|
|
@ -7,14 +7,15 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX, SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import type { SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
|
||||
import type { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import { get } from 'lodash';
|
||||
import {
|
||||
AD_HOC_RUN_SAVED_OBJECT_TYPE,
|
||||
RULE_SAVED_OBJECT_TYPE,
|
||||
} from '@kbn/alerting-plugin/server/saved_objects';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import { SuperuserAtSpace1 } from '../../../../scenarios';
|
||||
import {
|
||||
getEventLog,
|
||||
|
@ -22,7 +23,7 @@ import {
|
|||
getUrlPrefix,
|
||||
ObjectRemover,
|
||||
} from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function apiKeyBackfillTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -8,15 +8,11 @@
|
|||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { asyncForEach } from '@kbn/std';
|
||||
import { GetResponse } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { GetResponse } from '@elastic/elasticsearch/lib/api/types';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import {
|
||||
getTestRuleData,
|
||||
getUrlPrefix,
|
||||
ObjectRemover,
|
||||
TaskManagerDoc,
|
||||
} from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { TaskManagerDoc } from '../../../../../common/lib';
|
||||
import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function deleteBackfillTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX, SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import type { SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
|
||||
import type { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import { get } from 'lodash';
|
||||
import { SuperuserAtSpace1 } from '../../../../scenarios';
|
||||
import {
|
||||
getTestRuleData,
|
||||
getUrlPrefix,
|
||||
ObjectRemover,
|
||||
TaskManagerDoc,
|
||||
} from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { TaskManagerDoc } from '../../../../../common/lib';
|
||||
import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function deleteRuleForBackfillTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import moment from 'moment';
|
|||
import { asyncForEach } from '@kbn/std';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function findBackfillTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import moment from 'moment';
|
|||
import { asyncForEach } from '@kbn/std';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function getBackfillTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function backfillTests({ loadTestFile }: FtrProviderContext) {
|
||||
|
|
|
@ -7,14 +7,15 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX, SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import type { SavedObject } from '@kbn/core-saved-objects-server';
|
||||
import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
|
||||
import type { AdHocRunSO } from '@kbn/alerting-plugin/server/data/ad_hoc_run/types';
|
||||
import { get } from 'lodash';
|
||||
import { AD_HOC_RUN_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server/saved_objects';
|
||||
import { asyncForEach } from '../../../../../../functional/services/transform/api';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { checkAAD, getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { TEST_ACTIONS_INDEX, getScheduledTask } from './test_utils';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -26,14 +26,14 @@ import {
|
|||
TIMESTAMP,
|
||||
} from '@kbn/rule-data-utils';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import {
|
||||
AD_HOC_RUN_SAVED_OBJECT_TYPE,
|
||||
RULE_SAVED_OBJECT_TYPE,
|
||||
} from '@kbn/alerting-plugin/server/saved_objects';
|
||||
import { ALERT_ORIGINAL_TIME } from '@kbn/security-solution-plugin/common/field_maps/field_names';
|
||||
import { DOCUMENT_SOURCE } from '../../../../../spaces_only/tests/alerting/create_test_data';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { SuperuserAtSpace1 } from '../../../../scenarios';
|
||||
import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import {
|
||||
|
|
|
@ -11,7 +11,7 @@ import { ESTestIndexTool } from '@kbn/alerting-api-integration-helpers';
|
|||
import { asyncForEach } from '../../../../../../functional/services/transform/api';
|
||||
import { SuperuserAtSpace1 } from '../../../../scenarios';
|
||||
import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
TEST_ACTIONS_INDEX,
|
||||
indexTestDocs,
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
*/
|
||||
|
||||
import { asyncForEach } from '@kbn/std';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import type { ESTestIndexTool } from '@kbn/alerting-api-integration-helpers';
|
||||
import { ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import moment from 'moment';
|
||||
import { FtrProviderContext, RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import type { FtrProviderContext, RetryService } from '@kbn/ftr-common-functional-services';
|
||||
import { AD_HOC_RUN_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server/saved_objects';
|
||||
import { ALERT_ORIGINAL_TIME } from '@kbn/security-solution-plugin/common/field_maps/field_names';
|
||||
import { SearchHit } from '@elastic/elasticsearch/lib/api/types';
|
||||
import { TaskManagerDoc, getEventLog } from '../../../../../common/lib';
|
||||
import type { SearchHit } from '@elastic/elasticsearch/lib/api/types';
|
||||
import type { TaskManagerDoc } from '../../../../../common/lib';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
import {
|
||||
DOCUMENT_REFERENCE,
|
||||
DOCUMENT_SOURCE,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { chunk, omit } from 'lodash';
|
|||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { SuperuserAtSpace1, UserAtSpaceScenarios } from '../../../scenarios';
|
||||
import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function createFindTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
ML_ANOMALY_DETECTION_RULE_TYPE_ID,
|
||||
OBSERVABILITY_THRESHOLD_RULE_TYPE_ID,
|
||||
} from '@kbn/rule-data-utils';
|
||||
import { Space } from '../../../../common/types';
|
||||
import type { Space } from '../../../../common/types';
|
||||
import {
|
||||
Space1AllAtSpace1,
|
||||
StackAlertsOnly,
|
||||
|
@ -21,7 +21,7 @@ import {
|
|||
UserAtSpaceScenarios,
|
||||
} from '../../../scenarios';
|
||||
import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function createFindTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import expect from '@kbn/expect';
|
||||
import moment from 'moment';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
import expect from '@kbn/expect';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
getUrlPrefix,
|
||||
ObjectRemover,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { UserAtSpaceScenarios } from '../../../../scenarios';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function gapsTests({ loadTestFile }: FtrProviderContext) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import moment from 'moment';
|
|||
import { AD_HOC_RUN_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server/saved_objects';
|
||||
import { SuperuserAtSpace1 } from '../../../../scenarios';
|
||||
import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib/get_event_log';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { setupSpacesAndUsers, tearDown } from '../../../setup';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) {
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { systemActionScenario, UserAtSpaceScenarios } from '../../../scenarios';
|
||||
import { getEventLog, getUrlPrefix, ObjectRemover } from '../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import expect from '@kbn/expect';
|
||||
import { UserAtSpaceScenarios } from '../../../scenarios';
|
||||
import { getUrlPrefix } from '../../../../common/lib/space_test_utils';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function listActionTypesTests({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -13,8 +13,8 @@ import {
|
|||
} from '@kbn/actions-simulators-plugin/server/bedrock_simulation';
|
||||
import { DEFAULT_TOKEN_LIMIT } from '@kbn/stack-connectors-plugin/common/bedrock/constants';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog, getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
|
||||
const connectorTypeId = '.bedrock';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import httpProxy from 'http-proxy';
|
||||
import type httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
|
@ -14,8 +14,8 @@ import {
|
|||
ExternalServiceSimulator,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -9,11 +9,11 @@ import {
|
|||
CROWDSTRIKE_CONNECTOR_ID,
|
||||
SUB_ACTION,
|
||||
} from '@kbn/stack-connectors-plugin/common/crowdstrike/constants';
|
||||
import { FeaturesPrivileges, Role } from '@kbn/security-plugin/common';
|
||||
import SuperTest from 'supertest';
|
||||
import type { FeaturesPrivileges, Role } from '@kbn/security-plugin/common';
|
||||
import type SuperTest from 'supertest';
|
||||
import expect from '@kbn/expect';
|
||||
import { getUrlPrefix } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { createSupertestErrorLogger } from '../../../../../common/lib/log_supertest_errors';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -12,8 +12,8 @@ import {
|
|||
d3SecuritySuccessResponse,
|
||||
} from '@kbn/actions-simulators-plugin/server/d3security_simulation';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
const connectorTypeId = '.d3security';
|
||||
|
|
|
@ -11,8 +11,8 @@ import {
|
|||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
import type { Client } from '@elastic/elasticsearch';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
const ES_TEST_INDEX_NAME = 'functional-test-actions-index';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// from: x-pack/test/alerting_api_integration/common/config.ts
|
||||
const ACTION_ID = 'preconfigured-es-index-action';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
} from '@kbn/actions-simulators-plugin/server/gemini_simulation';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { DEFAULT_GEMINI_MODEL } from '@kbn/stack-connectors-plugin/common/gemini/constants';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
const connectorTypeId = '.gemini';
|
||||
const name = 'A Gemini action';
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/server';
|
||||
|
||||
import {
|
||||
InferenceSimulator,
|
||||
inferenceSuccessResponse,
|
||||
} from '@kbn/actions-simulators-plugin/server/inference_simulation';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import httpProxy from 'http-proxy';
|
||||
import type httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
import { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas';
|
||||
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import {
|
||||
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { TaskErrorSource } from '@kbn/task-manager-plugin/common';
|
||||
import { MAX_OTHER_FIELDS_LENGTH } from '@kbn/stack-connectors-plugin/common/jira/constants';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getEventLog } from '../../../../../common/lib';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FeaturesPrivileges, Role } from '@kbn/security-plugin-types-common';
|
||||
import type { FeaturesPrivileges, Role } from '@kbn/security-plugin-types-common';
|
||||
import {
|
||||
MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID,
|
||||
MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION,
|
||||
} from '@kbn/stack-connectors-plugin/common/microsoft_defender_endpoint/constants';
|
||||
import SuperTest from 'supertest';
|
||||
import type SuperTest from 'supertest';
|
||||
import expect from '@kbn/expect';
|
||||
import { getUrlPrefix } from '../../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { createSupertestErrorLogger } from '../../../../../common/lib/log_supertest_errors';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
import fs from 'fs';
|
||||
import expect from '@kbn/expect';
|
||||
import { promisify } from 'util';
|
||||
import httpProxy from 'http-proxy';
|
||||
import type httpProxy from 'http-proxy';
|
||||
import { KBN_KEY_PATH } from '@kbn/dev-utils';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import {
|
||||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '@kbn/actions-simulators-plugin/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function oAuthAccessTokenTest({ getService }: FtrProviderContext) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue