src/shared_modules/dbsync/testtool/Readme.md
The DBSync Testing Tool was created to test and validate the dbsync 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.
In order to run unit tests on a specific wazuh target, the project needs to be built either in release or debug mode.
make TARGET=server|agent <DEBUG=1>
In order to run the dbsync_test_tool utility the following steps need to be accomplished:
{
"db_name": "db_name",
"db_type": "1",
"host_type": "<0|1>",
"persistance": "",
"sql_statement":"sql"
}
Where:
./dbsync_test_tool -c config.json -a input1.json,input2.json,input3.json -o ./output