-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTT1 - Iteration 3 - Test module - Add Wazuh central components tests #4844
Comments
Update report - On HoldThis issue will be paused until we complete the fix in the IPs returned by the Vagrant provider that is required to correctly execute the tests and get the IPs of every central component: Also, the test_install requires to discuss about the check-files, the same goes for the issue DTT1 - Iteration 3 - Test module - Improve Wazuh agent tests. |
UpdateSome tests were researched. |
UpdateAfter speaking with @QU3B1M , I have understood that the testing of |
UpdateIt seems that the structure needed to generate an infrastructure provisioned with the central components is not developed. It will remain on hold until we can confirm this. |
UpdateThe tests that I could find in the the repository Actions to be created:
After conversing with @fcaffieri, we realized that the installation of the central component should be approached by following the steps below:
On the other side, as these tests are not going to work between a manager and an agent, changes should be done in the fixture (yaml file) where 2 central components should be mentioned to allocate and provision.
Using the following fixture: version: 0.1
description: This workflow is used to test agents deployment por DDT1 PoC
variables:
#agents-os:
manager-os:
- linux-ubuntu-22.04-amd64
- linux-centos-8-amd64
infra-provider: vagrant
working-dir: /tmp/dtt1-poc
tasks:
# Unique manager allocate task
- task: "allocate-{manager}"
description: "Allocate resources for the managers."
do:
this: process
with:
path: python3
args:
- modules/allocation/main.py
- action: create
- provider: "{infra-provider}"
- size: large
- composite-name: "{manager-os}"
- inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
- track-output: "{working-dir}/manager-{manager-os}/track.yaml"
foreach:
- variable: manager-os
as: manager This error was present: (deplo_test) akim@akim-PC:~/Desktop/test/wazuh-qa/deployability$ python3 -m workflow_engine /home/akim/Desktop/test/wazuh-qa/deployability/modules/workflow_engine/examples/dtt1-agents-poc.yaml
[2024-02-26 18:59:39] [INFO] [1704038] [MainThread] [workflow_engine]: Executing DAG tasks.
[2024-02-26 18:59:39] [INFO] [1704038] [MainThread] [workflow_engine]: Executing tasks in parallel.
[2024-02-26 18:59:39] [INFO] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-ubuntu-22.04-amd64] Starting task.
[2024-02-26 18:59:41] [ERROR] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-ubuntu-22.04-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in <module>
main()
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 26, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
return cls._create_instance(base_dir, params, config)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 48, in _create_instance
config = cls.__parse_config(params, credentials, instance_id)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 136, in __parse_config
os_specs = cls._get_os_specs()[params.composite_name]
KeyError: "['linux-ubuntu-22.04-amd64', 'linux-centos-8-amd64']"
.
[2024-02-26 18:59:41] [INFO] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-centos-8-amd64] Starting task.
[2024-02-26 18:59:41] [ERROR] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-centos-8-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in <module>
main()
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 26, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
return cls._create_instance(base_dir, params, config)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 48, in _create_instance
config = cls.__parse_config(params, credentials, instance_id)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 136, in __parse_config
os_specs = cls._get_os_specs()[params.composite_name]
KeyError: "['linux-ubuntu-22.04-amd64', 'linux-centos-8-amd64']"
.
[2024-02-26 18:59:41] [INFO] [1704038] [MainThread] [workflow_engine]: Executing Reverse DAG tasks.
[2024-02-26 18:59:41] [INFO] [1704038] [MainThread] [workflow_engine]: Executing tasks in parallel. Using the following fixture it worked
However, some issues around the naming of the allocation happens
Changing the manager-os to manager in inventory and track path made the allocator work correctly:
|
UpdateInstalls the manager in the host of the inventory IP
Installs the manager in the host of the inventory IP (host1)
Should install the manager in the host of the inventory IP (host2), however, some issues around the WazuhAPI methods are raised
Trying to check how the flow is moving to WazuhAPI get_agents method On the other hand, testing scp from one manager host to another. I could find that the scp is not working: Even changing the sshd_config |
UpdateReviewing the tests (agent and central) manager-agent => manager provisioned by provisioner manager-manager => manager can't be provisioned by provisioner => It should generate certs (provisioner can't generate them becase the module doesn't know the type of test to get the manager2 ip) Points to be modified
The problem is that as the module test is executed inside of 1 host, in case that I want to generate certs, share them and trigger actions in both hosts, it will not be possible to do so being inside of 1 host. These actions should be done by the test module using ansible. Considering this new approach.
Certs_generation done
While
Editing /etc/ssh/sshd_d in both managers (ubuntu22.04 and ubuntu20.04) Restarting using Ubuntu20.04, 18.04, rhel7 allowed me to connect and transfer files using scp. Using sshpass + scp it was possible to pass a file from one host to another. After creating a couple of playbooks in order to satisfy the setup and running them manually, I could finally get the following result
The point now is to create the best arrangement of the playbook to satisfy the test requirements. On the other hand, sshpass was not working 100% well. |
UpdateAfter some discussion about the test module with the DTT Team we conclude that TEST MODULE SHOULD:
On the other hand, we will do a poll to check the possible requirements for the test module before we refactor the module. Poll Models # 1https://docs.google.com/forms/d/1XCRTax17I949P39puYrNRXoOV_cLL1j8htg8iVEOIco/edit # 2https://docs.google.com/forms/d/1uRpbjlDMb2ojOn_o3PPAWPCw9wE-HsQ6_gDlNq3yC2w/edit The current module has many points to enhance and scripts done until now will be reused. Creating a layer that allows the execution of multihost commands.Using Considering this point:
All the steps were tested in each handler. |
UpdateThe second survey has been delivered to the QA team. Meanwhile, a layer has been developed that enables remote command execution from the executing node. This layer is being tested and is functional for installations, leading to the decision to proceed solely using Python without Ansible for generating actions in the tests. This decision was evaluated collectively with @fcaffieri and @QU3B1M |
UpdateThe new layer was created. I will start to join all the objects to the existing test method. |
UpdateTesting in AWS Some adjustments were required around public and private IP in certs creation, cluster configuration, ssh port and scp PART I Ubuntu22.04:Centos-7 🟢
Redhat-9:Redhat-8 🟢
Debian-10:Debian-11 🟢
Debian-12:Ubuntu20.04 🟢
|
PART II Centos-8:Amazon-2 🟢(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-2
":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}'
[2024-03-22 11:51:35] [INFO] TESTER: Running tests for ec2-52-23-246-132.compute-1.amazonaws.com
[2024-03-22 11:51:35] [INFO] TESTER: Running tests for ec2-34-230-24-39.compute-1.amazonaws.com
[2024-03-22 11:51:35] [INFO] TESTER: Dependencies ec2-3-91-224-190.compute-1.amazonaws.com
[2024-03-22 11:51:35] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 11:51:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 11:51:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:51:35] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=ec2-52-23-246-132.compute-1.amazonaws.com) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.009477'
end: '2024-03-22 11:51:40.845011'
item: ec2-52-23-246-132.compute-1.amazonaws.com
msg: ''
rc: 0
start: '2024-03-22 11:51:40.835534'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=ec2-34-230-24-39.compute-1.amazonaws.com) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010318'
end: '2024-03-22 11:51:41.018842'
item: ec2-34-230-24-39.compute-1.amazonaws.com
msg: ''
rc: 0
start: '2024-03-22 11:51:41.008524'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 11:51:41] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 11:51:41] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 11:51:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:51:41] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test install for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_install.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:06:25.507146'
end: '2024-03-22 11:58:09.839955'
msg: ''
rc: 0
start: '2024-03-22 11:51:44.332809'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
ssh: connect to host ec2-52-23-246-132.compute-1.amazonaws.com port 2200: Connection refused
ssh: connect to host ec2-52-23-246-132.compute-1.amazonaws.com port 2200: Connection refused
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Failed to execute operation: No such file or directory
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 5 items
modules/testing/tests/test_manager/test_install.py::test_installation pwd
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
/var/ossec/bin/cluster_control -l
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v
pwd
test -f /home/centos/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r
pwd
test -f /home/centos/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 5 passed, 2 warnings in 384.82s (0:06:24) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 11:58:10] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 11:58:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:58:10] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com]
TASK [Clean test directory] ****************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 11:58:25] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 11:58:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:58:25] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com]
TASK [Clean test directory] ****************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 11:58:43] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}}
(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --tar
gets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}'
[2024-03-22 12:04:32] [INFO] TESTER: Running tests for ec2-52-23-246-132.compute-1.amazonaws.com
[2024-03-22 12:04:32] [INFO] TESTER: Running tests for ec2-34-230-24-39.compute-1.amazonaws.com
[2024-03-22 12:04:32] [INFO] TESTER: Dependencies ec2-3-91-224-190.compute-1.amazonaws.com
[2024-03-22 12:04:32] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 12:04:32] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 12:04:32] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:04:32] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=ec2-52-23-246-132.compute-1.amazonaws.com) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.008840'
end: '2024-03-22 12:04:38.974323'
item: ec2-52-23-246-132.compute-1.amazonaws.com
msg: ''
rc: 0
start: '2024-03-22 12:04:38.965483'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=ec2-34-230-24-39.compute-1.amazonaws.com) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.008749'
end: '2024-03-22 12:04:39.141046'
item: ec2-34-230-24-39.compute-1.amazonaws.com
msg: ''
rc: 0
start: '2024-03-22 12:04:39.132297'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:04:39] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 12:04:39] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 12:04:39] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:04:39] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test stop for manager] ***************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_stop.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:00:22.228090'
end: '2024-03-22 12:05:04.591103'
msg: ''
rc: 0
start: '2024-03-22 12:04:42.363013'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSEDsystemctl restart wazuh-manager
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 21.61s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:05:04] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 12:05:04] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 12:05:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:05:04] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test restart for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_restart.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:00:19.065009'
end: '2024-03-22 12:05:29.768215'
msg: ''
rc: 0
start: '2024-03-22 12:05:10.703206'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 18.45s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:05:30] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 12:05:30] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 12:05:30] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:05:30] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test uninstall for manager] **********************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_uninstall.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:01:51.105087'
end: '2024-03-22 12:07:27.527555'
msg: ''
rc: 0
start: '2024-03-22 12:05:36.422468'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Failed to execute operation: No such file or directory
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 2 items
modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager
systemctl status wazuh-manager
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
PASSED
modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 2 passed, 2 warnings in 110.47s (0:01:50) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:07:27] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 12:07:27] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:07:27] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com]
TASK [Clean test directory] ****************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:07:41] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 12:07:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 12:07:41] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com]
TASK [Clean test directory] ****************************************************
ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 12:07:53] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}}
RedHat-7 🔴[2024-03-21 15:41:06] [ERROR] [282453] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-redhat-7-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 34, in <module>
main()
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 66, in create_instance
return cls._create_instance(base_dir, params, config, ssh_key)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 115, in _create_instance
instance_id = cls.__create_ec2_instance(config)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 215, in __create_ec2_instance
instance = client.create_instances(**params)[0]
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
response = action(self, *args, **kwargs)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
response = getattr(parent.meta.client, operation_name)(*args, **params)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=3jdidj7kpc10apzarpkkyoe3t Opensuse-15 🔴[2024-03-21 13:48:22] [INFO] [257840] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-opensuse-15-amd64] Starting task.
[2024-03-21 13:48:24] [ERROR] [257840] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-opensuse-15-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 34, in <module>
main()
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 66, in create_instance
return cls._create_instance(base_dir, params, config, ssh_key)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 115, in _create_instance
instance_id = cls.__create_ec2_instance(config)
File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 215, in __create_ec2_instance
instance = client.create_instances(**params)[0]
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
response = action(self, *args, **kwargs)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
response = getattr(parent.meta.client, operation_name)(*args, **params)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=147aomaaws9zx4er41jp3mozy
Amazon-2023 🔴Failure installing manager
[root@ip-172-31-40-175 ec2-user]# bash wazuh-install.sh --generate-config-files --ignore-check
21/03/2024 12:55:18 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3
21/03/2024 12:55:18 INFO: Verbose logging redirected to /var/log/wazuh-install.log
21/03/2024 12:55:21 INFO: --- Dependencies ---
21/03/2024 12:55:21 INFO: Installing curl.
21/03/2024 12:55:22 ERROR: Cannot install dependency: curl.
Oracle-9 🔴
def test_manager_version(wazuh_params):
for manager in wazuh_params['managers'].values():
manager_status = GeneralComponentActions.get_component_version(manager)
assert wazuh_params['wazuh_version'] in manager_status
> wazuh_api = WazuhAPI(manager)
modules/testing/tests/test_manager/test_install.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
modules/testing/tests/helpers/executor.py:72: in __init__
self._authenticate()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <deployability.modules.testing.tests.helpers.executor.WazuhAPI object at 0x778075301060>
def _authenticate(self):
with open(self.inventory_path, 'r') as yaml_file:
inventory_data = yaml.safe_load(yaml_file)
user = 'wazuh'
#----Patch issue https://github.com/wazuh/wazuh-packages/issues/2883-------------
file_path = Executor.execute_command(self.inventory_path, 'pwd').replace("\n","") + '/wazuh-install-files/wazuh-passwords.txt '
if not 'true' in Executor.execute_command(self.inventory_path, f'test -f {file_path} && echo "true" || echo "false"'):
Executor.execute_command(self.inventory_path, 'tar -xvf wazuh-install-files.tar')
password = Executor.execute_command(self.inventory_path, "grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'").replace("'","").replace("\n","")
#--------------------------------------------------------------------------------
login_endpoint = 'security/user/authenticate'
host = inventory_data.get('ansible_host')
port = '55000'
login_url = f"https://{host}:{port}/{login_endpoint}"
basic_auth = f"{user}:{password}".encode()
login_headers = {'Content-Type': 'application/json',
'Authorization': f'Basic {b64encode(basic_auth).decode()}'}
> token = json.loads(requests.post(login_url, headers=login_headers, verify=False).content.decode())['data']['token']
E KeyError: 'data'
modules/testing/tests/helpers/executor.py:95: KeyError
[root@ip-172-31-33-225 ec2-user]# tar -xvf wazuh-install-files.tar
bash: tar: command not found
Suse-15 🔴ip-172-31-36-66:/home/ec2-user # bash wazuh-install.sh --generate-config-files
22/03/2024 11:25:25 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3
22/03/2024 11:25:25 INFO: Verbose logging redirected to /var/log/wazuh-install.log
22/03/2024 11:25:25 ERROR: Couldn't find type of system |
UpdateTesting in AWS Results
|
UpdateRetesting in Vagrant after changes
|
UpdateTesting in Vagrant RedHat-7 : RedHat-8 : RedHat-9 🟢(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml"
}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml"}'
[2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.3
[2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.4
[2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.5
[2024-03-22 13:39:14] [INFO] TESTER: Dependencies 192.168.57.4
[2024-03-22 13:39:14] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 13:39:14] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 13:39:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:39:14] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=192.168.57.3) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.009755'
end: '2024-03-22 13:39:19.533038'
item: 192.168.57.3
msg: ''
rc: 0
start: '2024-03-22 13:39:19.523283'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.4) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.009075'
end: '2024-03-22 13:39:19.703998'
item: 192.168.57.4
msg: ''
rc: 0
start: '2024-03-22 13:39:19.694923'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.5) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.009142'
end: '2024-03-22 13:39:19.877358'
item: 192.168.57.5
msg: ''
rc: 0
start: '2024-03-22 13:39:19.868216'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:39:20] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 13:39:20] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 13:39:20] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:39:20] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test install for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_install.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
- -s
delta: '0:10:26.579126'
end: '2024-03-22 13:49:49.484851'
msg: ''
rc: 0
start: '2024-03-22 13:39:22.905725'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 5 items
modules/testing/tests/test_manager/test_install.py::test_installation pwd
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
/var/ossec/bin/cluster_control -l
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
modules/testing/tests/helpers/agent.py:55
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:55: DeprecationWarning: invalid escape sequence '\w'
"-OutFile ${env.tmp}\wazuh-agent;"
modules/testing/tests/helpers/agent.py:56
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:56: DeprecationWarning: invalid escape sequence '\w'
"msiexec.exe /i ${env.tmp}\wazuh-agent /q"
modules/testing/tests/helpers/agent.py:97
modules/testing/tests/helpers/agent.py:97
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:97: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<address>MANAGER_IP<\/address>/<address>{internal_ip}<\/address>/g' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:265
modules/testing/tests/helpers/manager.py:265
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:265: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node_name>node01<\/node_name>/<node_name>{node_name}<\/node_name>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:266
modules/testing/tests/helpers/manager.py:266
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:266: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node_type>master<\/node_type>/<node_type>{node_type}<\/node_type>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:267
modules/testing/tests/helpers/manager.py:267
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:267: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<key><\/key>/<key>{key}<\/key>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:268
modules/testing/tests/helpers/manager.py:268
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:268: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node>NODE_IP<\/node>/<node>{HostInformation.get_internal_ip_from_aws_dns(master_dns)}<\/node>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:269
modules/testing/tests/helpers/manager.py:269
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:269: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<disabled>yes<\/disabled>/<disabled>{disabled}<\/disabled>/' {WAZUH_CONF}",
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 5 passed, 16 warnings in 625.95s (0:10:25) ==================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:49:49] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 13:49:49] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 13:49:49] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:49:49] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test stop for manager] ***************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_stop.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
- -s
delta: '0:00:42.219297'
end: '2024-03-22 13:50:37.668856'
msg: ''
rc: 0
start: '2024-03-22 13:49:55.449559'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager
systemctl stop wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSEDsystemctl restart wazuh-manager
systemctl restart wazuh-manager
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 41.63s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:50:37] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 13:50:37] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 13:50:37] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:50:37] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test restart for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_restart.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
- -s
delta: '0:00:40.980534'
end: '2024-03-22 13:51:24.902886'
msg: ''
rc: 0
start: '2024-03-22 13:50:43.922352'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager
systemctl restart wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 40.38s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:51:25] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 13:51:25] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 13:51:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:51:25] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test uninstall for manager] **********************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_uninstall.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
- -s
delta: '0:01:38.298585'
end: '2024-03-22 13:53:09.282135'
msg: ''
rc: 0
start: '2024-03-22 13:51:30.983550'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Failed to set locale, defaulting to C
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Failed to execute operation: Access denied
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Failed to set locale, defaulting to C.UTF-8
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file wazuh-manager.service does not exist.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 2 items
modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
PASSED
modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================== 2 passed, 2 warnings in 97.73s (0:01:37) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:53:09] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 13:53:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:53:09] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:53:12] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 13:53:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:53:12] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:53:14] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 13:53:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}}
[2024-03-22 13:53:14] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 13:53:17] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
Centos-7 : Centos-8 : Debian-10 🟢(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' --targets '{"wazuh-2
":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml"
}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}'
[2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.3
[2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.4
[2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.5
[2024-03-22 14:23:35] [INFO] TESTER: Dependencies 192.168.57.4
[2024-03-22 14:23:35] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 14:23:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 14:23:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}}
[2024-03-22 14:23:35] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=192.168.57.3) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.021022'
end: '2024-03-22 14:23:45.166906'
item: 192.168.57.3
msg: ''
rc: 0
start: '2024-03-22 14:23:45.145884'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.4) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.024504'
end: '2024-03-22 14:23:45.604058'
item: 192.168.57.4
msg: ''
rc: 0
start: '2024-03-22 14:23:45.579554'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.5) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.021506'
end: '2024-03-22 14:23:46.033775'
item: 192.168.57.5
msg: ''
rc: 0
start: '2024-03-22 14:23:46.012269'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:23:46] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 14:23:46] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 14:23:46] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}}
[2024-03-22 14:23:46] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test install for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_install.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}'
- -s
delta: '0:07:50.411012'
end: '2024-03-22 14:31:44.689889'
msg: ''
rc: 0
start: '2024-03-22 14:23:54.278877'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file firewalld.service does not exist.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
--2024-03-22 13:28:39-- https://packages.wazuh.com/4.7/wazuh-install.sh
Resolving packages.wazuh.com (packages.wazuh.com)... 54.230.112.37, 54.230.112.24, 54.230.112.19, ...
Connecting to packages.wazuh.com (packages.wazuh.com)|54.230.112.37|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165734 (162K) [application/x-sh]
Saving to: 'wazuh-install.sh'
0K .......... .......... .......... .......... .......... 30% 2.02M 0s
50K .......... .......... .......... .......... .......... 61% 2.84M 0s
100K .......... .......... .......... .......... .......... 92% 3.05M 0s
150K .......... . 100% 97.0M=0.06s
2024-03-22 13:28:39 (2.75 MB/s) - 'wazuh-install.sh' saved [165734/165734]
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 5 items
modules/testing/tests/test_manager/test_install.py::test_installation pwd
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
/var/ossec/bin/cluster_control -l
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 5 passed, 2 warnings in 469.25s (0:07:49) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:31:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 14:31:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}}
[2024-03-22 14:31:44] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:31:47] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 14:31:47] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}}
[2024-03-22 14:31:47] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:31:49] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 14:31:49] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}}
[2024-03-22 14:31:49] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:31:52] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"
}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml"
}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}'
[2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.3
[2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.4
[2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.5
[2024-03-22 14:06:41] [INFO] TESTER: Dependencies 192.168.57.4
[2024-03-22 14:06:41] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
TASK [Test stop for manager] ***************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_stop.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}'
- -s
delta: '0:00:40.023805'
end: '2024-03-22 14:15:59.769392'
msg: ''
rc: 0
start: '2024-03-22 14:15:19.745587'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager
systemctl stop wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSEDsystemctl restart wazuh-manager
systemctl restart wazuh-manager
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 39.19s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:16:00] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 14:16:00] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 14:16:00] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}}
[2024-03-22 14:16:00] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test restart for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_restart.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}'
- -s
delta: '0:00:38.432027'
end: '2024-03-22 14:16:44.673081'
msg: ''
rc: 0
start: '2024-03-22 14:16:06.241054'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager
systemctl restart wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 37.84s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:16:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 14:16:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 14:16:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}}
[2024-03-22 14:16:44] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test uninstall for manager] **********************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_uninstall.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}'
- -s
delta: '0:01:22.634843'
end: '2024-03-22 14:18:13.299859'
msg: ''
rc: 0
start: '2024-03-22 14:16:50.665016'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to set locale, defaulting to C
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to execute operation: Access denied
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Failed to set locale, defaulting to C.UTF-8
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "es_ES.UTF-8",
LC_MONETARY = "es_ES.UTF-8",
LC_ADDRESS = "es_ES.UTF-8",
LC_TELEPHONE = "es_ES.UTF-8",
LC_NAME = "es_ES.UTF-8",
LC_MEASUREMENT = "es_ES.UTF-8",
LC_IDENTIFICATION = "es_ES.UTF-8",
LC_NUMERIC = "es_ES.UTF-8",
LC_PAPER = "es_ES.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 2 items
modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
PASSED
modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================== 2 passed, 2 warnings in 82.04s (0:01:22) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:18:13] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 14:18:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}}
[2024-03-22 14:18:13] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:18:16] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 14:18:16] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}}
[2024-03-22 14:18:16] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:18:18] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 14:18:18] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}}
[2024-03-22 14:18:18] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 14:18:21] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$
Debian-11 : Debian-12 : Ubuntu-20.04 🟢(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"
}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}'
[2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.3
[2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.4
[2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.5
[2024-03-22 15:37:06] [INFO] TESTER: Dependencies 192.168.57.5
[2024-03-22 15:37:06] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 15:37:06] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 15:37:06] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}}
[2024-03-22 15:37:06] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=192.168.57.3) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010504'
end: '2024-03-22 15:37:11.991075'
item: 192.168.57.3
msg: ''
rc: 0
start: '2024-03-22 15:37:11.980571'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.4) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.009536'
end: '2024-03-22 15:37:12.172964'
item: 192.168.57.4
msg: ''
rc: 0
start: '2024-03-22 15:37:12.163428'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.5) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010199'
end: '2024-03-22 15:37:12.359302'
item: 192.168.57.5
msg: ''
rc: 0
start: '2024-03-22 15:37:12.349103'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 15:37:12] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 15:37:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 15:37:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}}
[2024-03-22 15:37:12] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test install for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_install.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- -s
delta: '0:13:40.766136'
end: '2024-03-22 15:50:56.614340'
msg: ''
rc: 0
start: '2024-03-22 15:37:15.848204'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file firewalld.service does not exist.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file firewalld.service does not exist.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file firewalld.service does not exist.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
--2024-03-22 14:37:20-- https://packages.wazuh.com/4.7/wazuh-install.sh
Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.93, 18.154.48.117, 18.154.48.50, ...
Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.93|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165734 (162K) [application/x-sh]
Saving to: 'wazuh-install.sh'
0K .......... .......... .......... .......... .......... 30% 1.38M 0s
50K .......... .......... .......... .......... .......... 61% 1.07M 0s
100K .......... .......... .......... .......... .......... 92% 113M 0s
150K .......... . 100% 31.2K=0.5s
2024-03-22 14:37:20 (351 KB/s) - 'wazuh-install.sh' saved [165734/165734]
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
--2024-03-22 14:37:20-- https://packages.wazuh.com/4.7/config.yml
Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.50, 18.154.48.93, 18.154.48.95, ...
Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.50|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 636 [binary/octet-stream]
Saving to: 'config.yml'
0K 100% 1.81M=0s
2024-03-22 14:37:23 (1.81 MB/s) - 'config.yml' saved [636/636]
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
--2024-03-22 14:40:20-- https://packages.wazuh.com/4.7/wazuh-install.sh
Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.117, 18.154.48.95, 18.154.48.50, ...
Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.117|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165734 (162K) [application/x-sh]
Saving to: 'wazuh-install.sh.1'
0K .......... .......... .......... .......... .......... 30% 396K 0s
50K .......... .......... .......... .......... .......... 61% 43.7K 1s
100K .......... .......... .......... .......... .......... 92% 10.0M 0s
150K .......... . 100% 93.6M=1.3s
2024-03-22 14:40:21 (127 KB/s) - 'wazuh-install.sh.1' saved [165734/165734]
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
--2024-03-22 14:43:38-- https://packages.wazuh.com/4.7/wazuh-install.sh
Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.117, 18.154.48.95, 18.154.48.93, ...
Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.117|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165734 (162K) [application/x-sh]
Saving to: 'wazuh-install.sh'
0K .......... .......... .......... .......... .......... 30% 2.51M 0s
50K .......... .......... .......... .......... .......... 61% 2.45M 0s
100K .......... .......... .......... .......... .......... 92% 3.95M 0s
150K .......... . 100% 28.7M=0.05s
2024-03-22 14:43:38 (3.03 MB/s) - 'wazuh-install.sh' saved [165734/165734]
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 5 items
modules/testing/tests/test_manager/test_install.py::test_installation pwd
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
/var/ossec/bin/cluster_control -l
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 5 passed, 2 warnings in 820.04s (0:13:40) ===================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 15:50:56] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 15:50:56] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 15:50:56] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}}
[2024-03-22 15:50:56] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test stop for manager] ***************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_stop.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- -s
delta: '0:00:41.301194'
end: '2024-03-22 15:51:44.130217'
msg: ''
rc: 0
start: '2024-03-22 15:51:02.829023'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager
systemctl stop wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSEDsystemctl restart wazuh-manager
systemctl restart wazuh-manager
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 40.68s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 15:51:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 15:51:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 15:51:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}}
[2024-03-22 15:51:44] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test restart for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_restart.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- -s
delta: '0:00:41.200915'
end: '2024-03-22 15:52:31.515143'
msg: ''
rc: 0
start: '2024-03-22 15:51:50.314228'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager
systemctl restart wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 40.54s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 15:52:31] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 15:52:31] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 15:52:31] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}}
[2024-03-22 15:52:31] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test uninstall for manager] **********************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_uninstall.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
- -s
delta: '0:00:44.164926'
end: '2024-03-22 15:53:21.889303'
msg: ''
rc: 0
start: '2024-03-22 15:52:37.724377'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "es_ES.UTF-8",
LC_MONETARY = "es_ES.UTF-8",
LC_ADDRESS = "es_ES.UTF-8",
LC_TELEPHONE = "es_ES.UTF-8",
LC_NAME = "es_ES.UTF-8",
Ubuntu-22.04 : Oracle-9 : Amazon-2 🟢(deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml"
}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml"}'
[2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.3
[2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.4
[2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.5
[2024-03-22 16:21:08] [INFO] TESTER: Dependencies 192.168.57.3
[2024-03-22 16:21:08] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 16:21:08] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 16:21:08] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:21:08] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=192.168.57.3) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010041'
end: '2024-03-22 16:21:13.986712'
item: 192.168.57.3
msg: ''
rc: 0
start: '2024-03-22 16:21:13.976671'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.4) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010390'
end: '2024-03-22 16:21:14.170676'
item: 192.168.57.4
msg: ''
rc: 0
start: '2024-03-22 16:21:14.160286'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
changed: [localhost] => (item=192.168.57.5) => changed=true
ansible_loop_var: item
cmd:
- ssh-keygen
- -f
- /home/akim/.ssh/known_hosts
- -R
- ''
delta: '0:00:00.010389'
end: '2024-03-22 16:21:14.370804'
item: 192.168.57.5
msg: ''
rc: 0
start: '2024-03-22 16:21:14.360415'
stderr: Host not found in /home/akim/.ssh/known_hosts
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:21:14] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 16:21:14] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 16:21:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:21:14] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test install for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_install.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:10:22.795026'
end: '2024-03-22 16:31:40.721707'
msg: ''
rc: 0
start: '2024-03-22 16:21:17.926681'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file firewalld.service does not exist.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to execute operation: No such file or directory
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 5 items
modules/testing/tests/test_manager/test_install.py::test_installation pwd
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
pwd
pwd
chmod +rw wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
chmod 600 wazuh-install-files.tar
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
/var/ossec/bin/cluster_control -l
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -v
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
tar -xvf wazuh-install-files.tar
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
/var/ossec/bin/wazuh-control info -r
pwd
test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false"
grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'
PASSED
modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
modules/testing/tests/helpers/manager.py:265
modules/testing/tests/helpers/manager.py:265
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:265: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node_name>node01<\/node_name>/<node_name>{node_name}<\/node_name>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:266
modules/testing/tests/helpers/manager.py:266
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:266: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node_type>master<\/node_type>/<node_type>{node_type}<\/node_type>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:267
modules/testing/tests/helpers/manager.py:267
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:267: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<key><\/key>/<key>{key}<\/key>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:268
modules/testing/tests/helpers/manager.py:268
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:268: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<node>NODE_IP<\/node>/<node>{HostInformation.get_internal_ip_from_aws_dns(master_dns)}<\/node>/' {WAZUH_CONF}",
modules/testing/tests/helpers/manager.py:269
modules/testing/tests/helpers/manager.py:269
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:269: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<disabled>yes<\/disabled>/<disabled>{disabled}<\/disabled>/' {WAZUH_CONF}",
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 5 passed, 12 warnings in 622.08s (0:10:22) ==================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:31:41] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 16:31:41] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 16:31:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:31:41] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test stop for manager] ***************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_stop.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:00:38.090559'
end: '2024-03-22 16:32:25.083741'
msg: ''
rc: 0
start: '2024-03-22 16:31:46.993182'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager
systemctl stop wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSEDsystemctl restart wazuh-manager
systemctl restart wazuh-manager
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
modules/testing/tests/helpers/agent.py:55
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:55: DeprecationWarning: invalid escape sequence '\w'
"-OutFile ${env.tmp}\wazuh-agent;"
modules/testing/tests/helpers/agent.py:56
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:56: DeprecationWarning: invalid escape sequence '\w'
"msiexec.exe /i ${env.tmp}\wazuh-agent /q"
modules/testing/tests/helpers/agent.py:97
modules/testing/tests/helpers/agent.py:97
/home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:97: DeprecationWarning: invalid escape sequence '\/'
f"sed -i 's/<address>MANAGER_IP<\/address>/<address>{internal_ip}<\/address>/g' {WAZUH_CONF}",
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 6 warnings in 37.47s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:32:25] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 16:32:25] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 16:32:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:32:25] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test restart for manager] ************************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_restart.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:00:32.234064'
end: '2024-03-22 16:33:03.939697'
msg: ''
rc: 0
start: '2024-03-22 16:32:31.705633'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 1 item
modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager
systemctl restart wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 2 warnings in 31.61s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:33:04] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 16:33:04] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 16:33:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:33:04] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}]
No config file found; using defaults
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Test uninstall for manager] **********************************************
changed: [localhost] => changed=true
cmd:
- python3
- -m
- pytest
- modules/testing/tests/test_manager/test_uninstall.py
- -v
- --wazuh_version=4.7.3
- --wazuh_revision=40714
- --component=manager
- '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}'
- '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}'
- -s
delta: '0:00:59.205835'
end: '2024-03-22 16:34:09.725853'
msg: ''
rc: 0
start: '2024-03-22 16:33:10.520018'
stderr: |-
/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message
warnings.warn((
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "es_ES.UTF-8",
LC_MONETARY = "es_ES.UTF-8",
LC_ADDRESS = "es_ES.UTF-8",
LC_TELEPHONE = "es_ES.UTF-8",
LC_NAME = "es_ES.UTF-8",
LC_MEASUREMENT = "es_ES.UTF-8",
LC_IDENTIFICATION = "es_ES.UTF-8",
LC_NUMERIC = "es_ES.UTF-8",
LC_PAPER = "es_ES.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Failed to disable unit: Unit file wazuh-manager.service does not exist.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Failed to execute operation: No such file or directory
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts.
Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts.
stderr_lines: <omitted>
stdout: |-
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3
cachedir: .pytest_cache
rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
plugins: testinfra-6.0.0, testinfra-10.1.0
collecting ... collected 2 items
modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager
systemctl status wazuh-manager
systemctl status wazuh-manager
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
uname
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg
/root
added
[]
modified
[]
removed
[]
/usr/bin
added
[]
modified
[]
removed
[]
/usr/sbin
added
[]
modified
[]
removed
[]
/boot
added
[]
modified
[]
removed
[]
PASSED
modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
test -d /var/ossec && echo "true" || echo "false"
PASSED
=============================== warnings summary ===============================
modules/provision/models.py:65
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('install', pre=True)
modules/provision/models.py:73
/home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
@validator('uninstall', pre=True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 2 passed, 2 warnings in 58.57s ========================
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:34:10] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 16:34:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:34:10] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:34:13] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 16:34:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:34:13] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:34:16] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
[2024-03-22 16:34:16] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}}
[2024-03-22 16:34:16] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.57.3]
TASK [Clean test directory] ****************************************************
ok: [192.168.57.3] => changed=false
path: /tmp/tests
state: absent
PLAY RECAP *********************************************************************
192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[2024-03-22 16:34:19] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}}
Opensuse-15 🔴opensuse15:/home/vagrant # bash wazuh-install.sh --wazuh-server -wazuh-2
22/03/2024 15:52:48 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3
22/03/2024 15:52:48 INFO: Verbose logging redirected to /var/log/wazuh-install.log
22/03/2024 15:52:48 ERROR: Couldn't find type of system
|
UpdateChanges done. |
One question about execute_commands() metod |
UpdateChanges done |
LGTM |
LGTM! |
Description
This issue aims to implement tests for Wazuh server to meet the DTT1 requirements
Tasks
The text was updated successfully, but these errors were encountered: