kibana/x-pack/plugins/beats_management
Mikhail Shustov ad7866592e
[7.x] Revert "TS Incremental build exclude test files (#95610)" (#96223) (#96281)
* Revert "TS Incremental build exclude test files (#95610)" (#96223)

This reverts commit b6e582c53e.

* code: use base tsconfig
2021-04-06 05:52:22 -04:00
..
common
public
scripts
server
types
jest.config.js
kibana.json
readme.md
tsconfig.json [7.x] Revert "TS Incremental build exclude test files (#95610)" (#96223) (#96281) 2021-04-06 05:52:22 -04: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>