Skip to content

Latest commit

 

History

History

centreon-tests

centreon-tests

This repository contain tests for centreon broker and engine

Getting Started

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

Broker

Start and stop test

  • start/stop centreon broker
  • start and stop multiple times

Bad credentials

  • 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

Centengine

  • start/stop centreon centgine
  • start/stop centreon centengine multiple times

Coding style

We use tsfmt to format the code.

To use it:

npm install typescript-formatter node_modules/.bin/tsfmt -r

You are done.