Report generated on 06-May-2024 at 08:50:53 by pytest-html v2.1.1
106 tests ran in 2.24 seconds.
(Un)check the boxes to filter the results.
106 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Passed | tests/test_maltiverse.py::test_get_ip | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_hostname | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_url | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_sample[md5-maltiverse.Maltiverse.sample_get_by_md5] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_sample[sha1-maltiverse.Maltiverse.sample_get_by_sha1] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_by_md5 | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_by_sha1 | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_main_exit_with_invalid_number_of_arguments[1] | 0.01 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_main_exit_with_invalid_number_of_arguments[2] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_main_exit_with_invalid_number_of_arguments[3] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_main_enables_debug | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_process_args_exit_with_invalid_hook_url[example.com] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_process_args_exit_with_invalid_hook_url[http://] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_process_args_exit_with_invalid_hook_url[:8080/path] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_load_alert | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_load_alert_exit_with_invalid_file | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_load_alert_exit_with_invalid_file_content | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_request_maltiverse_info_make_expected_calls[data0-maltiverse.Maltiverse.sample_get_by_md5] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_request_maltiverse_info_make_expected_calls[data1-maltiverse.Maltiverse.sample_get_by_sha1] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_request_maltiverse_info_make_expected_calls[data2-maltiverse.Maltiverse.ip_get] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_request_maltiverse_info_make_expected_calls[data3-maltiverse.Maltiverse.hostname_get] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_request_maltiverse_info_make_expected_calls[data4-maltiverse.Maltiverse.url_get] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_match_ecs_type[ip-ipv4-addr] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_match_ecs_type[hostname-domain-name] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_match_ecs_type[sample-file] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_match_ecs_type[url-url] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data0-High] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data1-Medium] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data2-Medium] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data3-Low] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data4-None] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data5-Low] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data6-None] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_ioc_confidence[data7-Not Specified] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_send_event[msg-agent0-1:maltiverse:"msg"] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_send_event[msg-agent1-1:maltiverse:"msg"] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_send_event[msg-agent2-1:[001] (Agent1) 192.168.0.1->maltiverse:"msg"] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_send_event_exits_when_socket_exception_raised[111-6] | 0.00 | |
------------------------------Captured stdout call------------------------------ ERROR: Wazuh is not running. | |||
Passed | tests/test_maltiverse.py::test_send_event_exits_when_socket_exception_raised[90-7] | 0.00 | |
------------------------------Captured stdout call------------------------------ ERROR: Message too long to send to Wazuh. | |||
Passed | tests/test_maltiverse.py::test_maltiverse_alert | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_maltiverse_alert_does_not_include_sources | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_mitre_information[ioc0-expected0] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_mitre_information[ioc1-expected1] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_mitre_information[ioc2-expected2] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_get_mitre_information[ioc3-expected3] | 0.00 | |
No log output captured. | |||
Passed | tests/test_maltiverse.py::test_debug | 0.00 | |
------------------------------Captured stdout call------------------------------ some message | |||
Passed | tests/test_pagerduty.py::test_main_bad_arguments_exit | 0.00 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_main_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_main | 0.01 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_process_args_exit[FileNotFoundError-6] | 0.00 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_process_args_exit[side_effect1-7] | 0.00 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_process_args | 0.01 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_process_args_not_sending_message | 0.01 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_debug | 0.00 | |
------------------------------Captured stdout call------------------------------ {'payload': {'summary': 'alert description', 'timestamp': '2023-02-23T00:00:00+00:00', 'source': 'v', 'severity': 'info'}, 'routing_key': '', 'event_action': 'trigger', 'client': 'Wazuh-X -- Alert generated', 'client_url': 'https://monitoring.example.com'} | |||
Passed | tests/test_pagerduty.py::test_send_msg_raise_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_pagerduty.py::test_send_msg | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_main_bad_arguments_exit | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_main_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_main | 0.01 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_process_args_exit[FileNotFoundError-6] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_process_args_exit[side_effect1-7] | 0.01 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_process_args | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_process_args_not_sending_message | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_debug | 0.01 | |
------------------------------Captured stdout call------------------------------ {"severity": 1, "pretext": "Wazuh-X -- Alert generated", "title": "alert description", "text": "full log.", "rule_id": "rule-id", "timestamp": "2023-02-23T00:00:00+00:00", "id": "alert_id", "all_fields": {"timestamp": "2023-02-23T00:00:00+00:00", "rule": {"level": 0, "description": "alert description", "id": "rule-id", "firedtimes": 1}, "id": "alert_id", "full_log": "full log.", "decoder": {"name": "decoder-name"}, "location": "wazuh-X"}} | |||
Passed | tests/test_shuffle.py::test_generate_msg[87924-] | 0.00 | |
------------------------------Captured stdout call------------------------------ Skipping rule 87924 | |||
Passed | tests/test_shuffle.py::test_generate_msg[rule-id-{"severity": 1, "pretext": "Wazuh-X -- Alert generated", "title": "alert description", "text": "full log.", "rule_id": "rule-id", "timestamp": "2023-02-23T00:00:00+00:00", "id": "alert_id", "all_fields": {"timestamp": "2023-02-23T00:00:00+00:00", "rule": {"level": 0, "description": "alert description", "id": "rule-id", "firedtimes": 1}, "id": "alert_id", "full_log": "full log.", "decoder": {"name": "decoder-name"}, "location": "wazuh-X"}}] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_generate_msg_severity[3-1] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_generate_msg_severity[5-2] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_generate_msg_severity[7-2] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_generate_msg_severity[8-3] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_filter_msg[87924-False] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_filter_msg[rule-id-True] | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_send_msg_raise_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_shuffle.py::test_send_msg | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_main_bad_arguments_exit | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_main_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_main | 0.01 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_process_args_exit[FileNotFoundError-6] | 0.05 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_process_args_exit[side_effect1-7] | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_process_args | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_process_args_not_sending_message | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_debug | 0.01 | |
------------------------------Captured stdout call------------------------------ {"severity": 1, "pretext": "Wazuh-X -- Alert generated", "title": "alert description", "text": "full log.", "rule_id": "rule-id", "timestamp": "year-month-dayThours:minuts:seconds+0000", "id": "alert_id", "all_fields": {"timestamp": "2023-02-23T00:00:00+00:00", "rule": {"level": 0, "description": "alert description", "id": "rule-id", "firedtimes": 1}, "id": "alert_id", "full_log": "full log.", "decoder": {"name": "decoder-name"}, "location": "wazuh-X", "author_name": "The amazing Wazuh","footer": "Slack API"} | |||
Passed | tests/test_slack.py::test_send_msg_raise_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_slack.py::test_send_msg | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_main_bad_arguments_exit | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_main_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_main | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_process_args_exit[FileNotFoundError-6] | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_process_args_exit[side_effect1-7] | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_process_args | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_process_args_not_sending_message | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_debug | 0.00 | |
------------------------------Captured stdout call------------------------------ {'payload': {'summary': 'alert description', 'timestamp': '2023-02-23T00:00:00+00:00', 'source': 'v', 'severity': 'info'}, 'routing_key': '', 'event_action': 'trigger', 'client': 'Wazuh-X -- Alert generated', 'client_url': 'https://monitoring.example.com', 'agent': {'id': '001', 'name': 'The agent', 'ip': '1.1.1.1'}} | |||
Passed | tests/test_virustotal.py::test_send_msg_raise_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_send_msg | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_1 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_2 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_3 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_4 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_5 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_6 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_7 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_fail_8 | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_md5_after_check_ok | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_exception | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_timeout_and_retries_expired | 0.00 | |
No log output captured. | |||
Passed | tests/test_virustotal.py::test_request_virustotal_info_timeout_and_retries_not_expired | 0.00 | |
No log output captured. |