mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ftr] split 'x-pack/test/functional_basic/config.ts' into small config files (#149617)
## Summary This PR attempts to fix config duration time warning ``` The following "Functional Tests" configs have durations that exceed the maximum amount of time desired for a single CI job. This is not an error, and if you don't own any of these configs then you can ignore this warning.If you own any of these configs please split them up ASAP and ask Operations if you have questions about how to do that. x-pack/test/functional_basic/config.ts: 38.8 minutes ``` <img width="1188" alt="image" src="https://user-images.githubusercontent.com/10977896/214912243-800a1c80-13fa-406b-93dd-0f5ab208cda9.png"> PR initially splits original test suite into 3 config files based on area: permission, data visualizer and transform. - x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts duration: **19m 24s** (left for later) - x-pack/test/functional_basic/apps/transform/config.ts duration: **18m 14s** -> let's split in 5 configs - x-pack/test/functional_basic/apps/ml/permissions/config.ts. duration: 5m 10s 2nd split round: - x-pack/test/functional_basic/apps/transform/feature_controls/config.ts. duration: 2m 4s - x-pack/test/functional_basic/apps/transform/group1/config.ts duration: **8m 16s** -> let's split in 2 configs - x-pack/test/functional_basic/apps/transform/group2/config.ts. duration: 5m 20s - x-pack/test/functional_basic/apps/transform/group3/config.ts. duration: 5m 12s - x-pack/test/functional_basic/apps/ml/permissions/config.ts. duration: 5m 10s -> let's split in 3 configs (1 test file each) 3rd split round: - x-pack/test/functional_basic/apps/ml/permissions/group1/config.ts. duration: 3m 11s - x-pack/test/functional_basic/apps/ml/permissions/group2/config.ts duration: 3m 42s - x-pack/test/functional_basic/apps/ml/permissions/group3/config.ts duration 2m 14s - x-pack/test/functional_basic/apps/transform/group4/config.ts duration: 4m 43s lets split into 3 configs - x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts duration: **19m 24s** 4th split round: - x-pack/test/functional_basic/apps/ml/data_visualizer/group1/config.ts duration: 4m 42s - x-pack/test/functional_basic/apps/ml/data_visualizer/group2/config.ts duration: 9m 27s - x-pack/test/functional_basic/apps/ml/data_visualizer/group3/config.ts duration: 7m 39s [Build time ](https://buildkite.com/elastic/kibana-pull-request/builds/103355) is 49m 26sec (55 FTR groups) Currently on-merge pipeline for [main](https://buildkite.com/elastic/kibana-on-merge/builds?branch=main) takes around 1h
This commit is contained in:
parent
fc4d90dd21
commit
f33568f74e
48 changed files with 802 additions and 110 deletions
|
@ -161,7 +161,16 @@ enabled:
|
|||
- x-pack/test/fleet_api_integration/config.ts
|
||||
- x-pack/test/fleet_functional/config.ts
|
||||
- x-pack/test/ftr_apis/security_and_spaces/config.ts
|
||||
- x-pack/test/functional_basic/config.ts
|
||||
- x-pack/test/functional_basic/apps/ml/permissions/config.ts
|
||||
- x-pack/test/functional_basic/apps/ml/data_visualizer/group1/config.ts
|
||||
- x-pack/test/functional_basic/apps/ml/data_visualizer/group2/config.ts
|
||||
- x-pack/test/functional_basic/apps/ml/data_visualizer/group3/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/creation/index_pattern/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/start_reset_delete/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/edit_clone/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/creation/runtime_mappings_saved_search/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/permissions/config.ts
|
||||
- x-pack/test/functional_basic/apps/transform/feature_controls/config.ts
|
||||
- x-pack/test/functional_cors/config.ts
|
||||
- x-pack/test/functional_embedded/config.ts
|
||||
- x-pack/test/functional_enterprise_search/without_host_configured.config.ts
|
||||
|
@ -216,7 +225,12 @@ enabled:
|
|||
- x-pack/test/functional/apps/snapshot_restore/config.ts
|
||||
- x-pack/test/functional/apps/spaces/config.ts
|
||||
- x-pack/test/functional/apps/status_page/config.ts
|
||||
- x-pack/test/functional/apps/transform/config.ts
|
||||
- x-pack/test/functional/apps/transform/creation/index_pattern/config.ts
|
||||
- x-pack/test/functional/apps/transform/creation/runtime_mappings_saved_search/config.ts
|
||||
- x-pack/test/functional/apps/transform/start_reset_delete/config.ts
|
||||
- x-pack/test/functional/apps/transform/edit_clone/config.ts
|
||||
- x-pack/test/functional/apps/transform/permissions/config.ts
|
||||
- x-pack/test/functional/apps/transform/feature_controls/config.ts
|
||||
- x-pack/test/functional/apps/upgrade_assistant/config.ts
|
||||
- x-pack/test/functional/apps/uptime/config.ts
|
||||
- x-pack/test/functional/apps/visualize/config.ts
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform - creation - index pattern',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -7,14 +7,14 @@
|
|||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
import {
|
||||
GroupByEntry,
|
||||
isLatestTransformTestData,
|
||||
isPivotTransformTestData,
|
||||
LatestTransformTestData,
|
||||
PivotTransformTestData,
|
||||
} from '.';
|
||||
} from '../../helpers';
|
||||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const canvasElement = getService('canvasElement');
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - creation - index pattern', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./creation_index_pattern'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName:
|
||||
'Chrome X-Pack UI Functional Tests - transform - creation - runtime mappings & saved search',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
import type { HistogramCharts } from '../../services/transform/wizard';
|
||||
import type { HistogramCharts } from '../../../../services/transform/wizard';
|
||||
|
||||
import {
|
||||
GroupByEntry,
|
||||
|
@ -17,7 +17,7 @@ import {
|
|||
isPivotTransformTestData,
|
||||
LatestTransformTestData,
|
||||
PivotTransformTestData,
|
||||
} from '.';
|
||||
} from '../../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -7,14 +7,14 @@
|
|||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
import {
|
||||
GroupByEntry,
|
||||
isLatestTransformTestData,
|
||||
isPivotTransformTestData,
|
||||
LatestTransformTestData,
|
||||
PivotTransformTestData,
|
||||
} from '.';
|
||||
} from '../../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - creation - runtime mappings & saved search', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./creation_saved_search'));
|
||||
loadTestFile(require.resolve('./creation_runtime_mappings'));
|
||||
});
|
||||
}
|
|
@ -10,8 +10,8 @@ import {
|
|||
isPivotTransform,
|
||||
TransformPivotConfig,
|
||||
} from '@kbn/transform-plugin/common/types/transform';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getLatestTransformConfig } from '.';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { getLatestTransformConfig } from '../helpers';
|
||||
|
||||
interface TestData {
|
||||
type: 'pivot' | 'latest';
|
20
x-pack/test/functional/apps/transform/edit_clone/config.ts
Normal file
20
x-pack/test/functional/apps/transform/edit_clone/config.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform - edit & clone',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -11,8 +11,8 @@ import type {
|
|||
TransformPivotConfig,
|
||||
} from '@kbn/transform-plugin/common/types/transform';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '.';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
38
x-pack/test/functional/apps/transform/edit_clone/index.ts
Normal file
38
x-pack/test/functional/apps/transform/edit_clone/index.ts
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - edit & clone', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./cloning'));
|
||||
loadTestFile(require.resolve('./editing'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform - feature controls',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -7,8 +7,31 @@
|
|||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('feature controls', function () {
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - feature controls', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./transform_security'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -9,45 +9,7 @@ import {
|
|||
TransformLatestConfig,
|
||||
TransformPivotConfig,
|
||||
} from '@kbn/transform-plugin/common/types/transform';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./permissions'));
|
||||
loadTestFile(require.resolve('./creation_index_pattern'));
|
||||
loadTestFile(require.resolve('./creation_saved_search'));
|
||||
loadTestFile(require.resolve('./creation_runtime_mappings'));
|
||||
loadTestFile(require.resolve('./cloning'));
|
||||
loadTestFile(require.resolve('./editing'));
|
||||
loadTestFile(require.resolve('./feature_controls'));
|
||||
loadTestFile(require.resolve('./deleting'));
|
||||
loadTestFile(require.resolve('./resetting'));
|
||||
loadTestFile(require.resolve('./starting'));
|
||||
});
|
||||
}
|
||||
export interface ComboboxOption {
|
||||
identifier: string;
|
||||
label: string;
|
|
@ -8,13 +8,13 @@
|
|||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../config.base.js'));
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - Transform',
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform - permissions',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { getPivotTransformConfig } from '..';
|
||||
import { getPivotTransformConfig } from '../helpers';
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
|
|
|
@ -7,8 +7,31 @@
|
|||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('permissions', function () {
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - permissions', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./full_transform_access'));
|
||||
loadTestFile(require.resolve('./read_transform_access'));
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { getPivotTransformConfig } from '..';
|
||||
import { getPivotTransformConfig } from '../helpers';
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform - start reset & delete',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '.';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const transform = getService('transform');
|
||||
|
||||
describe('transform - start reset & delete', function () {
|
||||
this.tags('transform');
|
||||
|
||||
before(async () => {
|
||||
await transform.securityCommon.createTransformRoles();
|
||||
await transform.securityCommon.createTransformUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
// NOTE: Logout needs to happen before anything else to avoid flaky behavior
|
||||
await transform.securityUI.logout();
|
||||
|
||||
await transform.securityCommon.cleanTransformUsers();
|
||||
await transform.securityCommon.cleanTransformRoles();
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
|
||||
await transform.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./deleting'));
|
||||
loadTestFile(require.resolve('./resetting'));
|
||||
loadTestFile(require.resolve('./starting'));
|
||||
});
|
||||
}
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '.';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -6,8 +6,8 @@
|
|||
*/
|
||||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '.';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { getLatestTransformConfig, getPivotTransformConfig } from '../helpers';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -9,7 +9,7 @@ import { FtrConfigProviderContext } from '@kbn/test';
|
|||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const xpackFunctionalConfig = await readConfigFile(
|
||||
require.resolve('../functional/config.base.js')
|
||||
require.resolve('../../../functional/config.base.js')
|
||||
);
|
||||
|
||||
return {
|
||||
|
@ -24,10 +24,9 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
'xpack.security.authc.api_key.enabled=true',
|
||||
],
|
||||
},
|
||||
testFiles: [require.resolve('./apps')],
|
||||
junit: {
|
||||
...xpackFunctionalConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License',
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - ml',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const baseConfig = await readConfigFile(require.resolve('../../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the ml/config.base.ts
|
||||
...baseConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...baseConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - ml - data visualizer - group1',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -5,13 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const ml = getService('ml');
|
||||
|
||||
describe('machine learning basic license', function () {
|
||||
describe('machine learning basic license - data visualizer - group 1', function () {
|
||||
this.tags(['skipFirefox', 'ml']);
|
||||
|
||||
before(async () => {
|
||||
|
@ -34,7 +34,9 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|||
await ml.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./permissions'));
|
||||
loadTestFile(require.resolve('./data_visualizer'));
|
||||
// The file data visualizer should work the same as with a trial license
|
||||
loadTestFile(
|
||||
require.resolve('../../../../../functional/apps/ml/data_visualizer/file_data_visualizer')
|
||||
);
|
||||
});
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const baseConfig = await readConfigFile(require.resolve('../../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the ml/config.base.ts
|
||||
...baseConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...baseConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - ml - data visualizer - group2',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const ml = getService('ml');
|
||||
|
||||
describe('machine learning basic license - data visualizer - group 2', function () {
|
||||
this.tags(['skipFirefox', 'ml']);
|
||||
|
||||
before(async () => {
|
||||
await ml.securityCommon.createMlRoles();
|
||||
await ml.securityCommon.createMlUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await ml.securityCommon.cleanMlUsers();
|
||||
await ml.securityCommon.cleanMlRoles();
|
||||
|
||||
await ml.testResources.deleteSavedSearches();
|
||||
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_farequote');
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_module_sample_ecommerce');
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce');
|
||||
|
||||
await ml.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
// The data visualizer should work the same as with a trial license, except the missing create actions
|
||||
// That's why the 'basic' version of 'index_data_visualizer_actions_panel' is loaded here
|
||||
loadTestFile(
|
||||
require.resolve('../../../../../functional/apps/ml/data_visualizer/index_data_visualizer')
|
||||
);
|
||||
});
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const baseConfig = await readConfigFile(require.resolve('../../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the ml/config.base.ts
|
||||
...baseConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...baseConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - ml - data visualizer - group3',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const ml = getService('ml');
|
||||
|
||||
describe('machine learning basic license - data visualizer - group 3', function () {
|
||||
this.tags(['skipFirefox', 'ml']);
|
||||
|
||||
before(async () => {
|
||||
await ml.securityCommon.createMlRoles();
|
||||
await ml.securityCommon.createMlUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await ml.securityCommon.cleanMlUsers();
|
||||
await ml.securityCommon.cleanMlRoles();
|
||||
|
||||
await ml.testResources.deleteSavedSearches();
|
||||
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_farequote');
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_module_sample_ecommerce');
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce');
|
||||
|
||||
await ml.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
// The data visualizer should work the same as with a trial license, except the missing create actions
|
||||
// That's why the 'basic' version of 'index_data_visualizer_actions_panel' is loaded here
|
||||
loadTestFile(
|
||||
require.resolve(
|
||||
'../../../../../functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover'
|
||||
)
|
||||
);
|
||||
loadTestFile(require.resolve('./index_data_visualizer_actions_panel'));
|
||||
});
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('data visualizer', function () {
|
||||
// The file data visualizer should work the same as with a trial license
|
||||
loadTestFile(
|
||||
require.resolve('../../../../functional/apps/ml/data_visualizer/file_data_visualizer')
|
||||
);
|
||||
|
||||
// The data visualizer should work the same as with a trial license, except the missing create actions
|
||||
// That's why the 'basic' version of 'index_data_visualizer_actions_panel' is loaded here
|
||||
loadTestFile(
|
||||
require.resolve('../../../../functional/apps/ml/data_visualizer/index_data_visualizer')
|
||||
);
|
||||
loadTestFile(
|
||||
require.resolve(
|
||||
'../../../../functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_discover'
|
||||
)
|
||||
);
|
||||
loadTestFile(require.resolve('./index_data_visualizer_actions_panel'));
|
||||
});
|
||||
}
|
22
x-pack/test/functional_basic/apps/ml/permissions/config.ts
Normal file
22
x-pack/test/functional_basic/apps/ml/permissions/config.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const baseConfig = await readConfigFile(require.resolve('../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the ml/config.base.ts
|
||||
...baseConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...baseConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - ml - permissions',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -7,8 +7,33 @@
|
|||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('permissions', function () {
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const ml = getService('ml');
|
||||
|
||||
describe('machine learning basic license - permissions', function () {
|
||||
this.tags(['skipFirefox', 'ml']);
|
||||
|
||||
before(async () => {
|
||||
await ml.securityCommon.createMlRoles();
|
||||
await ml.securityCommon.createMlUsers();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await ml.securityCommon.cleanMlUsers();
|
||||
await ml.securityCommon.cleanMlRoles();
|
||||
|
||||
await ml.testResources.deleteSavedSearches();
|
||||
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_farequote');
|
||||
await ml.testResources.deleteIndexPatternByTitle('ft_module_sample_ecommerce');
|
||||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_sample_ecommerce');
|
||||
|
||||
await ml.testResources.resetKibanaTimeZone();
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./full_ml_access'));
|
||||
loadTestFile(require.resolve('./read_ml_access'));
|
||||
loadTestFile(require.resolve('./no_ml_access'));
|
||||
|
|
32
x-pack/test/functional_basic/apps/transform/config.base.ts
Normal file
32
x-pack/test/functional_basic/apps/transform/config.base.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const xpackFunctionalConfig = await readConfigFile(
|
||||
require.resolve('../../../functional/config.base.js')
|
||||
);
|
||||
|
||||
return {
|
||||
// default to the xpack functional config
|
||||
...xpackFunctionalConfig.getAll(),
|
||||
esTestCluster: {
|
||||
...xpackFunctionalConfig.get('esTestCluster'),
|
||||
license: 'basic',
|
||||
serverArgs: [
|
||||
'xpack.license.self_generated.type=basic',
|
||||
'xpack.security.enabled=true',
|
||||
'xpack.security.authc.api_key.enabled=true',
|
||||
],
|
||||
},
|
||||
junit: {
|
||||
...xpackFunctionalConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - transform',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName:
|
||||
'Chrome X-Pack UI Functional Tests Basic License - transform - creation - index_pattern',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(
|
||||
require.resolve('../../../../../functional/apps/transform/creation/index_pattern')
|
||||
);
|
||||
});
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName:
|
||||
'Chrome X-Pack UI Functional Tests Basic License - transform - creation - runtime mappings & saved search',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(
|
||||
require.resolve(
|
||||
'../../../../../functional/apps/transform/creation/runtime_mappings_saved_search'
|
||||
)
|
||||
);
|
||||
});
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - transform - edit & clone',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -5,13 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(require.resolve('../../../functional/apps/transform'));
|
||||
loadTestFile(require.resolve('../../../../functional/apps/transform/edit_clone'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - transform - feature controls',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(require.resolve('../../../../functional/apps/transform/feature_controls'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName: 'Chrome X-Pack UI Functional Tests Basic License - transform - permissions',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -5,11 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('apps', function () {
|
||||
loadTestFile(require.resolve('./ml'));
|
||||
loadTestFile(require.resolve('./transform'));
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(require.resolve('../../../../functional/apps/transform/permissions'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const transformConfig = await readConfigFile(require.resolve('../config.base.ts'));
|
||||
|
||||
return {
|
||||
// default to the transform/config.base.ts
|
||||
...transformConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
...transformConfig.get('junit'),
|
||||
reportName:
|
||||
'Chrome X-Pack UI Functional Tests Basic License - transform - start reset & delete',
|
||||
},
|
||||
};
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('transform basic license', function () {
|
||||
this.tags(['skipFirefox', 'transform']);
|
||||
|
||||
// The transform UI should work the same as with a trial license
|
||||
loadTestFile(require.resolve('../../../../functional/apps/transform/start_reset_delete'));
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue