mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
* [kbn/test] move types/ftr into src * Apply eslint updates * fix import of Lifecycle type Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Spencer <email@spalger.com> Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
parent
3124344357
commit
4b712fda4b
152 changed files with 158 additions and 163 deletions
|
@ -70,6 +70,11 @@ module.exports = {
|
||||||
to: '@kbn/tinymath',
|
to: '@kbn/tinymath',
|
||||||
disallowedMessage: `Don't use 'tinymath', use '@kbn/tinymath'`
|
disallowedMessage: `Don't use 'tinymath', use '@kbn/tinymath'`
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: '@kbn/test/types/ftr',
|
||||||
|
to: '@kbn/test',
|
||||||
|
disallowedMessage: `import from the root of @kbn/test instead`
|
||||||
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||||
"main": "./target/index.js",
|
"main": "./target",
|
||||||
"types": "./target/types/index.d.ts",
|
"types": "./target/types",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node scripts/build",
|
"build": "node scripts/build",
|
||||||
"kbn:bootstrap": "node scripts/build --source-maps",
|
"kbn:bootstrap": "node scripts/build --source-maps",
|
||||||
|
|
|
@ -10,3 +10,4 @@ export { FunctionalTestRunner } from './functional_test_runner';
|
||||||
export { readConfigFile, Config } from './lib';
|
export { readConfigFile, Config } from './lib';
|
||||||
export { runFtrCli } from './cli';
|
export { runFtrCli } from './cli';
|
||||||
export * from './lib/docker_servers';
|
export * from './lib/docker_servers';
|
||||||
|
export * from './public_types';
|
||||||
|
|
|
@ -7,13 +7,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ToolingLog } from '@kbn/dev-utils';
|
import { ToolingLog } from '@kbn/dev-utils';
|
||||||
import {
|
|
||||||
Config,
|
import { Config, Lifecycle, FailureMetadata, DockerServersService } from './lib';
|
||||||
Lifecycle,
|
import { Test, Suite } from './fake_mocha_types';
|
||||||
FailureMetadata,
|
|
||||||
DockerServersService,
|
|
||||||
} from '../src/functional_test_runner/lib';
|
|
||||||
import { Test, Suite } from '../src/functional_test_runner/fake_mocha_types';
|
|
||||||
|
|
||||||
export { Lifecycle, Config, FailureMetadata };
|
export { Lifecycle, Config, FailureMetadata };
|
||||||
|
|
|
@ -8,19 +8,17 @@
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"sourceRoot": "../../../../../packages/kbn-test/src",
|
"sourceRoot": "../../../../../../packages/kbn-test/src",
|
||||||
"types": [
|
"types": [
|
||||||
"jest",
|
"jest",
|
||||||
"node"
|
"node"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"types/**/*",
|
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"index.d.ts"
|
"index.d.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"types/ftr_globals/**/*",
|
|
||||||
"**/__fixtures__/**/*"
|
"**/__fixtures__/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# @kbn/test/types
|
|
||||||
|
|
||||||
Shared types used by different parts of the tests
|
|
||||||
|
|
||||||
- **`ftr.d.ts`**: These types are generic types for using the functional test runner. They are here because we plan to move the functional test runner into the `@kbn/test` package at some point and having them here makes them a lot easier to import from all over the place like we do.
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
2
test/accessibility/ftr_provider_context.d.ts
vendored
2
test/accessibility/ftr_provider_context.d.ts
vendored
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
2
test/common/ftr_provider_context.d.ts
vendored
2
test/common/ftr_provider_context.d.ts
vendored
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services } from '../../services';
|
import { services } from '../../services';
|
||||||
import { pageObjects } from '../../page_objects';
|
import { pageObjects } from '../../page_objects';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
2
test/functional/ftr_provider_context.d.ts
vendored
2
test/functional/ftr_provider_context.d.ts
vendored
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { cloneDeepWith } from 'lodash';
|
||||||
import { Key, Origin } from 'selenium-webdriver';
|
import { Key, Origin } from 'selenium-webdriver';
|
||||||
// @ts-ignore internal modules are not typed
|
// @ts-ignore internal modules are not typed
|
||||||
import { LegacyActionSequence } from 'selenium-webdriver/lib/actions';
|
import { LegacyActionSequence } from 'selenium-webdriver/lib/actions';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { modifyUrl } from '@kbn/std';
|
import { modifyUrl } from '@kbn/std';
|
||||||
|
|
||||||
import Jimp from 'jimp';
|
import Jimp from 'jimp';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import testSubjSelector from '@kbn/test-subj-selector';
|
import testSubjSelector from '@kbn/test-subj-selector';
|
||||||
import { map as mapAsync } from 'bluebird';
|
import { map as mapAsync } from 'bluebird';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { WebElementWrapper } from '../lib/web_element_wrapper';
|
import { WebElementWrapper } from '../lib/web_element_wrapper';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import Fs from 'fs';
|
||||||
|
|
||||||
import * as Rx from 'rxjs';
|
import * as Rx from 'rxjs';
|
||||||
import { mergeMap, map, takeUntil, catchError } from 'rxjs/operators';
|
import { mergeMap, map, takeUntil, catchError } from 'rxjs/operators';
|
||||||
import { Lifecycle } from '@kbn/test/src/functional_test_runner/lib/lifecycle';
|
import { Lifecycle } from '@kbn/test';
|
||||||
import { ToolingLog } from '@kbn/dev-utils';
|
import { ToolingLog } from '@kbn/dev-utils';
|
||||||
import chromeDriver from 'chromedriver';
|
import chromeDriver from 'chromedriver';
|
||||||
// @ts-ignore types not available
|
// @ts-ignore types not available
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const commonConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
const commonConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
2
test/server_integration/services/types.d.ts
vendored
2
test/server_integration/services/types.d.ts
vendored
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services as kibanaCommonServices } from '../../common/services';
|
import { services as kibanaCommonServices } from '../../common/services';
|
||||||
import { services as kibanaApiIntegrationServices } from '../../api_integration/services';
|
import { services as kibanaApiIntegrationServices } from '../../api_integration/services';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
// @ts-ignore untyped module
|
// @ts-ignore untyped module
|
||||||
import getFunctionalConfig from '../../functional/config';
|
import getFunctionalConfig from '../../functional/config';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import { postSnapshot } from '@percy/agent/dist/utils/sdk-utils';
|
import { postSnapshot } from '@percy/agent/dist/utils/sdk-utils';
|
||||||
import testSubjSelector from '@kbn/test-subj-selector';
|
import testSubjSelector from '@kbn/test-subj-selector';
|
||||||
import { Test } from '@kbn/test/types/ftr';
|
import { Test } from '@kbn/test';
|
||||||
import { kibanaPackageJson as pkg } from '@kbn/utils';
|
import { kibanaPackageJson as pkg } from '@kbn/utils';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
async function config({ readConfigFile }: FtrConfigProviderContext) {
|
async function config({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { cypressOpenTests } from './cypress_start';
|
import { cypressOpenTests } from './cypress_start';
|
||||||
|
|
||||||
async function openE2ETests({ readConfigFile }: FtrConfigProviderContext) {
|
async function openE2ETests({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { cypressRunTests } from './cypress_start';
|
import { cypressRunTests } from './cypress_start';
|
||||||
|
|
||||||
async function runE2ETests({ readConfigFile }: FtrConfigProviderContext) {
|
async function runE2ETests({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import path from 'path';
|
||||||
import getPort from 'get-port';
|
import getPort from 'get-port';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { getAllExternalServiceSimulatorPaths } from './fixtures/plugins/actions_simulators/server/plugin';
|
import { getAllExternalServiceSimulatorPaths } from './fixtures/plugins/actions_simulators/server/plugin';
|
||||||
import { getTlsWebhookServerUrls } from './lib/get_tls_webhook_servers';
|
import { getTlsWebhookServerUrls } from './lib/get_tls_webhook_servers';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
export async function getApiIntegrationConfig({ readConfigFile }: FtrConfigProviderContext) {
|
export async function getApiIntegrationConfig({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
/* eslint-disable import/no-default-export */
|
/* eslint-disable import/no-default-export */
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { default as createTestConfig } from './config';
|
import { default as createTestConfig } from './config';
|
||||||
|
|
||||||
export default async function (context: FtrConfigProviderContext) {
|
export default async function (context: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
/* eslint-disable import/no-default-export */
|
/* eslint-disable import/no-default-export */
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { default as createTestConfig } from './config';
|
import { default as createTestConfig } from './config';
|
||||||
|
|
||||||
export default async function (context: FtrConfigProviderContext) {
|
export default async function (context: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const xpackApiIntegrationConfig = await readConfigFile(
|
const xpackApiIntegrationConfig = await readConfigFile(
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from '../api_integration/services';
|
import { services } from '../api_integration/services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import supertest from 'supertest';
|
import supertest from 'supertest';
|
||||||
import { format, UrlObject } from 'url';
|
import { format, UrlObject } from 'url';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { FtrProviderContext as InheritedFtrProviderContext } from '../../api_integration/ftr_provider_context';
|
import { FtrProviderContext as InheritedFtrProviderContext } from '../../api_integration/ftr_provider_context';
|
||||||
import { ApmServices } from './config';
|
import { ApmServices } from './config';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services, pageObjects } from './ftr_provider_context';
|
import { services, pageObjects } from './ftr_provider_context';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services } from '../functional/services';
|
import { services } from '../functional/services';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
interface CreateTestConfigOptions {
|
interface CreateTestConfigOptions {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from '../api_integration/services';
|
import { services } from '../api_integration/services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { defineDockerServersConfig } from '@kbn/test';
|
import { defineDockerServersConfig } from '@kbn/test';
|
||||||
|
|
||||||
// Docker image to use for Fleet API integration tests.
|
// Docker image to use for Fleet API integration tests.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { Calendar } from '../../../../plugins/ml/server/models/calendar/index';
|
import { Calendar } from '../../../../plugins/ml/server/models/calendar/index';
|
||||||
import { Annotation } from '../../../../plugins/ml/common/types/annotations';
|
import { Annotation } from '../../../../plugins/ml/common/types/annotations';
|
||||||
import { DataFrameAnalyticsConfig } from '../../../../plugins/ml/public/application/data_frame_analytics/common';
|
import { DataFrameAnalyticsConfig } from '../../../../plugins/ml/public/application/data_frame_analytics/common';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
|
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
|
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
|
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
export type MlDashboardJobSelectionTable = ProvidedType<
|
export type MlDashboardJobSelectionTable = ProvidedType<
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
import { ML_JOB_FIELD_TYPES } from '../../../../plugins/ml/common/constants/field_types';
|
import { ML_JOB_FIELD_TYPES } from '../../../../plugins/ml/common/constants/field_types';
|
||||||
import { MlCommonUI } from './common_ui';
|
import { MlCommonUI } from './common_ui';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
|
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { savedSearches, dashboards } from './test_resources_data';
|
import { savedSearches, dashboards } from './test_resources_data';
|
||||||
import { COMMON_REQUEST_HEADERS } from './common_api';
|
import { COMMON_REQUEST_HEADERS } from './common_api';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
export type TransformManagement = ProvidedType<typeof TransformManagementProvider>;
|
export type TransformManagement = ProvidedType<typeof TransformManagementProvider>;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProvidedType } from '@kbn/test/types/ftr';
|
import { ProvidedType } from '@kbn/test';
|
||||||
|
|
||||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from '../functional/services';
|
import { services } from '../functional/services';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import Url from 'url';
|
import Url from 'url';
|
||||||
import Path from 'path';
|
import Path from 'path';
|
||||||
import type { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import type { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { kbnTestConfig } from '@kbn/test';
|
import { kbnTestConfig } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const chromeConfig = await readConfigFile(require.resolve('./config'));
|
const chromeConfig = await readConfigFile(require.resolve('./config'));
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Fs from 'fs';
|
import Fs from 'fs';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { CA_CERT_PATH, KBN_CERT_PATH, KBN_KEY_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH, KBN_CERT_PATH, KBN_KEY_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const baseConfig = await readConfigFile(require.resolve('./base_config'));
|
const baseConfig = await readConfigFile(require.resolve('./base_config'));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const baseConfig = await readConfigFile(require.resolve('./base_config'));
|
const baseConfig = await readConfigFile(require.resolve('./base_config'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const xPackFunctionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
const xPackFunctionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from '../functional/services';
|
import { services } from '../functional/services';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Fs from 'fs';
|
import Fs from 'fs';
|
||||||
import { resolve, join } from 'path';
|
import { resolve, join } from 'path';
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
// .server-log is specifically not enabled
|
// .server-log is specifically not enabled
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services } from '../functional/services';
|
import { services } from '../functional/services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
||||||
import { KIBANA_ROOT } from '@kbn/test';
|
import { KIBANA_ROOT } from '@kbn/test';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const commonConfig = await readConfigFile(require.resolve('./config'));
|
const commonConfig = await readConfigFile(require.resolve('./config'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services, pageObjects } from './services';
|
import { services, pageObjects } from './services';
|
||||||
|
|
||||||
const license = 'basic';
|
const license = 'basic';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services as functionalTestServices } from '../functional/services';
|
import { services as functionalTestServices } from '../functional/services';
|
||||||
import { services as kibanaApiIntegrationServices } from '../api_integration/services';
|
import { services as kibanaApiIntegrationServices } from '../api_integration/services';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
interface CreateTestConfigOptions {
|
interface CreateTestConfigOptions {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { GatlingTestRunner } from './runner';
|
import { GatlingTestRunner } from './runner';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
interface Settings {
|
interface Settings {
|
||||||
license: 'basic' | 'trial';
|
license: 'basic' | 'trial';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { resolve } from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
||||||
import { KIBANA_ROOT } from '@kbn/test';
|
import { KIBANA_ROOT } from '@kbn/test';
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
import { pageObjects } from './page_objects';
|
import { pageObjects } from './page_objects';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
export type FtrProviderContext = GenericFtrProviderContext<typeof services, {}>;
|
export type FtrProviderContext = GenericFtrProviderContext<typeof services, {}>;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { ReportingAPIProvider } from './services';
|
import { ReportingAPIProvider } from './services';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
import { FtrConfigProviderContext } from '@kbn/test';
|
||||||
|
|
||||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||||
const apiConfig = await readConfigFile(require.resolve('./reporting_and_security.config'));
|
const apiConfig = await readConfigFile(require.resolve('./reporting_and_security.config'));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
import { GenericFtrProviderContext } from '@kbn/test';
|
||||||
import { pageObjects } from '../functional/page_objects';
|
import { pageObjects } from '../functional/page_objects';
|
||||||
import { services } from './services';
|
import { services } from './services';
|
||||||
|
|
||||||
|
|
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