Report generated on 29-Aug-2022 at 13:59:27 by pytest-html v3.1.1
Packages | {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.2"} |
Platform | Linux-5.15.0-46-generic-x86_64-with-glibc2.35 |
Plugins | {"html": "3.1.1", "metadata": "2.0.1", "testinfra": "5.0.0"} |
Python | 3.8.10 |
4 tests ran in 398.73 seconds.
(Un)check the boxes to filter the results.
4 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/end_to_end/test_basic_cases/test_fim/test_fim_windows/test_fim_windows.py::test_fim_windows[create_file_windows] | 106.54 | |
-----------------------------Captured stdout setup------------------------------ PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Generate a general validation playbook] ********************************** changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 PLAY [General validation phase] ************************************************ TASK [Gathering Facts] ********************************************************* ok: [windows-agent] ok: [centos-agent] ok: [centos-manager] TASK [host_checker : Set flag and informative variable] ************************ ok: [centos-manager] ok: [windows-agent] ok: [centos-agent] TASK [host_checker : Check default Python version (Linux)] ********************* skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [host_checker : Get Python version (Windows)] ***************************** skipping: [centos-manager] skipping: [centos-agent] changed: [windows-agent] TASK [host_checker : Check default Python version (Windows)] ******************* skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [host_checker : Check OS (Linux)] ***************************************** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [host_checker : Check OS (Windows)] *************************************** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** skipping: [windows-agent] changed: [centos-manager] changed: [centos-agent] TASK [host_checker : Populate services facts] ********************************** skipping: [windows-agent] ok: [centos-agent] ok: [centos-manager] TASK [host_checker : Check the status of Wazuh components (Manager)] *********** skipping: [centos-manager] => (item=wazuh-manager.service) skipping: [centos-manager] => (item=wazuh-indexer.service) skipping: [centos-manager] => (item=filebeat.service) skipping: [windows-agent] => (item=wazuh-manager.service) skipping: [windows-agent] => (item=wazuh-indexer.service) skipping: [windows-agent] => (item=filebeat.service) skipping: [centos-agent] => (item=wazuh-manager.service) skipping: [centos-agent] => (item=wazuh-indexer.service) skipping: [centos-agent] => (item=filebeat.service) TASK [host_checker : set_fact] ************************************************* skipping: [centos-manager] skipping: [windows-agent] ok: [centos-agent] TASK [host_checker : Check the status of Wazuh Agent] ************************** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** skipping: [windows-agent] changed: [centos-manager] changed: [centos-agent] TASK [host_checker : Run filebeat test] **************************************** skipping: [windows-agent] skipping: [centos-agent] changed: [centos-manager] TASK [host_checker : Check the connection between Filebeat and Wazuh Indexer] *** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** skipping: [windows-agent] changed: [centos-manager] changed: [centos-agent] TASK [host_checker : Test connection with Wazuh Indexer] *********************** skipping: [windows-agent] skipping: [centos-agent] fatal: [centos-manager -> localhost]: FAILED! => {"changed": false, "msg": "The shell action failed to execute in the expected time frame (3) and was terminated"} ...ignoring TASK [host_checker : Check the connection between Controller node and Wazuh Indexer] *** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] TASK [host_checker : set_fact] ************************************************* ok: [centos-manager] ok: [windows-agent] ok: [centos-agent] TASK [host_checker : Verify if any check have failed] ************************** skipping: [centos-manager] skipping: [windows-agent] skipping: [centos-agent] PLAY RECAP ********************************************************************* centos-agent : ok=8 changed=3 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 centos-manager : ok=9 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=1 windows-agent : ok=4 changed=1 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 PLAY [Configure Windows agent environment] ************************************* TASK [Gathering Facts] ********************************************************* ok: [windows-agent] TASK [Create directory to monitor] ********************************************* changed: [windows-agent] TASK [Add directory to syscheck configuration] ********************************* TASK [manage_wazuh_configurations : Configure ossec.conf linux] **************** skipping: [windows-agent] TASK [manage_wazuh_configurations : Configure ossec.conf windows] ************** changed: [windows-agent] TASK [Truncate ossec.log] ****************************************************** changed: [windows-agent] TASK [Restart wazuh-agent] ***************************************************** TASK [manage_wazuh : Get installation type] ************************************ skipping: [windows-agent] TASK [manage_wazuh : Restart manager service on linux] ************************* skipping: [windows-agent] TASK [manage_wazuh : Restart agent service on linux] *************************** skipping: [windows-agent] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* changed: [windows-agent] TASK [Wait for whodata start] ************************************************** ok: [windows-agent] PLAY RECAP ********************************************************************* windows-agent : ok=6 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 { "ansible_connection": "ssh", "ansible_host": "172.31.6.105", "ansible_ssh_common_args": "-o StrictHostKeyChecking=no -i /home/mauro/ephemeral.pem", "ansible_user": "qa", "ansible_winrm_server_cert_validation": "ignore", "aws_access_key_id": "AKIA6B6B4XJHMKALDJGT", "aws_region": "us-east-1", "aws_secret_access_key": "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", "bucket_name": "aws-cloudtrail-logs-966237403726-09245154", "dashboard_password": "admin", "dashboard_user": "admin", "s3_url": "https://s3.amazonaws.com/ci.wazuh.com/qa/testing_files/end_to_end", "slack_channel": "C03EZKLR682", "slack_token": "xoxb-746532534132-3509688290194-ITgoGLhy542RzfE7p2FxVHVN", "virustotal_key": "3e4db70c621cd9dd9e3400254297eea03215987facca9931a42dcb86ffb8aa78", "web_hook_url": "https://hooks.slack.com/services/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" } { "ansible_connection": "ssh", "ansible_host": "172.31.6.105", "ansible_ssh_common_args": "-o StrictHostKeyChecking=no -i /home/mauro/ephemeral.pem", "ansible_user": "qa", "ansible_winrm_server_cert_validation": "ignore", "aws_access_key_id": "AKIA6B6B4XJHMKALDJGT", "aws_region": "us-east-1", "aws_secret_access_key": "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", "bucket_name": "aws-cloudtrail-logs-966237403726-09245154", "dashboard_password": "admin", "dashboard_user": "admin", "s3_url": "https://s3.amazonaws.com/ci.wazuh.com/qa/testing_files/end_to_end", "slack_channel": "C03EZKLR682", "slack_token": "xoxb-746532534132-3509688290194-ITgoGLhy542RzfE7p2FxVHVN", "virustotal_key": "3e4db70c621cd9dd9e3400254297eea03215987facca9931a42dcb86ffb8aa78", "web_hook_url": "https://hooks.slack.com/services/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" } PLAY [Clean alerts file] ******************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Truncate alert.json] ***************************************************** TASK [manage_alerts : Truncate file] ******************************************* changed: [centos-manager] PLAY [Generate events] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [windows-agent] TASK [Create a file into the monitored folder] ********************************* changed: [windows-agent] PLAY [Get alerts file] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Wait for alert to be generated] ****************************************** ok: [centos-manager] TASK [Get alert json] ********************************************************** TASK [manage_alerts : Get alerts.json] ***************************************** changed: [centos-manager] PLAY RECAP ********************************************************************* centos-manager : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 windows-agent : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |||
Passed | tests/end_to_end/test_basic_cases/test_fim/test_fim_windows/test_fim_windows.py::test_fim_windows[modify_file_windows] | 33.37 | |
-----------------------------Captured stdout setup------------------------------ PLAY [Clean alerts file] ******************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Truncate alert.json] ***************************************************** TASK [manage_alerts : Truncate file] ******************************************* changed: [centos-manager] PLAY [Generate events] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [windows-agent] TASK [Modify a file from the monitored folder] ********************************* changed: [windows-agent] PLAY [Get alerts file] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Wait for alert to be generated] ****************************************** ok: [centos-manager] TASK [Get alert json] ********************************************************** TASK [manage_alerts : Get alerts.json] ***************************************** changed: [centos-manager] PLAY RECAP ********************************************************************* centos-manager : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 windows-agent : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |||
Passed | tests/end_to_end/test_basic_cases/test_fim/test_fim_windows/test_fim_windows.py::test_fim_windows[delete_file_windows] | 45.00 | |
-----------------------------Captured stdout setup------------------------------ PLAY [Clean alerts file] ******************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Truncate alert.json] ***************************************************** TASK [manage_alerts : Truncate file] ******************************************* changed: [centos-manager] PLAY [Generate events] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [windows-agent] TASK [Delete a file from the monitored folder] ********************************* changed: [windows-agent] PLAY [Get alerts file] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Wait for alert to be generated] ****************************************** ok: [centos-manager] TASK [Get alert json] ********************************************************** TASK [manage_alerts : Get alerts.json] ***************************************** changed: [centos-manager] PLAY RECAP ********************************************************************* centos-manager : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 windows-agent : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ----------------------------Captured stdout teardown---------------------------- PLAY [Cleanup Windows agent environment] *************************************** TASK [Gathering Facts] ********************************************************* ok: [windows-agent] TASK [Delete syscheck configuration] ******************************************* changed: [windows-agent] TASK [Delete directory to monitor (Windows)] *********************************** changed: [windows-agent] TASK [Restart wazuh-agent] ***************************************************** TASK [manage_wazuh : Get installation type] ************************************ skipping: [windows-agent] TASK [manage_wazuh : Restart manager service on linux] ************************* skipping: [windows-agent] TASK [manage_wazuh : Restart agent service on linux] *************************** skipping: [windows-agent] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* changed: [windows-agent] PLAY RECAP ********************************************************************* windows-agent : ok=4 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 | |||
Passed | tests/end_to_end/test_basic_cases/test_unauthorized_processes_detection/test_unauthorized_processes_detection.py::test_unauthorized_processes_detection[netcat] | 213.74 | |
-----------------------------Captured stdout setup------------------------------ PLAY [Configure Linux agent environment] *************************************** TASK [Gathering Facts] ********************************************************* ok: [centos-agent] ok: [ubuntu-agent] TASK [Configure agent to get a list of running processes] ********************** TASK [manage_wazuh_configurations : Configure ossec.conf linux] **************** changed: [ubuntu-agent] changed: [centos-agent] TASK [manage_wazuh_configurations : Configure ossec.conf windows] ************** skipping: [ubuntu-agent] skipping: [centos-agent] TASK [Restart wazuh-agent] ***************************************************** TASK [manage_wazuh : Get installation type] ************************************ changed: [ubuntu-agent] changed: [centos-agent] TASK [manage_wazuh : Restart manager service on linux] ************************* skipping: [ubuntu-agent] skipping: [centos-agent] TASK [manage_wazuh : Restart agent service on linux] *************************** changed: [ubuntu-agent] changed: [centos-agent] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* skipping: [ubuntu-agent] skipping: [centos-agent] TASK [Install netcat (CentOS)] ************************************************* skipping: [ubuntu-agent] changed: [centos-agent] TASK [Install netcat (Ubuntu)] ************************************************* skipping: [centos-agent] changed: [ubuntu-agent] PLAY [Configure manager environment] ******************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Configure local rules] *************************************************** TASK [manage_wazuh_configurations : Configure local rules] ********************* changed: [centos-manager] TASK [Restart wazuh-manager] *************************************************** TASK [manage_wazuh : Get installation type] ************************************ changed: [centos-manager] TASK [manage_wazuh : Restart manager service on linux] ************************* changed: [centos-manager] TASK [manage_wazuh : Restart agent service on linux] *************************** skipping: [centos-manager] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* skipping: [centos-manager] PLAY RECAP ********************************************************************* centos-agent : ok=5 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 centos-manager : ok=4 changed=3 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 ubuntu-agent : ok=5 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 { "ansible_connection": "ssh", "ansible_host": "172.31.6.105", "ansible_ssh_common_args": "-o StrictHostKeyChecking=no -i /home/mauro/ephemeral.pem", "ansible_user": "qa", "ansible_winrm_server_cert_validation": "ignore", "aws_access_key_id": "AKIA6B6B4XJHMKALDJGT", "aws_region": "us-east-1", "aws_secret_access_key": "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", "bucket_name": "aws-cloudtrail-logs-966237403726-09245154", "dashboard_password": "admin", "dashboard_user": "admin", "s3_url": "https://s3.amazonaws.com/ci.wazuh.com/qa/testing_files/end_to_end", "slack_channel": "C03EZKLR682", "slack_token": "xoxb-746532534132-3509688290194-ITgoGLhy542RzfE7p2FxVHVN", "virustotal_key": "3e4db70c621cd9dd9e3400254297eea03215987facca9931a42dcb86ffb8aa78", "web_hook_url": "https://hooks.slack.com/services/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" } { "ansible_connection": "ssh", "ansible_host": "172.31.6.105", "ansible_ssh_common_args": "-o StrictHostKeyChecking=no -i /home/mauro/ephemeral.pem", "ansible_user": "qa", "ansible_winrm_server_cert_validation": "ignore", "aws_access_key_id": "AKIA6B6B4XJHMKALDJGT", "aws_region": "us-east-1", "aws_secret_access_key": "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", "bucket_name": "aws-cloudtrail-logs-966237403726-09245154", "dashboard_password": "admin", "dashboard_user": "admin", "s3_url": "https://s3.amazonaws.com/ci.wazuh.com/qa/testing_files/end_to_end", "slack_channel": "C03EZKLR682", "slack_token": "xoxb-746532534132-3509688290194-ITgoGLhy542RzfE7p2FxVHVN", "virustotal_key": "3e4db70c621cd9dd9e3400254297eea03215987facca9931a42dcb86ffb8aa78", "web_hook_url": "https://hooks.slack.com/services/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" } PLAY [Clean alerts file] ******************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Truncate alert.json] ***************************************************** TASK [manage_alerts : Truncate file] ******************************************* changed: [centos-manager] PLAY [Generate events] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-agent] ok: [ubuntu-agent] TASK [Run netcat] ************************************************************** fatal: [ubuntu-agent]: FAILED! => {"changed": false, "msg": "The command action failed to execute in the expected time frame (30) and was terminated"} ...ignoring fatal: [centos-agent]: FAILED! => {"changed": false, "msg": "The command action failed to execute in the expected time frame (30) and was terminated"} ...ignoring TASK [Wait for alert] ********************************************************** ok: [ubuntu-agent] ok: [centos-agent] TASK [Kill netcat] ************************************************************* changed: [ubuntu-agent] changed: [centos-agent] PLAY [Get alerts file] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Get alert json] ********************************************************** TASK [manage_alerts : Get alerts.json] ***************************************** changed: [centos-manager] PLAY RECAP ********************************************************************* centos-agent : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 centos-manager : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ubuntu-agent : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 ----------------------------Captured stdout teardown---------------------------- PLAY [Cleanup Linux agent environment] ***************************************** TASK [Gathering Facts] ********************************************************* ok: [centos-agent] ok: [ubuntu-agent] TASK [Delete agent configuration] ********************************************** changed: [ubuntu-agent] changed: [centos-agent] TASK [Restart wazuh-agent] ***************************************************** TASK [manage_wazuh : Get installation type] ************************************ changed: [centos-agent] changed: [ubuntu-agent] TASK [manage_wazuh : Restart manager service on linux] ************************* skipping: [ubuntu-agent] skipping: [centos-agent] TASK [manage_wazuh : Restart agent service on linux] *************************** changed: [ubuntu-agent] changed: [centos-agent] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* skipping: [ubuntu-agent] skipping: [centos-agent] PLAY [Cleanup manager environment] ********************************************* TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [Delete added rules] ****************************************************** changed: [centos-manager] TASK [Restart wazuh-manager] *************************************************** TASK [manage_wazuh : Get installation type] ************************************ changed: [centos-manager] TASK [manage_wazuh : Restart manager service on linux] ************************* changed: [centos-manager] TASK [manage_wazuh : Restart agent service on linux] *************************** skipping: [centos-manager] TASK [manage_wazuh : Restart wazuh on Windows] ********************************* skipping: [centos-manager] PLAY RECAP ********************************************************************* centos-agent : ok=4 changed=3 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 centos-manager : ok=4 changed=3 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 ubuntu-agent : ok=4 changed=3 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 |