kibana/x-pack/plugins/beats_management
Larry Gregory 5cc480a375
Improve consistency for display of management items (#92694)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 09:54:43 -05:00
..
common Don't register management section if capabilities are not granted (#90782) 2021-02-10 14:10:28 -05:00
public Improve consistency for display of management items (#92694) 2021-03-02 09:54:43 -05:00
scripts Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
server [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
types Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
jest.config.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
kibana.json Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
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>