wazuh / wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
https://wazuh.com/
Other
10.78k stars 1.65k forks source link

Release 4.8.2 - RC 1 - C Unit tests and RTR #25288

Closed vikman90 closed 2 months ago

vikman90 commented 2 months ago
Main RC issue Version Stage Tag Previous issue
#25269 4.8.2 RC 1 v4.8.2-rc1 #24625

This issue aims to run all C unit tests and RTR checks for the current stage and report the results. Any failing test should be properly addressed with a new issue, detailing the error and the possible cause. Then, it will be determined if that failure is to be fixed immediately or marked as expected if there is enough support and approval. In case a test is marked as expected-fail, the issue detailing the error should always be used as a reference in the test.

Auditors' validation

In order to close and proceed with the release or the next candidate version, the following auditors must give the green light to this RC.

vikman90 commented 2 months ago

Rsync

Tests

Test Status
Cppcheck 🟢
rsync_implementation_unit_test 🟢
rsync_unit_test 🟢

Coverage

Coverage type Percentage Result
Lines 97.5% 🟢
Functions 96.9% 🟢

Syscollector

Tests

Test Status
Cppcheck 🟢
syscollectorimp_unit_test 🟢
sys_normalizer_unit_test 🟢

Coverage

Coverage type Percentage Result
Lines 96.6% 🟢
Functions 100.0% 🟢

DBsync

Tests

Test Status
Cppcheck 🟢
dbsync_unit_test 🟢
dbengine_unit_test 🟢
sqlite_unit_test 🟢
dbsyncPipelineFactory_unit_test 🟢

Coverage

Coverage type Percentage Result
Lines 94.2% 🟢
Functions 98.8% 🟢

Data provider

Tests

Test Status
Cppcheck 🟢
sysInfoPackagesLinuxHelper_unit_test 🟢
Rpm_unit_test 🟢
sysInfoNetworkSolaris_unit_test 🟢
sysInfoPort_unit_test 🟢
sysInfoNetworkLinux_unit_test 🟢
sysInfoSolarisPackage_unit_test 🟢
sysinfo_unit_test 🟢
sysInfoPackagesBerkeleyDB_unit_test 🟢
sysInfoPackageLinuxParserRPM_unit_test 🟢
sysInfoPackages_unit_test 🟢

Coverage

Coverage type Percentage Result
Lines 98.3% 🟢
Functions 100.0% 🟢

File integrity monitoring

Tests

Test Status
Cppcheck 🟢
registrykey_unit_test 🟢
fileitem_unit_test 🟢
fim_db_interface_test 🟢
fimdb_unit_test 🟢
registryvalue_unit_test 🟢
fim_file_interface_test 🟢

Coverage

Coverage type Percentage Result
Lines 99.0% 🟢
Functions 100.0% 🟢

Unit tests

Test Status
utils_unit_test 🟢
utils_benchmark_test 🟢
router_component_tests 🟢
router_unit_tests 🟢
content_manager_component_tests 🟢
content_manager_unit_tests 🟢
indexer_connector_unit_tests 🟢
indexer_connector_component_tests 🟢
vulnerability_scanner_unit_tests 🟢
vulnerability_scanner_component_tests 🟢
vulnerability_scanner_benchmark_tests 🟢
keystore_component_tests 🟢

Windows agent cmocka tests

Tests

Test Status
test_start_agent 🟢
test_notify 🟢
test_agentd_state 🟢
test_buffer 🟢
test_wm_github 🟢
test_wm_office365 🟢
test_wm_ms_graph 🟢
test_wm_osquery_already_running 🟢
test_win_execd 🟢
test_get_command_by_name 🟢
test_win_utils 🟢
test_read_win_event_channel 🟢
test_syscom 🟢
test_fim_diff_changes 🟢
test_run_realtime 🟢
test_config 🟢
test_syscheck 🟢
test_run_check 🟢
test_run_realtime_event 🟢
test_run_check_event 🟢
test_create_db 🟢
test_registry 🟢
test_events 🟢
test_win_whodata 🟢
test_list_op 🟢
test_file_op 🟢
test_integrity_op 🟢
test_rbtree_op 🟢
test_validate_op 🟢
test_string_op 🟢
test_expression 🟢
test_version_op 🟢
test_queue_op 🟢
test_queue_linked_op 🟢
test_agent_op 🟢
test_enrollment_op 🟢
test_time_op 🟢
test_buffer_op 🟢
test_utf8_op 🟢
test_log_builder 🟢
test_custom_output_search_replace 🟢
test_binaries_op 🟢
test_syscheck_op 🟢
test_atomic 🟢
test_url 🟢
test_sysinfo_utils 🟢
test_rwlock_op 🟢
test_os_xml 🟢
test_os_regex 🟢
test_os_regex_match 🟢
test_os_regex_execute 🟢
test_os_zlib 🟢
test_client-config_validate_ipv6_link_local_interface 🟢

Linux Manager cmocka tests

Tests

Test Status
test_analysisd_syscheck 🟢
test_cleanevent 🟢
test_dbsync 🟢
test_exec 🟢
test_log 🟢
test_labels 🟢
test_mitre 🟢
test_rules 🟢
test_same_different_loop 🟢
test_logtest 🟢
test_logtest-config 🟢
test_decoder_list 🟢
test_decode-xml 🟢
test_lists_list 🟢
test_rule_list 🟢
test_eventinfo_list 🟢
test_logmsg 🟢
test_decoder_rootcheck 🟢
test_decoder_syscollector 🟢
test_decoder_winevtchannel 🟢
test_decoder_winevtchannel_input 🟢
test_analysis-state 🟢
test_asyscom 🟢
test_limits 🟢
test_manager 🟢
test_secure 🟢
test_netbuffer 🟢
test_sendmsg 🟢
test_remote-config 🟢
test_syslogtcp 🟢
test_remote-state 🟢
test_remcom 🟢
test_wdb_integrity 🟢
test_wdb_fim 🟢
test_wdb_parser 🟢
test_wdb_global_parser 🟢
test_wdb_global 🟢
test_wdb_agents 🟢
test_wdb_global_helpers 🟢
test_wdb_agents_helpers 🟢
test_wdb 🟢
test_wdb_upgrade 🟢
test_wdb_metadata 🟢
test_wdb_task_parser 🟢
test_wdb_rootcheck 🟢
test_wdb_syscollector 🟢
test_wdb_task 🟢
test_wdb_delta_event 🟢
test_wazuh_db-config 🟢
test_wazuh_db_state 🟢
test_wdb_com 🟢
test_wdb_pool 🟢
test_create_agent_db 🟢
test_auth_parse 🟢
test_auth_validate 🟢
test_auth_add 🟢
test_ssl 🟢
test_auth_key_request 🟢
test_auth 🟢
test_generate_cert 🟢
test_authd-config 🟢
test_msgs 🟢
test_keys 🟢
test_sha1_op 🟢
test_blowfish_op 🟢
test_md5_op 🟢
test_md5_sha1_op 🟢
test_md5_sha1_sha256_op 🟢
test_sha256_op 🟢
test_sha512_op 🟢
test_wm_aws 🟢
test_wm_azure 🟢
test_wm_ciscat 🟢
test_wm_command 🟢
test_wm_database 🟢
test_wm_docker 🟢
test_wm_gcp 🟢
test_wmodules_gcp 🟢
test_wm_oscap 🟢
test_wm_sca 🟢
test_wmodules_scheduling 🟢
test_wm_vulnerability_detection 🟢
test_wm_task_manager 🟢
test_wm_task_manager_parsing 🟢
test_wm_task_manager_commands 🟢
test_wm_agent_upgrade 🟢
test_wm_agent_upgrade_manager 🟢
test_wm_agent_upgrade_parsing 🟢
test_wm_agent_upgrade_validate 🟢
test_wm_agent_upgrade_tasks 🟢
test_wm_agent_upgrade_tasks_callbacks 🟢
test_wm_agent_upgrade_commands 🟢
test_wm_agent_upgrade_upgrades 🟢
test_wmodules 🟢
test_wm_control 🟢
test_wm_github 🟢
test_wm_office365 🟢
test_wm_ms_graph 🟢
test_wm_osquery_already_running 🟢
test_monitord 🟢
test_monitor_actions 🟢
test_logcollector 🟢
test_read_multiline_regex 🟢
test_localfile-config 🟢
test_state 🟢
test_lccom 🟢
test_macos_log 🟢
test_read_macos 🟢
test_read_multiline 🟢
test_execd 🟢
test_get_command_by_name 🟢
test_integrator 🟢
test_manage_keys 🟢
test_printtable 🟢
test_csyslogd 🟢
test_syscom 🟢
test_fim_diff_changes 🟢
test_run_realtime 🟢
test_config 🟢
test_syscheck 🟢
test_run_check 🟢
test_create_db 🟢
test_audit_healthcheck 🟢
test_audit_rule_handling 🟢
test_syscheck_audit 🟢
test_audit_parse 🟢
test_list_op 🟢
test_file_op 🟢
test_integrity_op 🟢
test_rbtree_op 🟢
test_validate_op 🟢
test_string_op 🟢
test_expression 🟢
test_version_op 🟢
test_queue_op 🟢
test_queue_linked_op 🟢
test_agent_op 🟢
test_enrollment_op 🟢
test_time_op 🟢
test_buffer_op 🟢
test_utf8_op 🟢
test_log_builder 🟢
test_custom_output_search_replace 🟢
test_binaries_op 🟢
test_bzip2_op 🟢
test_schedule_scan 🟢
test_rootcheck_op 🟢
test_fs_op 🟢
test_wazuhdb_op 🟢
test_syscheck_op 🟢
test_json_op 🟢
test_audit_op 🟢
test_privsep_op 🟢
test_mq_op 🟢
test_remoted_op 🟢
test_json-queue 🟢
test_bqueue 🟢
test_atomic 🟢
test_url 🟢
test_sysinfo_utils 🟢
test_rwlock_op 🟢
test_os_xml 🟢
test_os_regex 🟢
test_os_regex_match 🟢
test_os_regex_execute 🟢
test_os_zlib 🟢
test_client-config_validate_ipv6_link_local_interface 🟢
test_indexer 🟢
test_os_net 🟢
test_fluentd_forwarder 🟢
test_active-response 🟢

Coverage

Coverage type Percentage Result
Lines 32.5% 32340 of 99501 lines
Functions 2.9% 1456 of 50114 functions
Branches 14.1% 24616 of 174776 branches

Linux agent cmocka tests

Tests

Test Status
test_start_agent 🟢
test_notify 🟢
test_agentd_state 🟢
test_buffer 🟢
test_logcollector 🟢
test_read_multiline_regex 🟢
test_localfile-config 🟢
test_state 🟢
test_lccom 🟢
test_macos_log 🟢
test_read_macos 🟢
test_read_multiline 🟢
test_execd 🟢
test_get_command_by_name 🟢
test_wm_control 🟢
test_wm_github 🟢
test_wm_office365 🟢
test_wm_ms_graph 🟢
test_wm_osquery_already_running 🟢
test_syscom 🟢
test_fim_diff_changes 🟢
test_run_realtime 🟢
test_config 🟢
test_syscheck 🟢
test_run_check 🟢
test_create_db 🟢
test_audit_healthcheck 🟢
test_audit_rule_handling 🟢
test_syscheck_audit 🟢
test_audit_parse 🟢
test_list_op 🟢
test_file_op 🟢
test_integrity_op 🟢
test_rbtree_op 🟢
test_validate_op 🟢
test_string_op 🟢
test_expression 🟢
test_version_op 🟢
test_queue_op 🟢
test_queue_linked_op 🟢
test_agent_op 🟢
test_enrollment_op 🟢
test_time_op 🟢
test_buffer_op 🟢
test_utf8_op 🟢
test_log_builder 🟢
test_custom_output_search_replace 🟢
test_binaries_op 🟢
test_syscheck_op 🟢
test_json_op 🟢
test_audit_op 🟢
test_privsep_op 🟢
test_mq_op 🟢
test_remoted_op 🟢
test_atomic 🟢
test_url 🟢
test_sysinfo_utils 🟢
test_rwlock_op 🟢
test_os_xml 🟢
test_os_regex 🟢
test_os_regex_match 🟢
test_os_regex_execute 🟢
test_os_zlib 🟢
test_client-config_validate_ipv6_link_local_interface 🟢
test_os_net 🟢
test_fluentd_forwarder 🟢
test_active-response 🟢

Coverage

Coverage type Percentage Result
Lines 26.1% 12591 of 48228 lines
Functions 2.5% 654 of 25658 functions
Branches 16.2% 9427 of 58062 branches
cborla commented 2 months ago

LGTM!