kibana/x-pack/plugins/beats_management
Pierre Gayvallet 890fc31dff
Beats Management plugin: migrate server-side code (#70930)
* move all the legacy codebase to KP plugin

* fix imports

* add empty handler context & rename routes folder

* start migrating routes

* migrate rest of the routes

* migrate adapters

* remove beats from legacy xpack plugin

* use nullable + replace response.custom

* fix wrapRouteWithSecurity, remove incorrect header validation

* remove comment

* updating generated plugin list

* fix typos in doc

* adapt readme too.

* remove old commented routes from route files

* remove eslint disabling

* use camel case for plugin id

* update generated doc

Co-authored-by: Josh Dover <me@joshdover.com>
2020-08-18 12:00:39 +02:00
..
common Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02:00
public Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02:00
scripts Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02:00
server Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02:00
types Beats Management: Pre-migration cleanup (#69155) 2020-06-18 11:32:13 +02:00
kibana.json Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02:00
readme.md Beats Management plugin: migrate server-side code (#70930) 2020-08-18 12:00:39 +02: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

From ~/kibana/x-pack, run node scripts/jest.js 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>