[8.6] [ftr] split 'x-pack/test/functional_basic/config.ts' into small config files (#149617) (#150033)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[ftr] split 'x-pack/test/functional_basic/config.ts' into small
config files (#149617)](https://github.com/elastic/kibana/pull/149617)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2023-01-31T16:48:56Z","message":"[ftr]
split 'x-pack/test/functional_basic/config.ts' into small config files
(#149617)\n\n## Summary\r\n\r\nThis PR attempts to fix config duration
time warning\r\n\r\n```\r\nThe 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.\r\n\r\nx-pack/test/functional_basic/config.ts: 38.8
minutes\r\n```\r\n\r\n<img width=\"1188\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/10977896/214912243-800a1c80-13fa-406b-93dd-0f5ab208cda9.png\">\r\n\r\n\r\nPR
initially splits original test suite into 3 config files based
on\r\narea: permission, data visualizer and transform.\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s** (left for later)\r\n-
x-pack/test/functional_basic/apps/transform/config.ts duration:
**18m\r\n14s** -> let's split in 5 configs\r\n-
x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s\r\n\r\n\r\n2nd split
round:\r\n-\r\nx-pack/test/functional_basic/apps/transform/feature_controls/config.ts.\r\nduration:
2m 4s\r\n- x-pack/test/functional_basic/apps/transform/group1/config.ts
duration:\r\n**8m 16s** -> let's split in 2 configs\r\n-
x-pack/test/functional_basic/apps/transform/group2/config.ts.\r\nduration:
5m 20s\r\n-
x-pack/test/functional_basic/apps/transform/group3/config.ts.\r\nduration:
5m 12s\r\n- x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s -> let's split in 3 configs (1 test file
each)\r\n\r\n3rd split round:\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group1/config.ts.\r\nduration:
3m 11s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group2/config.ts\r\nduration:
3m 42s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group3/config.ts\r\nduration
2m 14s\r\n- x-pack/test/functional_basic/apps/transform/group4/config.ts
duration:\r\n4m 43s\r\n\r\nlets split into 3 configs\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s**\r\n\r\n4th split round:\r\n\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group1/config.ts\r\nduration:
4m 42s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group2/config.ts\r\nduration:
9m 27s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group3/config.ts\r\nduration:
7m 39s\r\n\r\n\r\n[Build
time\r\n](https://buildkite.com/elastic/kibana-pull-request/builds/103355)
is\r\n49m 26sec (55 FTR groups)\r\n\r\nCurrently on-merge pipeline
for\r\n[main](https://buildkite.com/elastic/kibana-on-merge/builds?branch=main)\r\ntakes
around
1h","sha":"f33568f74e8269c57556d4f4a1651b8a96c395f3","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.7.0","v8.6.2"],"number":149617,"url":"https://github.com/elastic/kibana/pull/149617","mergeCommit":{"message":"[ftr]
split 'x-pack/test/functional_basic/config.ts' into small config files
(#149617)\n\n## Summary\r\n\r\nThis PR attempts to fix config duration
time warning\r\n\r\n```\r\nThe 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.\r\n\r\nx-pack/test/functional_basic/config.ts: 38.8
minutes\r\n```\r\n\r\n<img width=\"1188\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/10977896/214912243-800a1c80-13fa-406b-93dd-0f5ab208cda9.png\">\r\n\r\n\r\nPR
initially splits original test suite into 3 config files based
on\r\narea: permission, data visualizer and transform.\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s** (left for later)\r\n-
x-pack/test/functional_basic/apps/transform/config.ts duration:
**18m\r\n14s** -> let's split in 5 configs\r\n-
x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s\r\n\r\n\r\n2nd split
round:\r\n-\r\nx-pack/test/functional_basic/apps/transform/feature_controls/config.ts.\r\nduration:
2m 4s\r\n- x-pack/test/functional_basic/apps/transform/group1/config.ts
duration:\r\n**8m 16s** -> let's split in 2 configs\r\n-
x-pack/test/functional_basic/apps/transform/group2/config.ts.\r\nduration:
5m 20s\r\n-
x-pack/test/functional_basic/apps/transform/group3/config.ts.\r\nduration:
5m 12s\r\n- x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s -> let's split in 3 configs (1 test file
each)\r\n\r\n3rd split round:\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group1/config.ts.\r\nduration:
3m 11s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group2/config.ts\r\nduration:
3m 42s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group3/config.ts\r\nduration
2m 14s\r\n- x-pack/test/functional_basic/apps/transform/group4/config.ts
duration:\r\n4m 43s\r\n\r\nlets split into 3 configs\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s**\r\n\r\n4th split round:\r\n\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group1/config.ts\r\nduration:
4m 42s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group2/config.ts\r\nduration:
9m 27s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group3/config.ts\r\nduration:
7m 39s\r\n\r\n\r\n[Build
time\r\n](https://buildkite.com/elastic/kibana-pull-request/builds/103355)
is\r\n49m 26sec (55 FTR groups)\r\n\r\nCurrently on-merge pipeline
for\r\n[main](https://buildkite.com/elastic/kibana-on-merge/builds?branch=main)\r\ntakes
around
1h","sha":"f33568f74e8269c57556d4f4a1651b8a96c395f3"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149617","number":149617,"mergeCommit":{"message":"[ftr]
split 'x-pack/test/functional_basic/config.ts' into small config files
(#149617)\n\n## Summary\r\n\r\nThis PR attempts to fix config duration
time warning\r\n\r\n```\r\nThe 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.\r\n\r\nx-pack/test/functional_basic/config.ts: 38.8
minutes\r\n```\r\n\r\n<img width=\"1188\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/10977896/214912243-800a1c80-13fa-406b-93dd-0f5ab208cda9.png\">\r\n\r\n\r\nPR
initially splits original test suite into 3 config files based
on\r\narea: permission, data visualizer and transform.\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s** (left for later)\r\n-
x-pack/test/functional_basic/apps/transform/config.ts duration:
**18m\r\n14s** -> let's split in 5 configs\r\n-
x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s\r\n\r\n\r\n2nd split
round:\r\n-\r\nx-pack/test/functional_basic/apps/transform/feature_controls/config.ts.\r\nduration:
2m 4s\r\n- x-pack/test/functional_basic/apps/transform/group1/config.ts
duration:\r\n**8m 16s** -> let's split in 2 configs\r\n-
x-pack/test/functional_basic/apps/transform/group2/config.ts.\r\nduration:
5m 20s\r\n-
x-pack/test/functional_basic/apps/transform/group3/config.ts.\r\nduration:
5m 12s\r\n- x-pack/test/functional_basic/apps/ml/permissions/config.ts.
duration:\r\n5m 10s -> let's split in 3 configs (1 test file
each)\r\n\r\n3rd split round:\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group1/config.ts.\r\nduration:
3m 11s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group2/config.ts\r\nduration:
3m 42s\r\n-
x-pack/test/functional_basic/apps/ml/permissions/group3/config.ts\r\nduration
2m 14s\r\n- x-pack/test/functional_basic/apps/transform/group4/config.ts
duration:\r\n4m 43s\r\n\r\nlets split into 3 configs\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/config.ts\r\nduration:
**19m 24s**\r\n\r\n4th split round:\r\n\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group1/config.ts\r\nduration:
4m 42s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group2/config.ts\r\nduration:
9m 27s\r\n-
x-pack/test/functional_basic/apps/ml/data_visualizer/group3/config.ts\r\nduration:
7m 39s\r\n\r\n\r\n[Build
time\r\n](https://buildkite.com/elastic/kibana-pull-request/builds/103355)
is\r\n49m 26sec (55 FTR groups)\r\n\r\nCurrently on-merge pipeline
for\r\n[main](https://buildkite.com/elastic/kibana-on-merge/builds?branch=main)\r\ntakes
around
1h","sha":"f33568f74e8269c57556d4f4a1651b8a96c395f3"}},{"branch":"8.6","label":"v8.6.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
This commit is contained in:
Dzmitry Lemechko 2023-02-01 14:20:32 +01:00 committed by GitHub
parent 97c50cbc8a
commit 5d8aa894ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 802 additions and 110 deletions

View file

@ -174,7 +174,16 @@ enabled:
- x-pack/test/examples/config.ts
- x-pack/test/fleet_api_integration/config.ts
- x-pack/test/fleet_functional/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
@ -228,7 +237,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

View 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 - creation - index pattern',
},
};
}

View file

@ -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 canvasElement = getService('canvasElement');

View file

@ -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'));
});
}

View file

@ -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',
},
};
}

View file

@ -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');

View file

@ -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');

View 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 - 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'));
});
}

View file

@ -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';

View 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',
},
};
}

View file

@ -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');

View 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'));
});
}

View 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 - feature controls',
},
};
}

View file

@ -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'));
});
}

View file

@ -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;

View file

@ -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',
},
};
}

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { getPivotTransformConfig } from '..';
import { getPivotTransformConfig } from '../helpers';
import { FtrProviderContext } from '../../../ftr_provider_context';

View file

@ -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'));
});

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { getPivotTransformConfig } from '..';
import { getPivotTransformConfig } from '../helpers';
import { FtrProviderContext } from '../../../ftr_provider_context';

View 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 - start reset & delete',
},
};
}

View file

@ -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');

View file

@ -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'));
});
}

View file

@ -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');

View file

@ -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');

View file

@ -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',
},
};
}

View 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 - data visualizer - group1',
},
};
}

View file

@ -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')
);
});
}

View 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 - data visualizer - group2',
},
};
}

View file

@ -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')
);
});
}

View 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 - data visualizer - group3',
},
};
}

View file

@ -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'));
});
}

View file

@ -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');

View file

@ -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'));
});
}

View 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',
},
};
}

View file

@ -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'));

View 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',
},
};
}

View file

@ -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',
},
};
}

View file

@ -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')
);
});
}

View file

@ -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',
},
};
}

View file

@ -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'
)
);
});
}

View 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 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',
},
};
}

View file

@ -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'));
});
}

View 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 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',
},
};
}

View file

@ -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'));
});
}

View 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 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',
},
};
}

View file

@ -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'));
});
}

View file

@ -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',
},
};
}

View file

@ -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'));
});
}