kibana/x-pack/plugins/beats_management
Mikhail Shustov b3a9754394
[Core] Explicit typings for request handler context (#88718)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
2021-01-21 15:20:22 +01:00
..
common
public [DX] migrate core xpack plugins to tsproject ref (#88676) 2021-01-20 16:40:13 +01:00
scripts
server [Core] Explicit typings for request handler context (#88718) 2021-01-21 15:20:22 +01:00
types
jest.config.js Jest multi-project configuration (#77894) 2020-12-02 11:42:23 -08:00
kibana.json
readme.md test:jest improvements to better support our monorepo (#84848) 2020-12-14 14:07:50 -08:00
tsconfig.json [DX] migrate core xpack plugins to tsproject ref (#88676) 2021-01-20 16:40:13 +01:00

Beats CM

Notes: Failure to have auth enabled in Kibana will make for a broken UI. UI-based errors not yet in place

Testing

Unit tests

Run Jest tests:

Documentation: https://www.elastic.co/guide/en/kibana/current/development-tests.html#_unit_testing

yarn test:jest x-pack/plugins/beats --watch

API tests

In one shell, from ~/kibana/x-pack: node scripts/functional_tests-server.js

In another shell, from ~kibana/x-pack: node ../scripts/functional_test_runner.js --config test/api_integration/config.ts.

Manual e2e testing

  • Run this command to fake an enrolling beat (from beats_management dir)
node scripts/enroll.js <enrollment token>
  • Run a command to setup a fake large-scale deployment Note: ts-node is required to be installed gloably from NPM/Yarn for this action
ts-node scripts/fake_env.ts <KIBANA BASE PATH> <# of beats> <# of tags per beat> <# of congifs per tag>