kibana/x-pack/plugins/beats_management
Kibana Machine 30062ec095
Improve consistency for display of management items (#92694) (#93239)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-03-02 12:10:55 -05:00
..
common [7.x] Don't register management section if capabilities are not granted (#90782) (#91007) 2021-02-10 16:00:28 -05:00
public Improve consistency for display of management items (#92694) (#93239) 2021-03-02 12:10:55 -05:00
scripts [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
server [7.x] [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) (#91892) 2021-02-18 17:17:02 -05:00
types [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
jest.config.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
kibana.json [7.x] Hide management sections based on cluster/index privileges (#67791) (#77345) 2020-09-14 14:33:17 -04:00
readme.md test:jest improvements to better support our monorepo (#84848) (#85880) 2020-12-15 09:11:51 -08:00
tsconfig.json [DX] migrate core xpack plugins to tsproject ref (#88676) (#88848) 2021-01-20 19:02:52 +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>