mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Merge branch 'main' of github.com:elastic/kibana into support-prerelease-detection-rules
This commit is contained in:
commit
00d1d74ca7
131 changed files with 337 additions and 347 deletions
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -1086,3 +1086,4 @@ x-pack/packages/ml/nested_property @elastic/ml-ui
|
|||
x-pack/packages/ml/query_utils @elastic/ml-ui
|
||||
x-pack/packages/ml/string_hash @elastic/ml-ui
|
||||
x-pack/packages/ml/url_state @elastic/ml-ui
|
||||
x-pack/test/alerting_api_integration/packages/helpers @elastic/response-ops
|
||||
|
|
|
@ -748,6 +748,7 @@
|
|||
"@jest/reporters": "^29.3.1",
|
||||
"@jest/transform": "^29.3.1",
|
||||
"@jest/types": "^29.3.1",
|
||||
"@kbn/alerting-api-integration-helpers": "link:x-pack/test/alerting_api_integration/packages/helpers",
|
||||
"@kbn/ambient-common-types": "link:packages/kbn-ambient-common-types",
|
||||
"@kbn/ambient-ftr-types": "link:packages/kbn-ambient-ftr-types",
|
||||
"@kbn/ambient-storybook-types": "link:packages/kbn-ambient-storybook-types",
|
||||
|
|
|
@ -141,9 +141,9 @@ module.exports = {
|
|||
/**
|
||||
* ESLint rule to aid with breaking up packages:
|
||||
*
|
||||
* `fromPacakge` the package name which was broken up
|
||||
* `toPackage` the package where the removed exports were placed
|
||||
* `exportNames` the list of exports which used to be found in `fromPacakge` and are now found in `toPackage`
|
||||
* `from` the package/request where the exports used to be
|
||||
* `to` the package/request where the exports are now
|
||||
* `exportNames` the list of exports which used to be found in `from` and are now found in `to`
|
||||
*
|
||||
* TODO(@spalger): once packages have types we should be able to filter this rule based on the package type
|
||||
* of the file being linted so that we could re-route imports from `plugin-client` types to a different package
|
||||
|
@ -151,8 +151,8 @@ module.exports = {
|
|||
*/
|
||||
'@kbn/imports/exports_moved_packages': ['error', [
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/tooling-log',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/tooling-log',
|
||||
exportNames: [
|
||||
'DEFAULT_LOG_LEVEL',
|
||||
'getLogLevelFlagsHelp',
|
||||
|
@ -171,8 +171,8 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/ci-stats-reporter',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/ci-stats-reporter',
|
||||
exportNames: [
|
||||
'CiStatsMetric',
|
||||
'CiStatsReporter',
|
||||
|
@ -188,15 +188,15 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/ci-stats-core',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/ci-stats-core',
|
||||
exportNames: [
|
||||
'Config',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/jest-serializers',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/jest-serializers',
|
||||
exportNames: [
|
||||
'createAbsolutePathSerializer',
|
||||
'createStripAnsiSerializer',
|
||||
|
@ -206,23 +206,23 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/stdio-dev-helpers',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/stdio-dev-helpers',
|
||||
exportNames: [
|
||||
'observeReadable',
|
||||
'observeLines',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/sort-package-json',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/sort-package-json',
|
||||
exportNames: [
|
||||
'sortPackageJson',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/dev-cli-runner',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/dev-cli-runner',
|
||||
exportNames: [
|
||||
'run',
|
||||
'Command',
|
||||
|
@ -242,8 +242,8 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/dev-cli-errors',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/dev-cli-errors',
|
||||
exportNames: [
|
||||
'createFailError',
|
||||
'createFlagError',
|
||||
|
@ -251,16 +251,16 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/dev-proc-runner',
|
||||
from: '@kbn/dev-utils',
|
||||
to: '@kbn/dev-proc-runner',
|
||||
exportNames: [
|
||||
'withProcRunner',
|
||||
'ProcRunner',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/utils',
|
||||
toPackage: '@kbn/repo-info',
|
||||
from: '@kbn/utils',
|
||||
to: '@kbn/repo-info',
|
||||
exportNames: [
|
||||
'REPO_ROOT',
|
||||
'UPSTREAM_BRANCH',
|
||||
|
@ -269,6 +269,21 @@ module.exports = {
|
|||
'fromRoot',
|
||||
]
|
||||
},
|
||||
{
|
||||
from: '@kbn/presentation-util-plugin/common',
|
||||
to: '@kbn/presentation-util-plugin/test_helpers',
|
||||
exportNames: [
|
||||
'functionWrapper',
|
||||
'fontStyle'
|
||||
]
|
||||
},
|
||||
{
|
||||
from: '@kbn/fleet-plugin/common',
|
||||
to: '@kbn/fleet-plugin/common/mocks',
|
||||
exportNames: [
|
||||
'createFleetAuthzMock'
|
||||
]
|
||||
}
|
||||
]],
|
||||
|
||||
'@kbn/disable/no_protected_eslint_disable': 'error',
|
||||
|
|
|
@ -14,7 +14,7 @@ import { RUNNING_IN_EDITOR } from './helpers/running_in_editor';
|
|||
let importResolverCache: ImportResolver | undefined;
|
||||
|
||||
/**
|
||||
* Create a request resolver for ESLint, requires a PluginPackageResolver from @kbn/bazel-packages which will
|
||||
* Create a request resolver for ESLint, requires a PluginPackageResolver from @kbn/repo-packages which will
|
||||
* be created and cached on contextServices automatically.
|
||||
*
|
||||
* All import requests in the repository should return a result, if they don't it's a bug
|
||||
|
|
|
@ -16,8 +16,8 @@ const OPTIONS: MovedExportsRule[][] = [
|
|||
[
|
||||
{
|
||||
exportNames: ['foo', 'bar'],
|
||||
fromPackage: 'old',
|
||||
toPackage: 'new',
|
||||
from: 'old',
|
||||
to: 'new',
|
||||
},
|
||||
],
|
||||
];
|
||||
|
|
|
@ -13,8 +13,8 @@ import { TSESTree } from '@typescript-eslint/typescript-estree';
|
|||
import { visitAllImportStatements, Importer } from '../helpers/visit_all_import_statements';
|
||||
|
||||
export interface MovedExportsRule {
|
||||
fromPackage: string;
|
||||
toPackage: string;
|
||||
from: string;
|
||||
to: string;
|
||||
exportNames: string[];
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ function getBadImports(imported: Imported[], rules: MovedExportsRule[]): BadImpo
|
|||
node: i.node,
|
||||
id: i.id,
|
||||
name: i.name,
|
||||
newPkg: match.toPackage,
|
||||
newPkg: match.to,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
@ -203,10 +203,10 @@ export const ExportsMovedPackagesRule: Rule.RuleModule = {
|
|||
items: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
fromPackage: {
|
||||
from: {
|
||||
type: 'string',
|
||||
},
|
||||
toPackage: {
|
||||
to: {
|
||||
type: 'string',
|
||||
},
|
||||
exportNames: {
|
||||
|
@ -268,7 +268,7 @@ export const ExportsMovedPackagesRule: Rule.RuleModule = {
|
|||
return;
|
||||
}
|
||||
|
||||
const rulesForRightPackage = rules.filter((m) => m.fromPackage === req);
|
||||
const rulesForRightPackage = rules.filter((m) => m.from === req);
|
||||
if (!rulesForRightPackage.length) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -8,11 +8,8 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
import {
|
||||
functionWrapper,
|
||||
getElasticLogo,
|
||||
getElasticOutline,
|
||||
} from '@kbn/presentation-util-plugin/common';
|
||||
import { getElasticLogo, getElasticOutline } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { imageFunction as image } from './image_function';
|
||||
|
||||
describe('image', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { metricFunction } from './metric_function';
|
||||
|
||||
describe('metric', () => {
|
||||
|
|
|
@ -7,11 +7,8 @@
|
|||
*/
|
||||
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
import {
|
||||
getElasticLogo,
|
||||
getElasticOutline,
|
||||
functionWrapper,
|
||||
} from '@kbn/presentation-util-plugin/common';
|
||||
import { getElasticLogo, getElasticOutline } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { repeatImageFunction } from './repeat_image_function';
|
||||
|
||||
describe('repeatImage', () => {
|
||||
|
|
|
@ -6,11 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import {
|
||||
functionWrapper,
|
||||
getElasticOutline,
|
||||
getElasticLogo,
|
||||
} from '@kbn/presentation-util-plugin/common';
|
||||
import { getElasticOutline, getElasticLogo } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { revealImageFunction, errors } from './reveal_image_function';
|
||||
import { Origin } from '../types';
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { progressFunction, errors } from './progress_function';
|
||||
|
||||
describe('progress', () => {
|
||||
|
|
|
@ -37,8 +37,6 @@ export {
|
|||
export {
|
||||
defaultTheme$,
|
||||
getElasticLogo,
|
||||
fontStyle,
|
||||
functionWrapper,
|
||||
getElasticOutline,
|
||||
isValidUrl,
|
||||
resolveWithMissingImage,
|
||||
|
|
|
@ -7,5 +7,3 @@
|
|||
*/
|
||||
|
||||
export * from './utils';
|
||||
// eslint-disable-next-line @kbn/imports/no_boundary_crossing
|
||||
export * from './test_helpers';
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"public/**/*",
|
||||
"public/**/*.json",
|
||||
"server/**/*",
|
||||
"test_helpers/**/*",
|
||||
"storybook/**/*",
|
||||
"../../../typings/**/*"
|
||||
],
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
"@kbn/aiops-plugin/*": ["x-pack/plugins/aiops/*"],
|
||||
"@kbn/aiops-utils": ["x-pack/packages/ml/aiops_utils"],
|
||||
"@kbn/aiops-utils/*": ["x-pack/packages/ml/aiops_utils/*"],
|
||||
"@kbn/alerting-api-integration-helpers": ["x-pack/test/alerting_api_integration/packages/helpers"],
|
||||
"@kbn/alerting-api-integration-helpers/*": ["x-pack/test/alerting_api_integration/packages/helpers/*"],
|
||||
"@kbn/alerting-example-plugin": ["x-pack/examples/alerting_example"],
|
||||
"@kbn/alerting-example-plugin/*": ["x-pack/examples/alerting_example/*"],
|
||||
"@kbn/alerting-fixture-plugin": ["x-pack/test/functional_with_es_ssl/plugins/alerts"],
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable } from '../common/__fixtures__/test_tables';
|
||||
import { markdown } from './markdown';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { all } from './all';
|
||||
|
||||
describe('all', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { alterColumn } from './alterColumn';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { any } from './any';
|
||||
|
||||
describe('any', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { asFn } from './as';
|
||||
|
||||
describe('as', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { axisConfig } from './axisConfig';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { of } from 'rxjs';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { caseFn } from './case';
|
||||
|
||||
describe('case', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { clear } from './clear';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { columns } from './columns';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { compare } from './compare';
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper, getElasticLogo } from '@kbn/presentation-util-plugin/common';
|
||||
import { getElasticLogo } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { containerStyle } from './containerStyle';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable, emptyTable } from './__fixtures__/test_tables';
|
||||
import { context } from './context';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { SerializableRecord } from '@kbn/utility-types';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { csv } from './csv';
|
||||
import { Datatable, ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import sinon from 'sinon';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { date } from './date';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { doFn } from './do';
|
||||
|
||||
describe('do', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable, relationalTable } from './__fixtures__/test_tables';
|
||||
import { dropdownControl } from './dropdownControl';
|
||||
import { ExecutionContext } from '@kbn/expressions-plugin/common';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { eq } from './eq';
|
||||
|
||||
describe('eq', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { emptyFilter } from './__fixtures__/test_filters';
|
||||
import { exactly } from './exactly';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { of } from 'rxjs';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { filterrows } from './filterrows';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { formatdate } from './formatdate';
|
||||
|
||||
describe('formatdate', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { formatnumber } from './formatnumber';
|
||||
|
||||
describe('formatnumber', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { getCell } from './getCell';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { gt } from './gt';
|
||||
|
||||
describe('gt', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { gte } from './gte';
|
||||
|
||||
describe('gte', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { head } from './head';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { of } from 'rxjs';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { ifFn } from './if';
|
||||
|
||||
describe('if', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { joinRows } from './join_rows';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { lt } from './lt';
|
||||
|
||||
describe('lt', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { lte } from './lte';
|
||||
|
||||
describe('lte', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { neq } from './neq';
|
||||
|
||||
describe('neq', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { of } from 'rxjs';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { ply } from './ply';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { DEFAULT_ELEMENT_CSS } from '../../../common/lib/constants';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { fontStyle, getContainerStyle } from './__fixtures__/test_styles';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { replace } from './replace';
|
||||
|
||||
describe('replace', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { rounddate } from './rounddate';
|
||||
|
||||
describe('rounddate', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { rowCount } from './rowCount';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { seriesStyle } from './seriesStyle';
|
||||
|
||||
describe('seriesStyle', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { sort } from './sort';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable, emptyTable } from './__fixtures__/test_tables';
|
||||
import { staticColumn } from './staticColumn';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { string } from './string';
|
||||
|
||||
describe('string', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { of } from 'rxjs';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { switchFn } from './switch';
|
||||
|
||||
describe('switch', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper, fontStyle } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testTable } from './__fixtures__/test_tables';
|
||||
import { table } from './table';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { emptyTable, testTable } from './__fixtures__/test_tables';
|
||||
import { tail } from './tail';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import sinon from 'sinon';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { getFunctionErrors } from '../../../i18n';
|
||||
import { emptyFilter } from './__fixtures__/test_filters';
|
||||
import { timefilter } from './timefilter';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { timefilterControl } from './timefilterControl';
|
||||
|
||||
describe('timefilterControl', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { fontStyle, functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { fontStyle, functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testPie } from '../../canvas_plugin_src/functions/common/__fixtures__/test_pointseries';
|
||||
import {
|
||||
grayscalePalette,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { fontStyle, functionWrapper } from '@kbn/presentation-util-plugin/common';
|
||||
import { fontStyle, functionWrapper } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { testPlot } from '../../canvas_plugin_src/functions/common/__fixtures__/test_pointseries';
|
||||
import {
|
||||
grayscalePalette,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { fontStyle } from '@kbn/presentation-util-plugin/common';
|
||||
import { fontStyle } from '@kbn/presentation-util-plugin/test_helpers';
|
||||
import { defaultSpec, getFontSpec } from './get_font_spec';
|
||||
|
||||
describe('getFontSpec', () => {
|
||||
|
|
|
@ -19,8 +19,8 @@ import { createPackagePolicyMock, deletePackagePolicyMock } from '@kbn/fleet-plu
|
|||
import { dataPluginMock } from '@kbn/data-plugin/server/mocks';
|
||||
import { CspPlugin } from './plugin';
|
||||
import { CspServerPluginStartDeps } from './types';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
import {
|
||||
createFleetAuthzMock,
|
||||
Installation,
|
||||
ListResult,
|
||||
PackagePolicy,
|
||||
|
|
|
@ -71,8 +71,6 @@ export {
|
|||
} from './services';
|
||||
|
||||
export type { FleetAuthz } from './authz';
|
||||
// eslint-disable-next-line @kbn/imports/no_boundary_crossing
|
||||
export { createFleetAuthzMock } from './mocks';
|
||||
export type {
|
||||
// Request/Response
|
||||
GetOneAgentResponse,
|
||||
|
|
|
@ -24,7 +24,7 @@ import type { FleetAppContext } from '../plugin';
|
|||
import { createMockTelemetryEventsSender } from '../telemetry/__mocks__';
|
||||
import type { FleetConfigType } from '../../common/types';
|
||||
import type { ExperimentalFeatures } from '../../common/experimental_features';
|
||||
import { createFleetAuthzMock } from '../../common';
|
||||
import { createFleetAuthzMock } from '../../common/mocks';
|
||||
import { agentServiceMock } from '../services/agents/agent_service.mock';
|
||||
import type { FleetRequestHandlerContext } from '../types';
|
||||
import { packageServiceMock } from '../services/epm/package_service.mock';
|
||||
|
|
|
@ -20,7 +20,7 @@ import { appContextService } from '../../services/app_context';
|
|||
import { setupFleet } from '../../services/setup';
|
||||
import type { FleetRequestHandlerContext } from '../../types';
|
||||
|
||||
import { createFleetAuthzMock } from '../../../common';
|
||||
import { createFleetAuthzMock } from '../../../common/mocks';
|
||||
|
||||
import { fleetSetupHandler } from './handlers';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { calculateEndpointAuthz, getEndpointAuthzInitialState } from './authz';
|
||||
import type { FleetAuthz } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
import { createLicenseServiceMock } from '../../../license/mocks';
|
||||
import type { EndpointAuthzKeyList } from '../../types/authz';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { act, renderHook } from '@testing-library/react-hooks';
|
|||
|
||||
import { securityMock } from '@kbn/security-plugin/public/mocks';
|
||||
import type { AuthenticatedUser } from '@kbn/security-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
|
||||
import type { EndpointPrivileges } from '../../../../../common/endpoint/types';
|
||||
import { useCurrentUser, useKibana, useHttp as _useHttp } from '../../../lib/kibana';
|
||||
|
|
|
@ -20,7 +20,7 @@ import { licenseService as _licenseService } from '../common/hooks/use_license';
|
|||
import type { LicenseService } from '../../common/license';
|
||||
import { createLicenseServiceMock } from '../../common/license/mocks';
|
||||
import type { FleetAuthz } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
import type { DeepPartial } from '@kbn/utility-types';
|
||||
import { merge } from 'lodash';
|
||||
import { ENDPOINT_ARTIFACT_LISTS } from '@kbn/securitysolution-list-constants';
|
||||
|
|
|
@ -39,7 +39,7 @@ import {
|
|||
// file and not bundled with the application, adding a eslint disable below and using import from
|
||||
// a restricted path.
|
||||
import { createCasesClientMock } from '@kbn/cases-plugin/server/client/mocks';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
import type { RequestFixtureOptions } from '@kbn/core-http-router-server-mocks';
|
||||
import type { ElasticsearchClientMock } from '@kbn/core-elasticsearch-client-server-mocks';
|
||||
import { getEndpointAuthzInitialStateMock } from '../../common/endpoint/service/authz/mocks';
|
||||
|
|
|
@ -14,7 +14,7 @@ import { BaseValidatorMock, createExceptionItemLikeOptionsMock } from './mocks';
|
|||
import { EndpointArtifactExceptionValidationError } from './errors';
|
||||
import { httpServerMock } from '@kbn/core/server/mocks';
|
||||
import type { PackagePolicy } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common';
|
||||
import { createFleetAuthzMock } from '@kbn/fleet-plugin/common/mocks';
|
||||
import type { PackagePolicyClient } from '@kbn/fleet-plugin/server';
|
||||
import type { ExceptionItemLikeOptions } from '../types';
|
||||
import {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { Space, User } from '../types';
|
||||
import { ObjectRemover } from './object_remover';
|
||||
import { getUrlPrefix } from './space_test_utils';
|
||||
import { ES_TEST_INDEX_NAME } from './es_test_index_tool';
|
||||
import { getTestRuleData } from './get_test_rule_data';
|
||||
|
||||
export interface AlertUtilsOpts {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
export { ObjectRemover } from './object_remover';
|
||||
export { getUrlPrefix } from './space_test_utils';
|
||||
export { ES_TEST_INDEX_NAME, ESTestIndexTool } from './es_test_index_tool';
|
||||
export { getTestRuleData } from './get_test_rule_data';
|
||||
export {
|
||||
AlertUtils,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
import httpProxy from 'http-proxy';
|
||||
import { getProxyPort } from '../../../lib/get_proxy_server';
|
||||
import { getProxyPort } from '@kbn/alerting-api-integration-helpers';
|
||||
import { getDataFromRequest } from './data_handler';
|
||||
|
||||
export interface ProxyArgs {
|
||||
|
|
|
@ -18,8 +18,8 @@ import {
|
|||
RuleTypeParams,
|
||||
} from '@kbn/alerting-plugin/server';
|
||||
import { AlertConsumers } from '@kbn/rule-data-utils';
|
||||
import { ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FixtureStartDeps, FixtureSetupDeps } from './plugin';
|
||||
import { ES_TEST_INDEX_NAME } from '../../../lib';
|
||||
|
||||
export const EscapableStrings = {
|
||||
escapableBold: '*bold*',
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# @kbn/alerting-api-integration-helpers
|
||||
|
||||
A package to hold alerting api-integration test helpers that are shared with the the alerting api-integration plugins.
|
|
@ -5,6 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
|
||||
export const ES_TEST_INDEX_NAME = '.kibana-alerting-test-data';
|
||||
|
||||
export class ESTestIndexTool {
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './es_test_index_tool';
|
||||
export * from './get_proxy_server';
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test/jest_node',
|
||||
rootDir: '../../../../..',
|
||||
roots: ['<rootDir>/x-pack/test/alerting_api_integration/packages/helpers'],
|
||||
};
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"type": "test-helper",
|
||||
"id": "@kbn/alerting-api-integration-helpers",
|
||||
"owner": "@elastic/response-ops",
|
||||
"devOnly": true
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "@kbn/alerting-api-integration-helpers",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "../../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "target/types",
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
],
|
||||
"exclude": [
|
||||
"target/**/*"
|
||||
],
|
||||
"kbn_references": []
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
|
|
|
@ -10,8 +10,8 @@ import expect from '@kbn/expect';
|
|||
import { promisify } from 'util';
|
||||
import httpProxy from 'http-proxy';
|
||||
import { KBN_KEY_PATH } from '@kbn/dev-utils';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import {
|
||||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
|
|
|
@ -11,7 +11,7 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/plugins/actions_simulators/server/plugin';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/plugins/actions_simulators/server/plugin';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/plugins/actions_simulators/server/plugin';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import httpProxy from 'http-proxy';
|
|||
import expect from '@kbn/expect';
|
||||
import http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import { getSlackServer } from '../../../../../common/plugins/actions_simulators/server/plugin';
|
||||
|
|
|
@ -10,7 +10,7 @@ import expect from '@kbn/expect';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getSwimlaneServer } from '../../../../../common/plugins/actions_simulators/server/plugin';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import http from 'http';
|
|||
import expect from '@kbn/expect';
|
||||
import { URL, format as formatUrl } from 'url';
|
||||
import getPort from 'get-port';
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { getHttpProxyServer } from '@kbn/alerting-api-integration-helpers';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
|
|
|
@ -7,14 +7,9 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { IValidatedEvent, nanosToMillis } from '@kbn/event-log-plugin/server';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { UserAtSpaceScenarios } from '../../../scenarios';
|
||||
import {
|
||||
ESTestIndexTool,
|
||||
ES_TEST_INDEX_NAME,
|
||||
getUrlPrefix,
|
||||
ObjectRemover,
|
||||
getEventLog,
|
||||
} from '../../../../common/lib';
|
||||
import { getUrlPrefix, ObjectRemover, getEventLog } from '../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
|
@ -11,11 +11,10 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
|||
import { IValidatedEvent, nanosToMillis } from '@kbn/event-log-plugin/server';
|
||||
import { TaskRunning, TaskRunningStage } from '@kbn/task-manager-plugin/server/task_running';
|
||||
import { ConcreteTaskInstance } from '@kbn/task-manager-plugin/server';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import { UserAtSpaceScenarios, Superuser } from '../../../scenarios';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import {
|
||||
ESTestIndexTool,
|
||||
ES_TEST_INDEX_NAME,
|
||||
getUrlPrefix,
|
||||
getTestRuleData,
|
||||
ObjectRemover,
|
||||
|
|
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