Back to Wazuh

rsync Testing Tool

src/shared_modules/rsync/testtool/Readme.md

4.14.51.3 KB
Original Source

rsync Testing Tool

Index

  1. Purpose
  2. Architecture Diagram
  3. Compile Wazuh
  4. How to use the tool

Purpose

The rsync Testing Tool was created to test and validate the rsync module. This tool works as a black box where an user will be able execute it with different arguments and analyze the output data as desired.

Architecture Diagram

Compile Wazuh

In order to run unit tests on a specific wazuh target, the project needs to be built with the DEBUG and TEST options as shown below:

make deps RESOURCES_URL=file:///path/to/deps/
make TARGET=server|agent DEBUG=1 TEST=1

How to use the tool

In order to run the rsync_test_tool utility the following steps need to be accomplished:

./rsync_test_tool -u 100 -o ./output

Considering the example above all databases will be located in ./output folder and will be updated with random values every 100 milliseconds.

./rsync_test_tool -c config.json -i input.json -o ./output

Considering the example above all databases will be located in ./output folder and will configure dbsync/rsync according to config.json file and will exercise the libraries according to the inputs defined in input.json file.