kibana/x-pack/plugins/beats_management
Matt Apperson 8ff80cb589
[BeatsCM] Move API to new return format (#31660)
* add and assign types

* move error management to the lib vs each route. More DRY and easier to test

* move more endpoints to the new format

* fix result for not-yet-pages beats list

* refine more endpoints

* move more routes to new format

* UI now propperly connected to the API

* uodate tests and documenting testing in readme
2019-03-28 13:54:46 -04:00
..
common [BeatsCM] Move API to new return format (#31660) 2019-03-28 13:54:46 -04:00
public [BeatsCM] Move API to new return format (#31660) 2019-03-28 13:54:46 -04:00
scripts
server [BeatsCM] Move API to new return format (#31660) 2019-03-28 13:54:46 -04:00
types
index.ts
readme.md [BeatsCM] Move API to new return format (#31660) 2019-03-28 13:54:46 -04:00
tsconfig.json
wallaby.js

Beats CM

Notes: Falure 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.js.

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>