kibana/x-pack/test_serverless/shared/common
Yngrid Coello d8445ccab6
[Logs explorer] Using dockerized package registry in tests (#192064)
Closes https://github.com/elastic/kibana/issues/190343.

This PR aims to use a dockerized package registry version for testing.
In order to test it locally you have to set the value of
`FLEET_PACKAGE_REGISTRY_PORT` env var in your terminal, and you also
need to have a docker daemon running.

For example, you can open a terminal and start the server
```
  yarn test:ftr:server --config ./x-pack/test/functional/apps/observability_logs_explorer/config.ts
```
then open a new terminal set the var value and start the runner with the
specific test using this configuration
```
  export set FLEET_PACKAGE_REGISTRY_PORT=12345
  yarn test:ftr:runner --config ./x-pack/test/functional/apps/observability_logs_explorer/config.ts --include ./x-pack/test/functional/apps/observability_logs_explorer/data_source_selector
```
If you want to test again without the dockerized version, you should
remove the value of the var
```
  unset FLEET_PACKAGE_REGISTRY_PORT 
```
2024-09-06 05:49:44 -05:00
..
package_registry_config.yml [Logs explorer] Using dockerized package registry in tests (#192064) 2024-09-06 05:49:44 -05:00