mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.7`: - [[ML] Update plugin readme files and test report names (#151729)](https://github.com/elastic/kibana/pull/151729) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"robert.oskamp@elastic.co"},"sourceCommit":{"committedDate":"2023-02-24T08:59:59Z","message":"[ML] Update plugin readme files and test report names (#151729)\n\nThis PR updates the ML and Transform plugin `readme.md` files as well as\r\nthe API integration junit report names for ML, Transform and AIOps after\r\nrecent test config splits.","sha":"499c37968d636592cd140afc77be5c6d4731518b","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","backport:prev-minor","v8.7.0","v8.8.0"],"number":151729,"url":"https://github.com/elastic/kibana/pull/151729","mergeCommit":{"message":"[ML] Update plugin readme files and test report names (#151729)\n\nThis PR updates the ML and Transform plugin `readme.md` files as well as\r\nthe API integration junit report names for ML, Transform and AIOps after\r\nrecent test config splits.","sha":"499c37968d636592cd140afc77be5c6d4731518b"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151729","number":151729,"mergeCommit":{"message":"[ML] Update plugin readme files and test report names (#151729)\n\nThis PR updates the ML and Transform plugin `readme.md` files as well as\r\nthe API integration junit report names for ML, Transform and AIOps after\r\nrecent test config splits.","sha":"499c37968d636592cd140afc77be5c6d4731518b"}}]}] BACKPORT--> Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
This commit is contained in:
parent
708e6056f4
commit
4b211f17ad
5 changed files with 45 additions and 23 deletions
|
@ -127,20 +127,21 @@ With PATH_TO_CONFIG and other options as follows.
|
|||
short tests | `test/functional/apps/ml/short_tests/config.ts`
|
||||
|
||||
The `short tests` group contains tests for page navigation, model management,
|
||||
feature controls, settings and embeddables. Test files for each group are located
|
||||
feature controls, settings and notifications. Test files for each group are located
|
||||
in the directory of their configuration file.
|
||||
|
||||
1. Functional UI tests with `Basic` license:
|
||||
|
||||
- PATH_TO_CONFIG: `test/functional_basic/config.ts`
|
||||
- Add `--include-tag ml` to the test runner command
|
||||
- Tests are located in `x-pack/test/functional_basic/apps/ml`
|
||||
Group | PATH_TO_CONFIG
|
||||
----- | --------------
|
||||
permissions | `test/functional_basic/apps/ml/permissions/config.ts`
|
||||
data visualizer group1 (file data viz) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts`
|
||||
data visualizer group2 (index data viz) | `test/functional_basic/apps/ml/data_visualizer/group2/config.ts`
|
||||
data visualizer group3 (actions panel, discover grid) | `test/functional_basic/apps/ml/data_visualizer/group3/config.ts`
|
||||
|
||||
1. API integration tests with `Trial` license:
|
||||
|
||||
- PATH_TO_CONFIG: `test/api_integration/config.ts`
|
||||
- Add `--include-tag ml` to the test runner command
|
||||
- Tests are located in `x-pack/test/api_integration/apis/ml`
|
||||
- PATH_TO_CONFIG: `test/api_integration/apis/ml/config.ts`
|
||||
|
||||
1. Accessibility tests:
|
||||
|
||||
|
|
|
@ -104,33 +104,45 @@ Run the following commands from the `x-pack` directory and use separate terminal
|
|||
for test server and test runner. The test server command starts an Elasticsearch
|
||||
and Kibana instance that the tests will be run against.
|
||||
|
||||
1. Functional UI tests with `Trial` license (default config):
|
||||
Functional tests are broken up into independent groups with their own configuration.
|
||||
Test server and runner need to be pointed to the configuration to run. The basic
|
||||
commands are
|
||||
|
||||
node scripts/functional_tests_server.js --config test/functional/apps/transform/config.ts
|
||||
node scripts/functional_test_runner.js --config test/functional/apps/transform/config.ts
|
||||
node scripts/functional_tests_server.js --config PATH_TO_CONFIG
|
||||
node scripts/functional_test_runner.js --config PATH_TO_CONFIG
|
||||
|
||||
Transform functional `Trial` license tests are located in `x-pack/test/functional/apps/transform`.
|
||||
With PATH_TO_CONFIG and other options as follows.
|
||||
|
||||
1. Functional UI tests with `Basic` license:
|
||||
1. Functional UI tests with `Trial` license:
|
||||
|
||||
node scripts/functional_tests_server.js --config test/functional_basic/config.ts
|
||||
node scripts/functional_test_runner.js --config test/functional_basic/config.ts --include-tag transform
|
||||
Group | PATH_TO_CONFIG
|
||||
----- | --------------
|
||||
creation - index pattern | `test/functional/apps/transform/creation/index_pattern/config.ts`
|
||||
creation - runtime mappings, saved searches | `test/functional/apps/transform/creation/runtime_mappings_saved_search/config.ts`
|
||||
edit, clone | `test/functional/apps/transform/edit_clone/config.ts`
|
||||
feature controls | `test/functional/apps/transform/feature_controls/config.ts`
|
||||
permissions | `test/functional/apps/transform/permissions/config.ts`
|
||||
start, reset, delete | `test/functional/apps/transform/start_reset_delete/config.ts`
|
||||
|
||||
Transform functional `Basic` license tests are located in `x-pack/test/functional_basic/apps/transform`.
|
||||
1. Functional UI tests with `Basic` license:
|
||||
|
||||
Group | PATH_TO_CONFIG
|
||||
----- | --------------
|
||||
creation - index pattern | `test/functional_basic/apps/transform/creation/index_pattern/config.ts`
|
||||
creation - runtime mappings, saved searches | `test/functional_basic/apps/transform/creation/runtime_mappings_saved_search/config.ts`
|
||||
edit, clone | `test/functional_basic/apps/transform/edit_clone/config.ts`
|
||||
feature controls | `test/functional_basic/apps/transform/feature_controls/config.ts`
|
||||
permissions | `test/functional_basic/apps/transform/permissions/config.ts`
|
||||
start, reset, delete | `test/functional_basic/apps/transform/start_reset_delete/config.ts`
|
||||
|
||||
1. API integration tests with `Trial` license:
|
||||
|
||||
node scripts/functional_tests_server.js --config test/api_integration/config.ts
|
||||
node scripts/functional_test_runner.js --config test/api_integration/config.ts --include-tag transform
|
||||
|
||||
Transform API integration `Trial` license tests are located in `x-pack/test/api_integration/apis/transform`.
|
||||
- PATH_TO_CONFIG: `test/api_integration/apis/transform/config.ts`
|
||||
|
||||
1. API integration tests with `Basic` license:
|
||||
|
||||
node scripts/functional_tests_server.js --config test/api_integration_basic/config.ts
|
||||
node scripts/functional_test_runner.js --config test/api_integration_basic/config.ts --include-tag transform
|
||||
|
||||
Transform API integration `Basic` license tests are located in `x-pack/test/api_integration_basic/apis/ml`.
|
||||
- PATH_TO_CONFIG: `test/api_integration_basic/config.ts`
|
||||
- Add `--include-tag transform` to the test runner command
|
||||
|
||||
1. Accessibility tests:
|
||||
|
||||
|
|
|
@ -13,5 +13,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
return {
|
||||
...baseIntegrationTestsConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'X-Pack API Integration Tests - aiops',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,5 +13,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
return {
|
||||
...baseIntegrationTestsConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - ml',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,5 +13,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
return {
|
||||
...baseIntegrationTestsConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests - transform',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue