mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
SKA: Relocate "platform" packages that remain on /packages
(#208704)
## Summary The `/packages` folder at the root of the Kibana repository used to contain a lot of packages. In the context of SKA, they have been gradually moved to various locations: * `src/platform/packages` * `x-pack/platform/packages` * `src/core/packages` Currently, only `devOnly: true` packages are left in this folder. This comprises libraries for CLI scripts as well as testing utilities. With this PR, we are moving ~half of these packages under `src/platform/packages/(private|shared)/`. In particular, we are moving those packages that are being used from platform and/or solutions. Since they are `"devOnly": true`, this means they are ONLY used from tests, cypress tests, storybook configs, ./scripts/ folders inside some modules, or other non-prod-time logic. Nonetheless, they are effectively referenced from platform and/or solutions code, hence I decided they should be placed under `platform` folders. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
317580fdd5
commit
6a7c904f92
1447 changed files with 1128 additions and 1016 deletions
|
@ -19,11 +19,11 @@ This directory is excluded from the build and tools within it should help users
|
|||
|
||||
**`node scripts/functional_tests [--config test/functional/config.base.js --config test/api_integration/config.js]`**
|
||||
|
||||
Runs all the functional tests: selenium tests and api integration tests. List configs with multiple `--config` arguments. Uses the [@kbn/test](../packages/kbn-test) library to run Elasticsearch and Kibana servers and tests against those servers, for multiple server+test setups. In particular, calls out to [`runTests()`](../packages/kbn-test/src/functional_tests/run_tests/run_tests.ts). Can be run on a single config.
|
||||
Runs all the functional tests: selenium tests and api integration tests. List configs with multiple `--config` arguments. Uses the [@kbn/test](../src/platform/packages/shared/kbn-test) library to run Elasticsearch and Kibana servers and tests against those servers, for multiple server+test setups. In particular, calls out to [`runTests()`](../src/platform/packages/shared/kbn-test/src/functional_tests/run_tests/run_tests.ts). Can be run on a single config.
|
||||
|
||||
**`node scripts/functional_tests_server [--config test/functional/config.base.js]`**
|
||||
|
||||
Starts just the Elasticsearch and Kibana servers given a single config, i.e. via `--config test/functional/config.base.js` or `--config test/api_integration/config`. Allows the user to start just the servers with this script, and keep them running while running tests against these servers. The idea is that the same config file configures both Elasticsearch and Kibana servers. Uses the [`startServers()`](../packages/kbn-test/src/functional_tests/start_servers/start_servers.ts#L27-L89) method from [@kbn/test](../packages/kbn-test) library.
|
||||
Starts just the Elasticsearch and Kibana servers given a single config, i.e. via `--config test/functional/config.base.js` or `--config test/api_integration/config`. Allows the user to start just the servers with this script, and keep them running while running tests against these servers. The idea is that the same config file configures both Elasticsearch and Kibana servers. Uses the [`startServers()`](../src/platform/packages/shared/kbn-test/src/functional_tests/start_servers/start_servers.ts#L27-L89) method from [@kbn/test](../src/platform/packages/shared/kbn-test) library.
|
||||
|
||||
Example. Start servers _and_ run tests, separately, but using the same config:
|
||||
|
||||
|
@ -39,7 +39,7 @@ In another terminal:
|
|||
node scripts/functional_test_runner --config path/to/config
|
||||
```
|
||||
|
||||
For details on how the internal methods work, [read this readme](../packages/kbn-test/README.mdx).
|
||||
For details on how the internal methods work, [read this readme](../src/platform/packages/shared/kbn-test/README.mdx).
|
||||
|
||||
### ES archiver
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import { createFailError } from '@kbn/dev-cli-errors';
|
|||
import { run } from '@kbn/dev-cli-runner';
|
||||
import { REPO_ROOT } from '@kbn/repo-info';
|
||||
|
||||
const FLAGS_FILE = 'packages/kbn-test/src/jest/jest_flags.json';
|
||||
const FLAGS_FILE = 'src/platform/packages/shared/kbn-test/src/jest/jest_flags.json';
|
||||
|
||||
function readStdin() {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue