Improved alphanumeric_symbols regex to cover certain SCA remediation fields #16756
+1
−1
Wazuh CI / Unit tests: API
succeeded
May 10, 2023 in 3m 50s
API UNIT TESTS
Below you have the stage output
Details
Test summary
- Status: ✔️
- Plain report: pytest_api_unit_tests.txt
- HTML report: pytest_api_unit_tests.tar.gz
- Jenkins build: jenkins_build
Test results
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-5.4.3, py-1.11.0, pluggy-0.13.1 -- /usr/local/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.9.2', 'Platform': 'Linux-5.10.178-162.673.amzn2.x86_64-x86_64-with-glibc2.28', 'Packages': {'pytest': '5.4.3', 'py': '1.11.0', 'pluggy': '0.13.1'}, 'Plugins': {'trio': '0.7.0',
'aiohttp': '0.3.0', 'html': '2.1.1', 'metadata': '2.0.2', 'asyncio': '0.15.1'}}
rootdir: /tmp/build/wazuh/api
plugins: trio-0.7.0, aiohttp-0.3.0, html-2.1.1, metadata-2.0.2, asyncio-0.15.1
collecting ... collected 544 items
controllers/test/test_active_response_controller.py::test_run_command PASSED [ 0%]
controllers/test/test_agent_controller.py::test_delete_agents[001] PASSED [ 0%]
controllers/test/test_agent_controller.py::test_delete_agents[all] PASSED [ 0%]
controllers/test/test_agent_controller.py::test_get_agents PASSED [ 0%]
controllers/test/test_agent_controller.py::test_add_agent PASSED [ 0%]
controllers/test/test_agent_controller.py::test_reconnect_agents PASSED [ 1%]
controllers/test/test_agent_controller.py::test_restart_agents PASSED [ 1%]
controllers/test/test_agent_controller.py::test_restart_agents_by_node PASSED [ 1%]
controllers/test/test_agent_controller.py::test_get_agent_config PASSED [ 1%]
controllers/test/test_agent_controller.py::test_delete_single_agent_multiple_groups PASSED [ 1%]
controllers/test/test_agent_controller.py::test_get_sync_agent PASSED [ 2%]
controllers/test/test_agent_controller.py::test_delete_single_agent_single_group PASSED [ 2%]
controllers/test/test_agent_controller.py::test_put_agent_single_group PASSED [ 2%]
controllers/test/test_agent_controller.py::test_get_agent_key PASSED [ 2%]
controllers/test/test_agent_controller.py::test_restart_agent PASSED [ 2%]
controllers/test/test_agent_controller.py::test_put_upgrade_agents[agents_list0] PASSED [ 2%]
controllers/test/test_agent_controller.py::test_put_upgrade_agents[agents_list1] PASSED [ 3%]
controllers/test/test_agent_controller.py::test_put_upgrade_custom_agents[agents_list0] PASSED [ 3%]
controllers/test/test_agent_controller.py::test_put_upgrade_custom_agents[agents_list1] PASSED [ 3%]
controllers/test/test_agent_controller.py::test_get_daemon_stats PASSED [ 3%]
controllers/test/test_agent_controller.py::test_get_component_stats PASSED [ 3%]
controllers/test/test_agent_controller.py::test_get_agent_upgrade PASSED [ 4%]
controllers/test/test_agent_controller.py::test_post_new_agent PASSED [ 4%]
controllers/test/test_agent_controller.py::test_delete_multiple_agent_single_group[001] PASSED [ 4%]
controllers/test/test_agent_controller.py::test_delete_multiple_agent_single_group[all] PASSED [ 4%]
controllers/test/test_agent_controller.py::test_put_multiple_agent_single_group PASSED [ 4%]
controllers/test/test_agent_controller.py::test_delete_groups[001] PASSED [ 4%]
controllers/test/test_agent_controller.py::test_delete_groups[all] PASSED [ 5%]
controllers/test/test_agent_controller.py::test_get_list_group PASSED [ 5%]
controllers/test/test_agent_controller.py::test_get_agents_in_group PASSED [ 5%]
controllers/test/test_agent_controller.py::test_post_group PASSED [ 5%]
controllers/test/test_agent_controller.py::test_get_group_config PASSED [ 5%]
controllers/test/test_agent_controller.py::test_put_group_config PASSED [ 6%]
controllers/test/test_agent_controller.py::test_get_group_files PASSED [ 6%]
controllers/test/test_agent_controller.py::test_get_group_file_json PASSED [ 6%]
controllers/test/test_agent_controller.py::test_get_group_file_xml PASSED [ 6%]
controllers/test/test_agent_controller.py::test_restart_agents_by_group[mock_alist0] PASSED [ 6%]
controllers/test/test_agent_controller.py::test_restart_agents_by_group[mock_alist1] PASSED [ 6%]
controllers/test/test_agent_controller.py::test_insert_agent PASSED [ 7%]
controllers/test/test_agent_controller.py::test_get_agent_no_group PASSED [ 7%]
controllers/test/test_agent_controller.py::test_get_agent_outdated PASSED [ 7%]
controllers/test/test_agent_controller.py::test_get_agent_fields PASSED [ 7%]
controllers/test/test_agent_controller.py::test_get_agent_summary_status PASSED [ 7%]
controllers/test/test_agent_controller.py::test_get_agent_summary_os PASSED [ 8%]
controllers/test/test_cdb_list_controller.py::test_get_lists PASSED [ 8%]
controllers/test/test_cdb_list_controller.py::test_get_file[True] PASSED [ 8%]
controllers/test/test_cdb_list_controller.py::test_get_file[False] PASSED [ 8%]
controllers/test/test_cdb_list_controller.py::test_put_file PASSED [ 8%]
controllers/test/test_cdb_list_controller.py::test_delete_file PASSED [ 9%]
controllers/test/test_cdb_list_controller.py::test_get_lists_files PASSED [ 9%]
controllers/test/test_ciscat_controller.py::test_get_agents_ciscat_results PASSED [ 9%]
controllers/test/test_cluster_controller.py::test_get_cluster_node PASSED [ 9%]
controllers/test/test_cluster_controller.py::test_get_cluster_nodes PASSED [ 9%]
controllers/test/test_cluster_controller.py::test_get_healthcheck PASSED [ 9%]
controllers/test/test_cluster_controller.py::test_get_nodes_ruleset_sync_status PASSED [ 10%]
controllers/test/test_cluster_controller.py::test_get_status PASSED [ 10%]
controllers/test/test_cluster_controller.py::test_get_config PASSED [ 10%]
controllers/test/test_cluster_controller.py::test_get_status_node PASSED [ 10%]
controllers/test/test_cluster_controller.py::test_get_info_node PASSED [ 10%]
controllers/test/test_cluster_controller.py::test_get_configuration_node[True] PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_configuration_node[False] PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_daemon_stats_node PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_stats_node[None] PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_stats_node[date_value] PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_stats_hourly_node PASSED [ 11%]
controllers/test/test_cluster_controller.py::test_get_stats_weekly_node PASSED [ 12%]
controllers/test/test_cluster_controller.py::test_get_stats_analysisd_node PASSED [ 12%]
controllers/test/test_cluster_controller.py::test_get_stats_remoted_node PASSED [ 12%]
controllers/test/test_cluster_controller.py::test_get_log_node PASSED [ 12%]
controllers/test/test_cluster_controller.py::test_get_log_summary_node PASSED [ 12%]
controllers/test/test_cluster_controller.py::test_get_api_config PASSED [ 13%]
controllers/test/test_cluster_controller.py::test_put_restart PASSED [ 13%]
controllers/test/test_cluster_controller.py::test_get_conf_validation PASSED [ 13%]
controllers/test/test_cluster_controller.py::test_get_node_config PASSED [ 13%]
controllers/test/test_cluster_controller.py::test_update_configuration PASSED [ 13%]
controllers/test/test_decoder_controller.py::test_get_decoders PASSED [ 13%]
controllers/test/test_decoder_controller.py::test_get_decoders_files PASSED [ 14%]
controllers/test/test_decoder_controller.py::test_get_decoders_parents PASSED [ 14%]
controllers/test/test_decoder_controller.py::test_get_file[True] PASSED [ 14%]
controllers/test/test_decoder_controller.py::test_get_file[False] PASSED [ 14%]
controllers/test/test_decoder_controller.py::test_put_file PASSED [ 14%]
controllers/test/test_decoder_controller.py::test_delete_file PASSED [ 15%]
controllers/test/test_default_controller.py::test_default_info PASSED [ 15%]
controllers/test/test_experimental_controller.py::test_clear_rootcheck_database[001] PASSED [ 15%]
controllers/test/test_experimental_controller.py::test_clear_rootcheck_database[all] PASSED [ 15%]
controllers/test/test_experimental_controller.py::test_clear_syscheck_database[001] PASSED [ 15%]
controllers/test/test_experimental_controller.py::test_clear_syscheck_database[all] PASSED [ 15%]
controllers/test/test_experimental_controller.py::test_get_cis_cat_results PASSED [ 16%]
controllers/test/test_experimental_controller.py::test_get_hardware_info PASSED [ 16%]
controllers/test/test_experimental_controller.py::test_get_network_address_info PASSED [ 16%]
controllers/test/test_experimental_controller.py::test_get_network_interface_info PASSED [ 16%]
controllers/test/test_experimental_controller.py::test_get_network_protocol_info PASSED [ 16%]
controllers/test/test_experimental_controller.py::test_get_os_info PASSED [ 17%]
controllers/test/test_experimental_controller.py::test_get_packages_info PASSED [ 17%]
controllers/test/test_experimental_controller.py::test_get_ports_info PASSED [ 17%]
controllers/test/test_experimental_controller.py::test_get_processes_info PASSED [ 17%]
controllers/test/test_experimental_controller.py::test_get_hotfixes_info PASSED [ 17%]
controllers/test/test_experimental_controller.py::test_check_experimental_feature_value PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_status PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_info PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_configuration[True] PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_configuration[False] PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_daemon_stats_node PASSED [ 18%]
controllers/test/test_manager_controller.py::test_get_stats[None] PASSED [ 19%]
controllers/test/test_manager_controller.py::test_get_stats[date_value] PASSED [ 19%]
controllers/test/test_manager_controller.py::test_get_stats_hourly PASSED [ 19%]
controllers/test/test_manager_controller.py::test_get_stats_weekly PASSED [ 19%]
controllers/test/test_manager_controller.py::test_get_stats_analysisd PASSED [ 19%]
controllers/test/test_manager_controller.py::test_get_stats_remoted PASSED [ 20%]
controllers/test/test_manager_controller.py::test_get_log PASSED [ 20%]
controllers/test/test_manager_controller.py::test_get_log_summary PASSED [ 20%]
controllers/test/test_manager_controller.py::test_get_api_config PASSED [ 20%]
controllers/test/test_manager_controller.py::test_put_restart PASSED [ 20%]
controllers/test/test_manager_controller.py::test_get_conf_validation PASSED [ 20%]
controllers/test/test_manager_controller.py::test_get_manager_config_ondemand PASSED [ 21%]
controllers/test/test_manager_controller.py::test_update_configuration PASSED [ 21%]
controllers/test/test_mitre_controller.py::test_get_metadata PASSED [ 21%]
controllers/test/test_mitre_controller.py::test_get_groups PASSED [ 21%]
controllers/test/test_mitre_controller.py::test_get_mitigations PASSED [ 21%]
controllers/test/test_mitre_controller.py::test_get_references PASSED [ 22%]
controllers/test/test_mitre_controller.py::test_get_software PASSED [ 22%]
controllers/test/test_mitre_controller.py::test_get_tactics PASSED [ 22%]
controllers/test/test_mitre_controller.py::test_get_techniques PASSED [ 22%]
controllers/test/test_overview_controller.py::test_get_overview_agents PASSED [ 22%]
controllers/test/test_rootcheck_controller.py::test_put_rootcheck PASSED [ 22%]
controllers/test/test_rootcheck_controller.py::test_delete_rootcheck PASSED [ 23%]
controllers/test/test_rootcheck_controller.py::test_get_rootcheck_agent PASSED [ 23%]
controllers/test/test_rootcheck_controller.py::test_get_last_scan_agent PASSED [ 23%]
controllers/test/test_rule_controller.py::test_get_rules PASSED [ 23%]
controllers/test/test_rule_controller.py::test_get_rules_groups PASSED [ 23%]
controllers/test/test_rule_controller.py::test_get_rules_requirement PASSED [ 24%]
controllers/test/test_rule_controller.py::test_get_rules_files PASSED [ 24%]
controllers/test/test_rule_controller.py::test_get_file[True] PASSED [ 24%]
controllers/test/test_rule_controller.py::test_get_file[False] PASSED [ 24%]
controllers/test/test_rule_controller.py::test_put_file PASSED [ 24%]
controllers/test/test_rule_controller.py::test_delete_file PASSED [ 25%]
controllers/test/test_sca_controller.py::test_get_sca_agent PASSED [ 25%]
controllers/test/test_sca_controller.py::test_get_sca_checks PASSED [ 25%]
controllers/test/test_security_controller.py::test_login_user[True] PASSED [ 25%]
controllers/test/test_security_controller.py::test_login_user[False] PASSED [ 25%]
controllers/test/test_security_controller.py::test_login_user_ko[True] PASSED [ 25%]
controllers/test/test_security_controller.py::test_login_user_ko[False] PASSED [ 26%]
controllers/test/test_security_controller.py::test_run_as_login[True] PASSED [ 26%]
controllers/test/test_security_controller.py::test_run_as_login[False] PASSED [ 26%]
controllers/test/test_security_controller.py::test_run_as_login_ko[True] PASSED [ 26%]
controllers/test/test_security_controller.py::test_run_as_login_ko[False] PASSED [ 26%]
controllers/test/test_security_controller.py::test_get_user_me PASSED [ 27%]
controllers/test/test_security_controller.py::test_get_user_me_policies PASSED [ 27%]
controllers/test/test_security_controller.py::test_logout_user PASSED [ 27%]
controllers/test/test_security_controller.py::test_get_users PASSED [ 27%]
controllers/test/test_security_controller.py::test_edit_run_as PASSED [ 27%]
controllers/test/test_security_controller.py::test_create_user PASSED [ 27%]
controllers/test/test_security_controller.py::test_update_user PASSED [ 28%]
controllers/test/test_security_controller.py::test_delete_users[001] PASSED [ 28%]
controllers/test/test_security_controller.py::test_delete_users[all] PASSED [ 28%]
controllers/test/test_security_controller.py::test_get_roles PASSED [ 28%]
controllers/test/test_security_controller.py::test_add_role PASSED [ 28%]
controllers/test/test_security_controller.py::test_remove_roles[001] PASSED [ 29%]
controllers/test/test_security_controller.py::test_remove_roles[all] PASSED [ 29%]
controllers/test/test_security_controller.py::test_update_role PASSED [ 29%]
controllers/test/test_security_controller.py::test_get_rules PASSED [ 29%]
controllers/test/test_security_controller.py::test_add_rule PASSED [ 29%]
controllers/test/test_security_controller.py::test_update_rule PASSED [ 29%]
controllers/test/test_security_controller.py::test_remove_rules[001] PASSED [ 30%]
controllers/test/test_security_controller.py::test_remove_rules[all] PASSED [ 30%]
controllers/test/test_security_controller.py::test_get_policies PASSED [ 30%]
controllers/test/test_security_controller.py::test_add_policy PASSED [ 30%]
controllers/test/test_security_controller.py::test_remove_policies[001] PASSED [ 30%]
controllers/test/test_security_controller.py::test_remove_policies[all] PASSED [ 31%]
controllers/test/test_security_controller.py::test_update_policy PASSED [ 31%]
controllers/test/test_security_controller.py::test_set_user_role PASSED [ 31%]
controllers/test/test_security_controller.py::test_remove_user_role[001] PASSED [ 31%]
controllers/test/test_security_controller.py::test_remove_user_role[all] PASSED [ 31%]
controllers/test/test_security_controller.py::test_set_role_policy PASSED [ 31%]
controllers/test/test_security_controller.py::test_remove_role_policy[001] PASSED [ 32%]
controllers/test/test_security_controller.py::test_remove_role_policy[all] PASSED [ 32%]
controllers/test/test_security_controller.py::test_set_role_rule PASSED [ 32%]
controllers/test/test_security_controller.py::test_remove_role_rule[001] PASSED [ 32%]
controllers/test/test_security_controller.py::test_remove_role_rule[all] PASSED [ 32%]
controllers/test/test_security_controller.py::test_get_rbac_resources PASSED [ 33%]
controllers/test/test_security_controller.py::test_get_rbac_actions PASSED [ 33%]
controllers/test/test_security_controller.py::test_revoke_all_tokens[None] PASSED [ 33%]
controllers/test/test_security_controller.py::test_revoke_all_tokens[mock_snodes1] PASSED [ 33%]
controllers/test/test_security_controller.py::test_revoke_all_tokens_ko PASSED [ 33%]
controllers/test/test_security_controller.py::test_get_security_config PASSED [ 34%]
controllers/test/test_security_controller.py::test_security_revoke_tokens[None] PASSED [ 34%]
controllers/test/test_security_controller.py::test_security_revoke_tokens[mock_snodes1] PASSED [ 34%]
controllers/test/test_security_controller.py::test_put_security_config PASSED [ 34%]
controllers/test/test_security_controller.py::test_delete_security_config PASSED [ 34%]
controllers/test/test_syscheck_controller.py::test_put_syscheck PASSED [ 34%]
controllers/test/test_syscheck_controller.py::test_get_syscheck_agent PASSED [ 35%]
controllers/test/test_syscheck_controller.py::test_delete_syscheck_agent PASSED [ 35%]
controllers/test/test_syscheck_controller.py::test_get_last_scan_agent PASSED [ 35%]
controllers/test/test_syscollector_controller.py::test_get_hardware_info PASSED [ 35%]
controllers/test/test_syscollector_controller.py::test_get_hotfix_info PASSED [ 35%]
controllers/test/test_syscollector_controller.py::test_get_network_address_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_network_interface_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_network_protocol_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_os_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_packages_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_ports_info PASSED [ 36%]
controllers/test/test_syscollector_controller.py::test_get_processes_info PASSED [ 37%]
controllers/test/test_task_controller.py::test_get_tasks_status PASSED [ 37%]
controllers/test/test_vulnerability_controller.py::test_run_vulnerability_scan PASSED [ 37%]
controllers/test/test_vulnerability_controller.py::test_get_vulnerability_agent PASSED [ 37%]
controllers/test/test_vulnerability_controller.py::test_get_last_scan_agent PASSED [ 37%]
controllers/test/test_vulnerability_controller.py::test_get_vulnerabilities_severity_summary PASSED [ 38%]
models/test/test_model.py::test_model_from_dict PASSED [ 38%]
models/test/test_model.py::test_model_to_dict PASSED [ 38%]
models/test/test_model.py::test_model_to_str PASSED [ 38%]
models/test/test_model.py::test_model_operator_overloading PASSED [ 38%]
models/test/test_model.py::test_allof PASSED [ 38%]
models/test/test_model.py::test_allof_to_dict PASSED [ 39%]
models/test/test_model.py::test_data PASSED [ 39%]
models/test/test_model.py::test_data_from_dict PASSED [ 39%]
models/test/test_model.py::test_items PASSED [ 39%]
models/test/test_model.py::test_items_from_dict PASSED [ 39%]
models/test/test_model.py::test_body_get_kwargs[additional_kwargs0] PASSED [ 40%]
models/test/test_model.py::test_body_get_kwargs[additional_kwargs1] PASSED [ 40%]
models/test/test_model.py::test_body_get_kwargs_ko PASSED [ 40%]
models/test/test_model.py::test_body_from_dict PASSED [ 40%]
models/test/test_model.py::test_body_decode_body PASSED [ 40%]
models/test/test_model.py::test_body_decode_body_ko PASSED [ 40%]
models/test/test_model.py::test_body_validate_content_type PASSED [ 41%]
models/test/test_model.py::test_body_validate_content_type_ko PASSED [ 41%]
models/test/test_model.py::test_all_models[security_token_response_model.py] PASSED [ 41%]
models/test/test_model.py::test_all_models[configuration_model.py] PASSED [ 41%]
models/test/test_model.py::test_all_models[security_model.py] PASSED [ 41%]
models/test/test_model.py::test_all_models[agent_added_model.py] PASSED [ 42%]
models/test/test_model.py::test_all_models[group_added_model.py] PASSED [ 42%]
models/test/test_model.py::test_all_models[logtest_model.py] PASSED [ 42%]
models/test/test_model.py::test_all_models[agent_inserted_model.py] PASSED [ 42%]
models/test/test_model.py::test_all_models[basic_info_model.py] PASSED [ 42%]
models/test/test_model.py::test_all_models[active_response_model.py] PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_credentials PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_user[unknown-] PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_user[None-] PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_user[None-wazuh] PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_hash_auth_context[/agents-token_info0-request_body0] PASSED [ 43%]
test/test_alogging.py::test_accesslogger_log_hash_auth_context[/security/user/authenticate/run_as-token_info1-request_body1] PASSED [ 44%]
test/test_alogging.py::test_accesslogger_log_hash_auth_context[/security/user/authenticate-None-request_body2] PASSED [ 44%]
test/test_alogging.py::test_apilogger_init[False] PASSED [ 44%]
test/test_alogging.py::test_apilogger_init[True] PASSED [ 44%]
test/test_alogging.py::test_apilogger_setup_logger[info-20] PASSED [ 44%]
test/test_alogging.py::test_apilogger_setup_logger[debug2-5] PASSED [ 45%]
test/test_alogging.py::test_apilogger_setup_logger[debug-10] PASSED [ 45%]
test/test_alogging.py::test_apilogger_setup_logger[critical-50] PASSED [ 45%]
test/test_alogging.py::test_apilogger_setup_logger[error-40] PASSED [ 45%]
test/test_alogging.py::test_apilogger_setup_logger[warning-30] PASSED [ 45%]
test/test_alogging.py::test_wazuhjsonformatter[None-dkt0] PASSED [ 45%]
test/test_alogging.py::test_wazuhjsonformatter[message_value-dkt1] PASSED [ 46%]
test/test_alogging.py::test_wazuhjsonformatter[message_value-dkt2] PASSED [ 46%]
test/test_authentication.py::test_check_user_master PASSED [ 46%]
test/test_authentication.py::test_check_user PASSED [ 46%]
test/test_authentication.py::test_generate_keypair PASSED [ 46%]
test/test_authentication.py::test_generate_keypair_ko PASSED [ 47%]
test/test_authentication.py::test_change_keypair PASSED [ 47%]
test/test_authentication.py::test_get_security_conf PASSED [ 47%]
test/test_authentication.py::test_generate_token[auth_context0] PASSED [ 47%]
test/test_authentication.py::test_generate_token[None] PASSED [ 47%]
test/test_authentication.py::test_check_token PASSED [ 47%]
test/test_authentication.py::test_decode_token PASSED [ 48%]
test/test_authentication.py::test_decode_token_ko PASSED [ 48%]
test/test_configuration.py::test_read_configuration[read_config0] PASSED [ 48%]
test/test_configuration.py::test_read_configuration[read_config1] PASSED [ 48%]
test/test_configuration.py::test_read_configuration[read_config2] PASSED [ 48%]
test/test_configuration.py::test_read_configuration[read_config3] PASSED [ 49%]
test/test_configuration.py::test_read_wrong_configuration[config0] PASSED [ 49%]
test/test_configuration.py::test_read_wrong_configuration[config1] PASSED [ 49%]
test/test_configuration.py::test_read_wrong_configuration[config2] PASSED [ 49%]
test/test_configuration.py::test_read_wrong_configuration[config3] PASSED [ 49%]
test/test_configuration.py::test_read_wrong_configuration[config4] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config5] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config6] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config7] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config8] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config9] PASSED [ 50%]
test/test_configuration.py::test_read_wrong_configuration[config10] PASSED [ 51%]
test/test_configuration.py::test_read_wrong_configuration[config11] PASSED [ 51%]
test/test_configuration.py::test_read_wrong_configuration[config12] PASSED [ 51%]
test/test_configuration.py::test_read_wrong_configuration[config13] PASSED [ 51%]
test/test_configuration.py::test_read_wrong_configuration[config14] PASSED [ 51%]
test/test_configuration.py::test_read_wrong_configuration[config15] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config16] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config17] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config18] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config19] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config20] PASSED [ 52%]
test/test_configuration.py::test_read_wrong_configuration[config21] PASSED [ 53%]
test/test_configuration.py::test_read_wrong_configuration[config22] PASSED [ 53%]
test/test_configuration.py::test_read_wrong_configuration[config23] PASSED [ 53%]
test/test_configuration.py::test_read_wrong_configuration[config24] PASSED [ 53%]
test/test_configuration.py::test_read_wrong_configuration[config25] PASSED [ 53%]
test/test_configuration.py::test_read_wrong_configuration[config26] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config27] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config28] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config29] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config30] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config31] PASSED [ 54%]
test/test_configuration.py::test_read_wrong_configuration[config32] PASSED [ 55%]
test/test_configuration.py::test_read_wrong_configuration[config33] PASSED [ 55%]
test/test_configuration.py::test_read_wrong_configuration[config34] PASSED [ 55%]
test/test_configuration.py::test_read_wrong_configuration[config35] PASSED [ 55%]
test/test_configuration.py::test_generate_private_key PASSED [ 55%]
test/test_configuration.py::test_generate_self_signed_certificate PASSED [ 56%]
test/test_configuration.py::test_fill_dict PASSED [ 56%]
test/test_configuration.py::test_fill_dict_exceptions PASSED [ 56%]
test/test_encoder.py::test_encoder_dumps[o0] PASSED [ 56%]
test/test_encoder.py::test_encoder_dumps[o1] PASSED [ 56%]
test/test_encoder.py::test_encoder_prettify PASSED [ 56%]
test/test_middlewares.py::test_cleanup_detail_field PASSED [ 57%]
test/test_middlewares.py::test_middlewares_unlock_ip PASSED [ 57%]
test/test_middlewares.py::test_middlewares_unlock_ip_ko PASSED [ 57%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats0-request_info0] PASSED [ 57%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats0-request_info1] PASSED [ 57%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats0-request_info2] PASSED [ 58%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats1-request_info0] PASSED [ 58%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats1-request_info1] PASSED [ 58%]
test/test_middlewares.py::test_middlewares_prevent_bruteforce_attack[stats1-request_info2] PASSED [ 58%]
test/test_middlewares.py::test_middlewares_prevent_denial_of_service[-80-300] PASSED [ 58%]
test/test_middlewares.py::test_middlewares_prevent_denial_of_service[0-0] PASSED [ 59%]
test/test_middlewares.py::test_middlewares_security_middleware PASSED [ 59%]
test/test_uri_parser.py::test_apiuriparser_call[] PASSED [ 59%]
test/test_uri_parser.py::test_apiuriparser_call[q=value] PASSED [ 59%]
test/test_uri_parser.py::test_apiuriparser_call[q=;] PASSED [ 59%]
test/test_util.py::test_APILoggerSize[1m-1048576] PASSED [ 59%]
test/test_util.py::test_APILoggerSize[1M-1048576] PASSED [ 60%]
test/test_util.py::test_APILoggerSize[1024k-1048576] PASSED [ 60%]
test/test_util.py::test_APILoggerSize[1024K-1048576] PASSED [ 60%]
test/test_util.py::test_APILoggerSize[5m-5242880] PASSED [ 60%]
test/test_util.py::test_APILoggerSize_exceptions PASSED [ 60%]
test/test_util.py::test_serialize[item0-False] PASSED [ 61%]
test/test_util.py::test_serialize[item1-True] PASSED [ 61%]
test/test_util.py::test_deserialize_primitive[test-str] PASSED [ 61%]
test/test_util.py::test_deserialize_primitive[2020-06-24 17:02:53.034374-datetime] PASSED [ 61%]
test/test_util.py::test_deserialize_object[test] PASSED [ 61%]
test/test_util.py::test_deserialize_object[True] PASSED [ 61%]
test/test_util.py::test_deserialize_object[item2] PASSED [ 62%]
test/test_util.py::test_deserialize_date PASSED [ 62%]
test/test_util.py::test_deserialize_date_ko PASSED [ 62%]
test/test_util.py::test_deserialize_datetime PASSED [ 62%]
test/test_util.py::test_deserialize_datetime_ko PASSED [ 62%]
test/test_util.py::test_deserialize_model PASSED [ 63%]
test/test_util.py::test_deserialize_list PASSED [ 63%]
test/test_util.py::test_deserialize_dict PASSED [ 63%]
test/test_util.py::test_deserialize PASSED [ 63%]
test/test_util.py::test_remove_nones_to_dict PASSED [ 63%]
test/test_util.py::test_parse_api_param[None-search-None] PASSED [ 63%]
test/test_util.py::test_parse_api_param[None-sort-None] PASSED [ 64%]
test/test_util.py::test_parse_api_param[None-random-None] PASSED [ 64%]
test/test_util.py::test_parse_api_param[ubuntu-search-expected_result3] PASSED [ 64%]
test/test_util.py::test_parse_api_param[-ubuntu-search-expected_result4] PASSED [ 64%]
test/test_util.py::test_parse_api_param[field1-sort-expected_result5] PASSED [ 64%]
test/test_util.py::test_parse_api_param[field1,field2-sort-expected_result6] PASSED [ 65%]
test/test_util.py::test_parse_api_param[-field1,field2-sort-expected_result7] PASSED [ 65%]
test/test_util.py::test_parse_api_param[random-random-random] PASSED [ 65%]
test/test_util.py::test_to_relative_path PASSED [ 65%]
test/test_util.py::test_create_problem[ValueError-100-None-returned_code0-ValueError] PASSED [ 65%]
test/test_util.py::test_create_problem[WazuhError-1000-extra_fields1-400-ProblemException] PASSED [ 65%]
test/test_util.py::test_create_problem[WazuhPermissionError-4000-extra_fields2-403-ProblemException] PASSED [ 66%]
test/test_util.py::test_create_problem[WazuhResourceNotFound-1710-extra_fields3-404-ProblemException] PASSED [ 66%]
test/test_util.py::test_create_problem[WazuhInternalError-1000-extra_fields4-500-ProblemException] PASSED [ 66%]
test/test_util.py::test_raise_if_exc[obj0-429] PASSED [ 66%]
test/test_util.py::test_raise_if_exc[obj1-None] PASSED [ 66%]
test/test_util.py::test_raise_if_exc[obj2-None] PASSED [ 67%]
test/test_util.py::test_raise_if_exc[obj3-None] PASSED [ 67%]
test/test_util.py::test_get_invalid_keys[dikt0-f_kwargs0-invalid_keys0] PASSED [ 67%]
test/test_util.py::test_get_invalid_keys[dikt1-f_kwargs1-invalid_keys1] PASSED [ 67%]
test/test_util.py::test_get_invalid_keys[dikt2-f_kwargs2-invalid_keys2] PASSED [ 67%]
test/test_util.py::test_deprecate_endpoint[] PASSED [ 68%]
test/test_util.py::test_deprecate_endpoint[https:/documentation.wazuh.com/current/user-manual/api/reference.html] PASSED [ 68%]
test/test_validator.py::test_validation_check_exp_ok[43,21,34-^\\d+(,\\d+)*$] PASSED [ 68%]
test/test_validator.py::test_validation_check_exp_ok[20190226-^\\d{8}$] PASSED [ 68%]
test/test_validator.py::test_validation_check_exp_ok[54355-^\\d+$] PASSED [ 68%]
test/test_validator.py::test_validation_check_exp_ok[100-^[\\w,\\-.+\\s:]+$] PASSED [ 68%]
test/test_validator.py::test_validation_check_exp_ok[1234567890-^(\\d+|all)$] PASSED [ 69%]
test/test_validator.py::test_validation_check_exp_ok[all-^(\\d+|all)$] PASSED [ 69%]
test/test_validator.py::test_validation_check_exp_ok[alphanumeric1_param2-^[\\w,\\-.+\\s:]+$] PASSED [ 69%]
test/test_validator.py::test_validation_check_exp_ok[file_%1,file_2,file-3-^[\\w\\-.%]+(,[\\w\\-.%]+)*$] PASSED [ 69%]
test/test_validator.py::test_validation_check_exp_ok[file%1-test_name1-^[\\w\\-.%]+$] PASSED [ 69%]
test/test_validator.py::test_validation_check_exp_ok[[(Random_symbols-string123)],<>!.+:"'|=~#-^[\\w,*<>!\\-.+\\s:/()\\[\\]\\'\\"|=~#]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[Group_name-2-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[.group-2-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[...-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[Group_name-2-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[.Group_name-2-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 70%]
test/test_validator.py::test_validation_check_exp_ok[...-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 71%]
test/test_validator.py::test_validation_check_exp_ok[all-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 71%]
test/test_validator.py::test_validation_check_exp_ok[192.168.122.255-^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:/(?:[0-9]|[1-2][0-9]|3[0-2]))?$|^any$
|^ANY$] PASSED [ 71%]
test/test_validator.py::test_validation_check_exp_ok[any-^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:/(?:[0-9]|[1-2][0-9]|3[0-2]))?$|^any$|^ANY$] PASS
ED [ 71%]
test/test_validator.py::test_validation_check_exp_ok[e4d909c290d0fb1ca068ffaddf22cbd0-^(?:[\\da-fA-F]{32})?$|(?:[\\da-fA-F]{40})?$|(?:[\\da-fA-F]{56})?$|(?:[\\da-fA-F]{64})?$|(?:[\\da-fA-F]{96})?$|(?:
[\\da-fA-F]{128})?$] PASSED [ 71%]
test/test_validator.py::test_validation_check_exp_ok[449e3b6ffd9b484c5c645321edd4d610-[a-zA-Z0-9]+$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[2021-04-28-^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[2021-11-04T18:14:04Z-^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])[tT](2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?([zZ]|[+-](?:2
[0-3]|[01][0-9]):[0-5][0-9])$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[1d-^(\\d+[dhms]?)$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[12h-^(\\d+[dhms]?)$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[40m-^(\\d+[dhms]?)$] PASSED [ 72%]
test/test_validator.py::test_validation_check_exp_ok[60s-^(\\d+[dhms]?)$] PASSED [ 73%]
test/test_validator.py::test_validation_check_exp_ok[true-^true$|^false$] PASSED [ 73%]
test/test_validator.py::test_validation_check_exp_ok[false-^true$|^false$] PASSED [ 73%]
test/test_validator.py::test_validation_check_exp_ok[-^$|(^true$|^false$)] PASSED [ 73%]
test/test_validator.py::test_validation_check_exp_ok[true-^$|(^true$|^false$)] PASSED [ 73%]
test/test_validator.py::test_validation_check_exp_ok[false-^$|(^true$|^false$)] PASSED [ 74%]
test/test_validator.py::test_validation_check_exp_ok[yes-^yes$|^no$] PASSED [ 74%]
test/test_validator.py::test_validation_check_exp_ok[no-^yes$|^no$] PASSED [ 74%]
test/test_validator.py::test_validation_check_exp_ok[field1=3;field2!=4-^[\\w.\\-]+(?:=|!=|<|>|~)[\\w.\\- ]+(?:[;,][\\w.\\-]+(?:=|!=|<|>|~)[\\w.\\- ]+)*$] PASSED [ 74%]
test/test_validator.py::test_validation_check_exp_ok[sort param--^[\\w_\\-,\\s+.]+$] PASSED [ 74%]
test/test_validator.py::test_validation_check_exp_ok[search param3-^[^;|&^*>]+$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[5-35-[\\d]+$|^[\\d]{1,2}-[\\d]{1,2}$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[xml-^xml$|^json$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[json-^xml$|^json$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[/var/ossec/etc/internal_options-^[\\w\\-.\\\\/:]+$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[/var/ossec/etc/rules/local_rules.xml-^[\\w\\-.\\\\/:]+$] PASSED [ 75%]
test/test_validator.py::test_validation_check_exp_ok[security-eventchannel-^[\\-\\w]+$] PASSED [ 76%]
test/test_validator.py::test_validation_check_exp_ok[local_rules.xml-^[\\w\\-]+\\.xml$] PASSED [ 76%]
test/test_validator.py::test_validation_check_exp_ok[local_rules1.xml,local_rules2.xml-^[\\w\\-]+\\.xml(,[\\w\\-]+\\.xml)*$] PASSED [ 76%]
test/test_validator.py::test_validation_check_exp_ok[scripts/active_response-^!?[\\w\\-.\\\\/:]+$] PASSED [ 76%]
test/test_validator.py::test_validation_check_exp_ok[!scripts/active_response-^!?[\\w\\-.\\\\/:]+$] PASSED [ 76%]
test/test_validator.py::test_validation_check_exp_ok[etc/lists/new_lists3-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ok[v4.4.0-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ok[4.4.0-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ok[wazuh 4.4.0-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ok[wazuh v4.4.0-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ok[aHR0cHM6Ly9zdGFja2FidXNlLmNvbS90YWcvamF2YS8=-^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$] PASSED [ 77%]
test/test_validator.py::test_validation_check_exp_ko[43a,21,34-^\\d+(,\\d+)*$] PASSED [ 78%]
test/test_validator.py::test_validation_check_exp_ko[2019-02-26-^\\d{8}$] PASSED [ 78%]
test/test_validator.py::test_validation_check_exp_ko[543a-^\\d+$] PASSED [ 78%]
test/test_validator.py::test_validation_check_exp_ko[number-^(\\d+|all)$] PASSED [ 78%]
test/test_validator.py::test_validation_check_exp_ko[2380234all-^(\\d+|all)$] PASSED [ 78%]
test/test_validator.py::test_validation_check_exp_ko[alphanumeric1_$param2-^[\\w,\\-.+\\s:]+$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[file-$-^[\\w\\-.%]+(,[\\w\\-.%]+)*$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[file_1$,file_2#,file-3-^[\\w\\-.%]+(,[\\w\\-.%]+)*$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[all-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[.-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[..-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 79%]
test/test_validator.py::test_validation_check_exp_ko[\u89e3\u653e\u52a0\u5927\u4e86\u770b-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 80%]
test/test_validator.py::test_validation_check_exp_ko[\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 80%]
test/test_validator.py::test_validation_check_exp_ko[\u05d1\u05d3\u05d9\u05e7\u05d4-^(?!^(\\.{1,2}|all)$)[A-Za-z0-9.\\-_]+$] PASSED [ 80%]
test/test_validator.py::test_validation_check_exp_ko[.-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 80%]
test/test_validator.py::test_validation_check_exp_ko[..-^(?!^\\.{1,2}$)[A-Za-z0-9.\\-_]+$] PASSED [ 80%]
test/test_validator.py::test_validation_check_exp_ko[192.168.122.256-^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:/(?:[0-9]|[1-2][0-9]|3[0-2]))?$|^any$
|^ANY$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[192.266.1.1-^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:/(?:[0-9]|[1-2][0-9]|3[0-2]))?$|^any$|^AN
Y$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[sort param@-^[\\w_\\-,\\s+.]+$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[search param;-^[^;|&^*>]+$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[$$d909c290d0fb1ca068ffaddf22cbd0-^(?:[\\da-fA-F]{32})?$|(?:[\\da-fA-F]{40})?$|(?:[\\da-fA-F]{56})?$|(?:[\\da-fA-F]{64})?$|(?:[\\da-fA-F]{96})?$|(?:
[\\da-fA-F]{128})?$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[449e3b6ffd9b484c5c645321edd4d61$-[a-zA-Z0-9]+$] PASSED [ 81%]
test/test_validator.py::test_validation_check_exp_ko[2021-13-28-^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])$] PASSED [ 82%]
test/test_validator.py::test_validation_check_exp_ko[2021-10-35-^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])$] PASSED [ 82%]
test/test_validator.py::test_validation_check_exp_ko[2021-11-04Z18:14:04T-^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])[tT](2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?([zZ]|[+-](?:2
[0-3]|[01][0-9]):[0-5][0-9])$] PASSED [ 82%]
test/test_validator.py::test_validation_check_exp_ko[1j-^(\\d+[dhms]?)$] PASSED [ 82%]
test/test_validator.py::test_validation_check_exp_ko[12x-^(\\d+[dhms]?)$] PASSED [ 82%]
test/test_validator.py::test_validation_check_exp_ko[correct-^true$|^false$] PASSED [ 83%]
test/test_validator.py::test_validation_check_exp_ko[wrong-^true$|^false$] PASSED [ 83%]
test/test_validator.py::test_validation_check_exp_ko[yes-^$|(^true$|^false$)] PASSED [ 83%]
test/test_validator.py::test_validation_check_exp_ko[truee-^$|(^true$|^false$)] PASSED [ 83%]
test/test_validator.py::test_validation_check_exp_ko[true-^yes$|^no$] PASSED [ 83%]
test/test_validator.py::test_validation_check_exp_ko[false-^yes$|^no$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[5-35-32-[\\d]+$|^[\\d]{1,2}-[\\d]{1,2}$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[param1,param2,param3-^[\\w.\\-]+(?:=|!=|<|>|~)[\\w.\\- ]+(?:[;,][\\w.\\-]+(?:=|!=|<|>|~)[\\w.\\- ]+)*$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[txt-^xml$|^json$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[exe-^xml$|^json$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[/var/ossec/etc/internal_options$-^[\\w\\-.\\\\/:]+$] PASSED [ 84%]
test/test_validator.py::test_validation_check_exp_ko[/var/ossec/etc/rules/local_rules.xml()-^[\\w\\-.\\\\/:]+$] PASSED [ 85%]
test/test_validator.py::test_validation_check_exp_ko[!scripts/active_response()-^!?[\\w\\-.\\\\/:]+$] PASSED [ 85%]
test/test_validator.py::test_validation_check_exp_ko[scripts\\active_response$-^!?[\\w\\-.\\\\/:]+$] PASSED [ 85%]
test/test_validator.py::test_validation_check_exp_ko[etc/internal_options-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 85%]
test/path-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 85%]
test/test_validator.py::test_validation_check_exp_ko[/var/ossec/etc/lists/new_lists3-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 86%]
test/test_validator.py::test_validation_check_exp_ko[../ossec-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 86%]
dir-^(((etc|ruleset)/(decoders|rules)[\\w\\-/]*)|(etc/lists[\\w\\-/]*))$] PASSED [ 86%]
test/test_validator.py::test_validation_check_exp_ko[v4.4-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 86%]
test/test_validator.py::test_validation_check_exp_ko[4.4-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 86%]
test/test_validator.py::test_validation_check_exp_ko[wazuh 4.4-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 86%]
test/test_validator.py::test_validation_check_exp_ko[wazuh v4.4-^(?:wazuh |)v?\\d+\\.\\d+\\.\\d+$] PASSED [ 87%]
test/test_validator.py::test_validation_check_exp_ko[aDhjasdh3=-^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$] PASSED [ 87%]
test/test_validator.py::test_validation_xml_ok[/tmp/build/wazuh/api/api/test/data/test_xml_1.xml] PASSED [ 87%]
test/test_validator.py::test_validation_xml_ok[/tmp/build/wazuh/api/api/test/data/test_xml_2.xml] PASSED [ 87%]
test/test_validator.py::test_validation_xml_ko[/tmp/build/wazuh/api/api/test/data/test_xml_ko_1.xml] PASSED [ 87%]
test/test_validator.py::test_validation_xml_ko[/tmp/build/wazuh/api/api/test/data/test_xml_ko_2.xml] PASSED [ 88%]
test/test_validator.py::test_allowed_fields PASSED [ 88%]
test/test_validator.py::test_is_safe_path PASSED [ 88%]
test/test_validator.py::test_validation_json_ok[test.33alphanumeric:-alphanumeric] PASSED [ 88%]
test/test_validator.py::test_validation_json_ok[cGVwZQ==-base64] PASSED [ 88%]
test/test_validator.py::test_validation_json_ok[etc/lists/list_me-delete_files_path] PASSED [ 88%]
test/test_validator.py::test_validation_json_ok[etc/decoders/dec35.xml-edit_files_path] PASSED [ 89%]
test/test_validator.py::test_validation_json_ok[etc/decoders/test/dec35.xml-edit_files_path] PASSED [ 89%]
test/test_validator.py::test_validation_json_ok[etc/decoders-get_dirnames_path] PASSED [ 89%]
test/test_validator.py::test_validation_json_ok[AB0264EA00FD9BCDCF1A5B88BC1BDEA4-hash] PASSED [ 89%]
test/test_validator.py::test_validation_json_ok[file_test-33.xml-names] PASSED [ 89%]
test/test_validator.py::test_validation_json_ok[651403650840-numbers] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[/var/wazuh/test-path] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[field=0-query] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[field=0,field2!=3;field3~hi-query] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[34-range] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[34-36-range] PASSED [ 90%]
test/test_validator.py::test_validation_json_ok[test,.-search] PASSED [ 91%]
test/test_validator.py::test_validation_json_ok[+field-sort] PASSED [ 91%]
test/test_validator.py::test_validation_json_ok[-field,+field.subfield-sort] PASSED [ 91%]
test/test_validator.py::test_validation_json_ok[7d-timeframe] PASSED [ 91%]
test/test_validator.py::test_validation_json_ok[1s-timeframe] PASSED [ 91%]
test/test_validator.py::test_validation_json_ok[7m-timeframe] PASSED [ 92%]
test/test_validator.py::test_validation_json_ok[asdfASD0101-wazuh_key] PASSED [ 92%]
test/test_validator.py::test_validation_json_ok[2019-02-26-date] PASSED [ 92%]
test/test_validator.py::test_validation_json_ok[2020-06-24T17:02:53Z-date-time] PASSED [ 92%]
test/test_validator.py::test_validation_json_ok[2020-06-24T17:02:53Z-date-time_or_empty] PASSED [ 92%]
test/test_validator.py::test_validation_json_ok[8743b52063cd84097a65d1633f5c74f5-hash_or_empty] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[test_name-names_or_empty] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[-names_or_empty] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[12345-numbers_or_empty] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[-numbers_or_empty] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[group_name.test-group_names] PASSED [ 93%]
test/test_validator.py::test_validation_json_ok[cdb_test-cdb_filename_path] PASSED [ 94%]
test/test_validator.py::test_validation_json_ok[local_rules.xml-xml_filename_path] PASSED [ 94%]
test/test_validator.py::test_validation_json_ok[local_rules.xml,test_rule.xml-xml_filename] PASSED [ 94%]
test/test_validator.py::test_validation_json_ko[~test.33alphanumeric:-alphanumeric] PASSED [ 94%]
test/test_validator.py::test_validation_json_ko[cGVwZQ===-base64] PASSED [ 94%]
test/test_validator.py::test_validation_json_ko[AB0264EA00FD9BCDCF1A5B88BC1BDEA4.-hash] PASSED [ 95%]
test/file_test-33.xml-names] PASSED [ 95%]
test/test_validator.py::test_validation_json_ko[a651403650840-numbers] PASSED [ 95%]
test/test_validator.py::test_validation_json_ko[!/var/wazuh/test-path] PASSED [ 95%]
test/test_validator.py::test_validation_json_ko[1234-query] PASSED [ 95%]
test/test_validator.py::test_validation_json_ko[34--range] PASSED [ 95%]
test/test_validator.py::test_validation_json_ko[34-36-9-range] PASSED [ 96%]
test/test_validator.py::test_validation_json_ko[test,.&-search] PASSED [ 96%]
test/test_validator.py::test_validation_json_ko[+field&-sort] PASSED [ 96%]
test/test_validator.py::test_validation_json_ko[-field;+field.subfield-sort] PASSED [ 96%]
test/test_validator.py::test_validation_json_ko[7a-timeframe] PASSED [ 96%]
test/test_validator.py::test_validation_json_ko[s1-timeframe] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[asdfASD0101!-wazuh_key] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[2019-02-26-test-date] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[2020-06-24 17:02:53.034374-date-time] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[2020-06-24 17:02:53.034374-date-time_or_empty] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[testtest-hash_or_empty] PASSED [ 97%]
test/test_validator.py::test_validation_json_ko[test_name test-names_or_empty] PASSED [ 98%]
test/test_validator.py::test_validation_json_ko[12345abc-numbers_or_empty] PASSED [ 98%]
test/test_validator.py::test_validation_json_ko[group_name.test -group_names] PASSED [ 98%]
test/test-cdb_filename_path] PASSED [ 98%]
test/test_validator.py::test_validation_json_ko[cdb_test.test-cdb_filename_path] PASSED [ 98%]
test/.xml-xml_filename_path] PASSED [ 99%]
test/test_validator.py::test_validation_json_ko[local_rules-xml_filename_path] PASSED [ 99%]
test/test_validator.py::test_validation_json_ko[local_rules.xml,../test_rule.xml-xml_filename] PASSED [ 99%]
test/test_validator.py::test_validation_json_ko[local_rules.xml,test_rule-xml_filename] PASSED [ 99%]
test/test_validator.py::test_check_component_configuration_pair[agent-client-None] PASSED [ 99%]
test/test_validator.py::test_check_component_configuration_pair[agent-wmodules-expected_response1] PASSED [100%]
=============================== warnings summary ===============================
/tmp/build/wazuh/framework/wazuh/core/utils.py:956
/tmp/build/wazuh/framework/wazuh/core/utils.py:956: DeprecationWarning: invalid escape sequence \g
data = re.sub(r'^&backslash;<(.*[^>])$', '&backslash;<\g<1>', data)
/home/test_user/.local/lib/python3.9/site-packages/jsonschema/compat.py:6
/home/test_user/.local/lib/python3.9/site-packages/jsonschema/compat.py:6
/home/test_user/.local/lib/python3.9/site-packages/jsonschema/compat.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Py
thon 3.3, and in 3.10 it will stop working
from collections import MutableMapping, Sequence # noqa
/tmp/build/wazuh/framework/wazuh/core/InputValidator.py:18
/tmp/build/wazuh/framework/wazuh/core/InputValidator.py:18: DeprecationWarning: invalid escape sequence \w
"""Abstract function to check a name matches a regex (\\w+ by default).
/home/test_user/.local/lib/python3.9/site-packages/aiohttp_jinja2/helpers.py:24
/home/test_user/.local/lib/python3.9/site-packages/aiohttp_jinja2/helpers.py:24: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
def url_for(
/home/test_user/.local/lib/python3.9/site-packages/aiohttp_jinja2/helpers.py:62
/home/test_user/.local/lib/python3.9/site-packages/aiohttp_jinja2/helpers.py:62: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
def static_url(context: _Context, static_file_path: str) -> str:
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:48
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:48: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def problems_middleware(request, handler):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:169
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:169: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _get_openapi_json(self, request):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:177
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:177: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _get_openapi_yaml(self, request):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:236
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:236: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _get_swagger_ui_home(self, req):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:246
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:246: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _get_swagger_ui_config(self, req):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:295
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:295: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def get_request(cls, req):
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:324
/home/test_user/.local/lib/python3.9/site-packages/connexion/apis/aiohttp_api.py:324: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def get_response(cls, response, mimetype=None, request=None):
models/test/test_model.py:27
/tmp/build/wazuh/api/api/models/test/test_model.py:27: PytestCollectionWarning: cannot collect test class 'TestModel' because it has a __init__ constructor (from: api/models/test/test_model.py)
class TestModel(bm.Body):
test/test_util.py:16
/tmp/build/wazuh/api/api/test/test_util.py:16: PytestCollectionWarning: cannot collect test class 'TestClass' because it has a __init__ constructor (from: api/test/test_util.py)
class TestClass:
api/test/test_authentication.py::test_check_token
api/test/test_configuration.py::test_read_configuration[read_config0]
/usr/local/lib/python3.9/unittest/mock.py:2059: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
setattr(_type, entry, MagicProxy(entry, self))
api/test/test_configuration.py::test_read_wrong_configuration[config32]
/home/test_user/.local/lib/python3.9/site-packages/jsonschema/_validators.py:363: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
for index, subschema in enumerate(anyOf):
-- Docs: https://docs.pytest.org/en/latest/warnings.html
- generated html file: file:///efs/test_unit/Test_unit/B41746/B41746_pytest_api.html -
====================== 544 passed, 18 warnings in 12.99s =======================