This repository contain tests for centreon broker and engine
to run the tests you need to clone this repository into centreon vm or docker image, then you need to install npm dependencies
npm install
and to run tests, you can use the following commands
npm run test
npm run test -- src/ceentreon/start-stop.test.ts
- start/stop centreon broker
- start and stop multiple times
- should deny access when database user password is wrong
- should deny access when database user password is wrong for storage
- should deny access when database user password is wrong for sql
- should log error when database name is not correct
- should log error when mariadb server is stopped
- start/stop centreon centgine
- start/stop centreon centengine multiple times
We use tsfmt to format the code.
To use it:
npm install typescript-formatter
node_modules/.bin/tsfmt -r
You are done.