Skip to content
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

Closed
6 tasks done
Tracked by #4848
QU3B1M opened this issue Jan 16, 2024 · 26 comments · Fixed by #5112
Closed
6 tasks done
Tracked by #4848

DTT1 - Iteration 3 - Test module - Add Wazuh central components tests #4844

QU3B1M opened this issue Jan 16, 2024 · 26 comments · Fixed by #5112
Assignees

Comments

@QU3B1M
Copy link
Member

QU3B1M commented Jan 16, 2024

Epic #4495

Description

This issue aims to implement tests for Wazuh server to meet the DTT1 requirements

Tasks

  • Test install
  • Test connection
  • Test restart
  • Test stop
  • Test uninstall
  • Test in AWS EC2
@QU3B1M QU3B1M added level/task Task issue type/enhancement level/subtask Subtask issue and removed level/task Task issue labels Jan 16, 2024
@QU3B1M QU3B1M self-assigned this Jan 22, 2024
@QU3B1M QU3B1M linked a pull request Jan 22, 2024 that will close this issue
@QU3B1M
Copy link
Member Author

QU3B1M commented Jan 23, 2024

Update report - On Hold

This 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.

@QU3B1M QU3B1M changed the title DTT1 - Iteration 3 - Test module - Add Wazuh manager tests DTT1 - Iteration 3 - Test module - Add Wazuh central components tests Jan 23, 2024
@QU3B1M QU3B1M assigned pro-akim and unassigned QU3B1M Jan 25, 2024
@pro-akim
Copy link
Member

Update

Some tests were researched.
it will remain on hold until the vagrant IP can be configured.

@pro-akim
Copy link
Member

Update

After speaking with @QU3B1M , I have understood that the testing of central components must be carried out with a Wazuh manager connected to components other than an agent. I will investigate how to generate such a structure in order to develop the tests.

@pro-akim
Copy link
Member

Update

It 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.

@wazuhci wazuhci moved this to On hold in Release 4.9.0 Jan 30, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Feb 26, 2024
@pro-akim
Copy link
Member

pro-akim commented Feb 26, 2024

Update

The tests that I could find in the the repository enhancement/4844-dtt1-iteration-3-test-central-components are based in the old structure where the test module was only checking the system.
Some changes should be done around the installation process


Actions to be created:

  • Install central components

After conversing with @fcaffieri, we realized that the installation of the central component should be approached by following the steps below:

Step Action Detail
1 Generate Certificate - Download setup file Download from the corresponding URL for the version
2 Generate Certificate - Modify data Change data according to the desired setup
3 Execute cert-tools
4 Turn off firewall
5 SCP - Set sshd_config Modify parameters to enable SCP between computers
6 SCP - Usage Perform SCP between VMs
7 Install Manager on both computers (Manager only)
8 Cluster Configuration Hexadecimal code should be set in both ossec.conf files
9 Restart both computers
10 Check connected clusters /var/ossec/bin/cluster_control -l

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.


  • Uninstall central components

  • Checkfiles (permisions and files)

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

version: 0.1
description: This workflow is used to test agents deployment por DDT1 PoC
variables:
  #agents-os:
  #  - linux-ubuntu-22.04-amd64
  manager-os: 
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-20.04-amd64
  infra-provider: vagrant
  working-dir: /tmp/dtt1-poc
tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
    foreach:
      - variable: manager-os
        as: manager

However, some issues around the naming of the allocation happens

akim@akim-PC:/tmp$ ls dtt1-poc/
'manager-['\''linux-ubuntu-22.04-amd64'\'', '\''linux-ubuntu-20.04-amd64'\'']'

akim@akim-PC:/tmp$ ls dtt1-poc/manager-\[\'linux-ubuntu-22.04-amd64\'\,\ \'linux-ubuntu-20.04-amd64\'\]/
inventory.yaml  track.yaml

akim@akim-PC:/tmp$ cat dtt1-poc/manager-\[\'linux-ubuntu-22.04-amd64\'\,\ \'linux-ubuntu-20.04-amd64\'\]/inventory.yaml 
ansible_host: 192.168.57.3
ansible_port: 22
ansible_ssh_private_key_file: /tmp/wazuh-qa/VAGRANT-BD3641B4-CA7F-4C94-AF82-B2F303EF8D9B/instance_key
ansible_user: vagrant

Changing the manager-os to manager in inventory and track path made the allocator work correctly:

  manager-os: 
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-20.04-amd64
  infra-provider: vagrant
  working-dir: /tmp/dtt1-poc
tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager}"
          - inventory-output: "{working-dir}/manager-{manager}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager}/track.yaml"
    foreach:
      - variable: manager-os
        as: manager

@wazuhci wazuhci moved this from In progress to On hold in Release 4.9.0 Feb 26, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Feb 27, 2024
@pro-akim
Copy link
Member

pro-akim commented Feb 27, 2024

Update

Installs the manager in the host of the inventory IP

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager': '/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml'}" --dependencies "{'manager':'/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml'}" --live False --one_line True

Installs the manager in the host of the inventory IP (host1)

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager':'/
tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml'}" --live False --one_line True

Should install the manager in the host of the inventory IP (host2), however, some issues around the WazuhAPI methods are raised

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager':'/
tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml'}" --live False --one_line True
TASK [Test install for manager] ************************************************
fatal: [192.168.57.3]: FAILED! => changed=true 
  cmd:
  - pytest
  - test_manager/test_install.py
  - -v
  - --wazuh_version=4.7.2
  - --wazuh_revision=1
  - --component=manager
  - '--dependencies={manager: 192.168.57.3}'
  - --live=False
  - --one_line=True
  - -s
  delta: '0:00:00.408456'
  end: '2024-02-27 15:52:52.636765'
  msg: non-zero return code
  rc: 4
  start: '2024-02-27 15:52:52.228309'
  stderr: |-
    /usr/local/lib/python3.8/dist-packages/_pytest/config/__init__.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
    Plugin: helpconfig, Hook: pytest_cmdline_parse
    ConftestImportFailure: TypeError: 'type' object is not subscriptable (from /tmp/tests/conftest.py)
    For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
      config = pluginmanager.hook.pytest_cmdline_parse(
    ImportError while loading conftest '/tmp/tests/conftest.py'.
    conftest.py:5: in <module>
        from .helpers.wazuh_api.api import WazuhAPI
    helpers/wazuh_api/api.py:9: in <module>
        class WazuhAPI:
    helpers/wazuh_api/api.py:62: in WazuhAPI
        def get_agents(self, **kwargs: dict) -> list[dict]:
    E   TypeError: 'type' object is not subscriptable
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

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:

image

Even changing the sshd_config

image

@pro-akim
Copy link
Member

pro-akim commented Feb 28, 2024

Update

Reviewing the tests (agent and central)

manager-agent => manager provisioned by provisioner
.install => install in agent
.register => register in agent
.basic_info => agent in info
.restart => stop in agent
.stop => stop in agent
.uninstall => uninstall in agent

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)
.install => generate certs, share certs, install managers (both), register cluters
.restart => restart manager2
.stop => restart manager2
.uninstall => uninstall manager2

Points to be modified

  1. install agent, uninstall agent => ansible => actions using ansible
  2. generarate certs, share certs, install managers => ansible => actions using ansible
    (it should have an if test manager-manager => consider both ips to create certs and distribute them)

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.

  1. Agent tests should be modified
  2. Central component tests:
    a. Generate a ansible yaml that generates certificates (certs_generator)
    b. Generate a ansible yaml that shares the certificates (certs_distribution)
    c. Generate a FS snapshot for checkfile purposes
    d. Generate a ansible yaml that installs the managers (manager installer)
    e. Validation using pytest (includes checkfile validation)

Certs_generation done
Trying to send the wazuh-certificates.tar from one host to the destination host as from local to the destination host.
I could find the following error:

TASK [Copy file from one remote host to another] *******************************
fatal: [192.168.57.3 -> 192.168.57.2]: UNREACHABLE! => changed=false 
  msg: |-
    Failed to connect to the host via ssh: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ED25519 key sent by the remote host is
    SHA256:+hifkGLpCfIhjli3EljIuJI60jchvxCCKp/6RtZN6Ps.
    Please contact your system administrator.
    Add correct host key in /home/akim/.ssh/known_hosts to get rid of this message.
    Offending ED25519 key in /home/akim/.ssh/known_hosts:812
      remove with:
      ssh-keygen -f "/home/akim/.ssh/known_hosts" -R "192.168.57.2"
    UpdateHostkeys is disabled because the host key is not trusted.
    akim@192.168.57.2: Permission denied (publickey).
  unreachable: true

While

akim@akim-PC:~/Desktop$ ping 192.168.57.2
PING 192.168.57.2 (192.168.57.2) 56(84) bytes of data.
64 bytes from 192.168.57.2: icmp_seq=1 ttl=64 time=2.63 ms
64 bytes from 192.168.57.2: icmp_seq=2 ttl=64 time=0.755 ms
64 bytes from 192.168.57.2: icmp_seq=3 ttl=64 time=0.465 ms
64 bytes from 192.168.57.2: icmp_seq=4 ttl=64 time=15.8 ms
64 bytes from 192.168.57.2: icmp_seq=5 ttl=64 time=2.12 ms
^C
--- 192.168.57.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4054ms
rtt min/avg/max/mdev = 0.465/4.362/15.836/5.794 ms


akim@akim-PC:~/Desktop$ telnet 192.168.57.2 22
Trying 192.168.57.2...
Connected to 192.168.57.2.
Escape character is '^]'.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6
Connection closed by foreign host.

Editing /etc/ssh/sshd_d in both managers (ubuntu22.04 and ubuntu20.04)
Adding:
PasswordAuthentication yes
PermitRootLogin yes

Restarting using systemctl restart sshd
Checking if firewald is off

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

TASK [Command stout] **********************************************
ok: [192.168.57.3] => 
  cluster_output.stdout_lines:
  - 'NAME     TYPE    VERSION  ADDRESS       '
  - 'wazuh-1  master  4.7.2    192.168.57.2  '
  - 'node01   worker  4.7.2    192.168.57.3  '

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.
After a manual validation it worked, however, running it by code did not work.

@pro-akim
Copy link
Member

pro-akim commented Feb 29, 2024

Update

After some discussion about the test module with the DTT Team we conclude that

TEST MODULE SHOULD:

  • Support multi-host actions and validations (should be straightforward... input the host's IP and the desired action, and it should be able to be done)
  • Allow action-validation in multiple steps (multiple times)
  • Enable dynamic waits
  • Facilitate actions where one action is executed on a host while expecting something on another host
  • Support file transfer between hosts
  • Ensure that the fixture provides a clear understanding of what will be done in the test
  • Allow simple actions in different areas (command, front-end, API)
  • The test should easily display the sequence of actions and their respective validations.
  • Support multi-threaded actions

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

# 1

https://docs.google.com/forms/d/1XCRTax17I949P39puYrNRXoOV_cLL1j8htg8iVEOIco/edit

# 2

https://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 paramiko, I could create a script that executes commands into the VMS, the problem is that when the process takes a certain time to finish, the script does not work.
This means that the installation processes should be handled by ansible.

Considering this point:

Step Action Detail Handler Tested
1 Generate Certificate - Download setup file Download from the corresponding URL for the version python-script-layer 🟢
2 Generate Certificate - Modify data Change data according to the desired setup python-script-layer 🟢
3 Execute cert-tools python-script-layer 🟢
4 Turn off firewall python-script-layer 🟢
5 SCP - Set sshd_config Modify parameters to enable SCP between computers python-script-layer 🟢
6 SCP - Usage Perform SCP between VMs python-script-layer 🟢
7 Install Manager on both computers (Manager only) ansible 🟢
8 Cluster Configuration Hexadecimal code should be set in both ossec.conf files python-script-layer 🟢
9 Restart both computers python-script-layer 🟢
10 Check connected clusters /var/ossec/bin/cluster_control -l python-script-layer 🟢

All the steps were tested in each handler.
Now it will be necessary to know how to create the layer and how all these methods will be handled even in upcoming cases.

@wazuhci wazuhci moved this from In progress to On hold in Release 4.9.0 Mar 4, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Mar 4, 2024
@pro-akim
Copy link
Member

pro-akim commented Mar 4, 2024

Update

The 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

@pro-akim
Copy link
Member

pro-akim commented Mar 6, 2024

Update

The new layer was created.
Agent, Manager, and General host methods are done.

I will start to join all the objects to the existing test method.

@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Mar 20, 2024
pro-akim added a commit that referenced this issue Mar 20, 2024
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.9.0 Mar 20, 2024
@wazuhci wazuhci moved this from Pending review to On hold in Release 4.9.0 Mar 21, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Mar 21, 2024
@pro-akim
Copy link
Member

pro-akim commented Mar 21, 2024

Update

Testing 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 🟢
(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-ubuntu-22.04-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}'  --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}'
[2024-03-21 18:24:12] [INFO] TESTER: Running tests for ec2-54-158-16-247.compute-1.amazonaws.com
[2024-03-21 18:24:12] [INFO] TESTER: Running tests for ec2-35-153-80-0.compute-1.amazonaws.com
[2024-03-21 18:24:12] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com
[2024-03-21 18:24:12] [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-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-21 18:24:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-21 18:24:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:24:12] [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-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.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-54-158-16-247.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009535'
  end: '2024-03-21 18:24:18.988771'
  item: ec2-54-158-16-247.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-21 18:24:18.979236'
  stderr: Host  not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-35-153-80-0.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009523'
  end: '2024-03-21 18:24:19.174106'
  item: ec2-35-153-80-0.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-21 18:24:19.164583'
  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-21 18:24:19] [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-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-21 18:24:19] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-21 18:24:19] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:24:19] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}'
  - -s
  delta: '0:05:55.451993'
  end: '2024-03-21 18:30:17.922098'
  msg: ''
  rc: 0
  start: '2024-03-21 18:24:22.470105'
  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-54-158-16-247.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-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-35-153-80-0.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-35-153-80-0.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-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.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 PASSED
    modules/testing/tests/test_manager/test_install.py::test_manager_status PASSED
    modules/testing/tests/test_manager/test_install.py::test_manager_version PASSED
    modules/testing/tests/test_manager/test_install.py::test_manager_revision PASSED
    modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory 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 354.76s (0:05:54) ===================
  stdout_lines: <omitted>


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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}'
  - -s
  delta: '0:00:20.986558'
  end: '2024-03-21 18:31:35.420952'
  msg: ''
  rc: 0
  start: '2024-03-21 18:31:14.434394'
  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-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.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 20.39s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-21 18:31:35] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-21 18:31:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-21 18:31:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:31:35] [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-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}'
  - -s
  delta: '0:00:25.239643'
  end: '2024-03-21 18:32:06.759213'
  msg: ''
  rc: 0
  start: '2024-03-21 18:31:41.519570'
  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-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.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 24.62s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-21 18:32:07] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-21 18:32:07] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-21 18:32:07] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:32:07] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}'
  - -s
  delta: '0:01:29.808605'
  end: '2024-03-21 18:33:39.973497'
  msg: ''
  rc: 0
  start: '2024-03-21 18:32:10.164892'
  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-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (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 '[ec2-54-158-16-247.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-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to execute operation: Access denied
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-35-153-80-0.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
    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
    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 89.18s (0:01:29) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-21 18:33:40] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-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-21 18:33:40] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:33:40] [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-54-158-16-247.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-158-16-247.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-158-16-247.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-21 18:33:52] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-158-16-247.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-158-16-247.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-21 18:33:52] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-21 18:33:52] [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-54-158-16-247.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-158-16-247.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-158-16-247.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-21 18:34:04] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-158-16-247.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-158-16-247.compute-1.amazonaws.com': 1}, 'changed': {}}
Redhat-9:Redhat-8 🟢
(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,restart,stop,uninstall'  --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml"
}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml"}'  --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}'
[2024-03-22 08:58:23] [INFO] TESTER: Running tests for ec2-54-81-186-221.compute-1.amazonaws.com
[2024-03-22 08:58:23] [INFO] TESTER: Running tests for ec2-3-86-4-213.compute-1.amazonaws.com
[2024-03-22 08:58:23] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com
[2024-03-22 08:58:23] [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-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 08:58:23] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 08:58:23] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 08:58:23] [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-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.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-54-81-186-221.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009211'
  end: '2024-03-22 08:58:29.521681'
  item: ec2-54-81-186-221.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 08:58:29.512470'
  stderr: Host  not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-3-86-4-213.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009086'
  end: '2024-03-22 08:58:29.688131'
  item: ec2-3-86-4-213.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 08:58:29.679045'
  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 08:58:30] [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-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 08:58:30] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 08:58:30] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 08:58:30] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
  - -s
  delta: '0:11:36.556422'
  end: '2024-03-22 09:10:09.400216'
  msg: ''
  rc: 0
  start: '2024-03-22 08:58:32.843794'
  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-54-81-186-221.compute-1.amazonaws.com port 2200: Connection refused
    ssh: connect to host ec2-54-81-186-221.compute-1.amazonaws.com port 2200: Connection refused
    ssh: connect to host ec2-3-86-4-213.compute-1.amazonaws.com port 2200: Connection timed out
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.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
    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
    /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/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}'
    /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/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}'
    /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 695.88s (0:11:35) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:10:09] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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 09:10:09] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 09:10:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 09:10:09] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
  - -s
  delta: '0:00:21.327084'
  end: '2024-03-22 09:10:36.676966'
  msg: ''
  rc: 0
  start: '2024-03-22 09:10:15.349882'
  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-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.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 20.74s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:10:36] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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 09:10:36] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 09:10:36] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 09:10:36] [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-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
  - -s
  delta: '0:00:26.581715'
  end: '2024-03-22 09:11:09.423287'
  msg: ''
  rc: 0
  start: '2024-03-22 09:10:42.841572'
  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-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.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 25.99s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:11:09] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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 09:11:09] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 09:11:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 09:11:09] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}'
  - -s
  delta: '0:01:48.984439'
  end: '2024-03-22 09:13:04.356093'
  msg: ''
  rc: 0
  start: '2024-03-22 09:11:15.371654'
  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-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to set locale, defaulting to C.UTF-8
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.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-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file wazuh-manager.service does not exist.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-86-4-213.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
    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
    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 108.40s (0:01:48) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:13:04] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /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 09:13:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 09:13:04] [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-54-81-186-221.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-81-186-221.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-81-186-221.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:13:18] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-81-186-221.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-81-186-221.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 09:13:18] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 09:13: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: [ec2-54-81-186-221.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-81-186-221.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-81-186-221.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 09:13:29] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-81-186-221.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-81-186-221.compute-1.amazonaws.com': 1}, 'changed': {}}

Debian-10:Debian-11 🟢
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-debian-10-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}'  --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}'
[2024-03-22 10:34:44] [INFO] TESTER: Running tests for ec2-54-161-92-147.compute-1.amazonaws.com
[2024-03-22 10:34:44] [INFO] TESTER: Running tests for ec2-54-145-184-30.compute-1.amazonaws.com
[2024-03-22 10:34:44] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com
[2024-03-22 10:34:44] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 10:34:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 10:34:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:34:44] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.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-54-161-92-147.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009888'
  end: '2024-03-22 10:34:50.737216'
  item: ec2-54-161-92-147.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 10:34:50.727328'
  stderr: Host  not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-54-145-184-30.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.011629'
  end: '2024-03-22 10:34:50.919030'
  item: ec2-54-145-184-30.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 10:34:50.907401'
  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 10:34:51] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 10:34:51] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 10:34:51] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:34:51] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}'
  - -s
  delta: '0:06:19.090662'
  end: '2024-03-22 10:41:13.605035'
  msg: ''
  rc: 0
  start: '2024-03-22 10:34:54.514373'
  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-54-161-92-147.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-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-54-145-184-30.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-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 09:35:11--  https://packages.wazuh.com/4.7/wazuh-install.sh
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.57, 99.86.229.76, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165734 (162K) [application/x-sh]
    Saving to: 'wazuh-install.sh'
  
         0K .......... .......... .......... .......... .......... 30% 37.5M 0s
        50K .......... .......... .......... .......... .......... 61% 44.7M 0s
       100K .......... .......... .......... .......... .......... 92% 46.4M 0s
       150K .......... .                                          100%  208M=0.003s
  
    2024-03-22 09:35:11 (45.2 MB/s) - 'wazuh-install.sh' saved [165734/165734]
  
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 09:35:13--  https://packages.wazuh.com/4.7/config.yml
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.65, 99.86.229.76, 99.86.229.57, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.65|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 636 [binary/octet-stream]
    Saving to: 'config.yml'
  
         0K                                                       100% 49.4M=0s
  
    2024-03-22 09:35:13 (49.4 MB/s) - 'config.yml' saved [636/636]
  
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 09:36:09--  https://packages.wazuh.com/4.7/wazuh-install.sh
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.65, 99.86.229.76, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165734 (162K) [application/x-sh]
    Saving to: 'wazuh-install.sh.1'
  
         0K .......... .......... .......... .......... .......... 30% 45.8M 0s
        50K .......... .......... .......... .......... .......... 61% 42.7M 0s
       100K .......... .......... .......... .......... .......... 92% 42.4M 0s
       150K .......... .                                          100%  300M=0.003s
  
    2024-03-22 09:36:09 (46.5 MB/s) - 'wazuh-install.sh.1' saved [165734/165734]
  
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 09:37:43--  https://packages.wazuh.com/4.7/wazuh-install.sh
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.57, 99.86.229.65, 99.86.229.50, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.57|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165734 (162K) [application/x-sh]
    Saving to: 'wazuh-install.sh'
  
         0K .......... .......... .......... .......... .......... 30% 49.7M 0s
        50K .......... .......... .......... .......... .......... 61% 27.2M 0s
       100K .......... .......... .......... .......... .......... 92%  174M 0s
       150K .......... .                                          100%  137M=0.003s
  
    2024-03-22 09:37:43 (50.4 MB/s) - 'wazuh-install.sh' saved [165734/165734]
  
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.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/admin/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/admin/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/admin/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/admin/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)
  
    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 378.39s (0:06:18) ==================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:41:13] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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 10:41:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:41: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: [ec2-54-161-92-147.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-161-92-147.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:41:26] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 10:41:26] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:41:26] [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-54-161-92-147.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-161-92-147.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:41:35] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.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-debian-10-amd64/inventory.yml"}' --ta
rgets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}'  --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}'
[2024-03-22 10:43:15] [INFO] TESTER: Running tests for ec2-54-161-92-147.compute-1.amazonaws.com
[2024-03-22 10:43:15] [INFO] TESTER: Running tests for ec2-54-145-184-30.compute-1.amazonaws.com
[2024-03-22 10:43:15] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com
[2024-03-22 10:43:15] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-03-22 10:43:15] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 10:43:15] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:43:15] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.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-54-161-92-147.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.011449'
  end: '2024-03-22 10:43:21.739797'
  item: ec2-54-161-92-147.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 10:43:21.728348'
  stderr: Host  not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-54-145-184-30.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.009464'
  end: '2024-03-22 10:43:21.956865'
  item: ec2-54-145-184-30.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 10:43:21.947401'
  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 10:43:22] [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-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-03-22 10:43:22] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 10:43:22] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:43:22] [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-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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-centos-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}'
  - -s
  delta: '0:00:24.683332'
  end: '2024-03-22 10:43:51.037523'
  msg: ''
  rc: 0
  start: '2024-03-22 10:43:26.354191'
  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-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.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 24.04s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:43:51] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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 10:43:51] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 10:43:51] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:43:51] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}'
  - -s
  delta: '0:00:23.206209'
  end: '2024-03-22 10:44:20.252260'
  msg: ''
  rc: 0
  start: '2024-03-22 10:43:57.046051'
  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-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.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 22.57s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:44:20] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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 10:44:20] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 10:44:20] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:44:20] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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-7-amd64/inventory.yml}'
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}'
  - -s
  delta: '0:01:10.338931'
  end: '2024-03-22 10:45:36.601330'
  msg: ''
  rc: 0
  start: '2024-03-22 10:44:26.262399'
  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-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (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 = "C.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("C.UTF-8").
    Warning: Permanently added '[ec2-54-161-92-147.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-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (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 = "C.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("C.UTF-8").
    Warning: Permanently added '[ec2-54-145-184-30.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-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-54-145-184-30.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 69.73s (0:01:09) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:45:36] [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-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-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 10:45:36] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:45:36] [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-54-161-92-147.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-161-92-147.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:45:50] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 10:45:50] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 10:45:50] [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-54-161-92-147.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-54-161-92-147.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 10:46:00] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}}

Debian-12:Ubuntu20.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 'stop,restart,uninstall'  --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml"}' --ta
rgets '{"wazuh-2":"/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 11:00:00] [INFO] TESTER: Running tests for ec2-18-232-135-232.compute-1.amazonaws.com
[2024-03-22 11:00:00] [INFO] TESTER: Running tests for ec2-52-70-68-32.compute-1.amazonaws.com
[2024-03-22 11:00:00] [INFO] TESTER: Dependencies ec2-52-70-68-32.compute-1.amazonaws.com
[2024-03-22 11:00:00] [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-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /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 11:00:00] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 11:00:00] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:00:00] [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-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com']}]}]
No config file found; using defaults

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
^Z
[25]+  Stopped                 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-debian-12-amd64/inventory.yml"}' --targets '{"wazuh-2":"/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"}'
(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-12-amd64/inventory.yml
"}' --targets '{"wazuh-2":"/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 11:00:11] [INFO] TESTER: Running tests for ec2-18-232-135-232.compute-1.amazonaws.com
[2024-03-22 11:00:11] [INFO] TESTER: Running tests for ec2-52-70-68-32.compute-1.amazonaws.com
[2024-03-22 11:00:11] [INFO] TESTER: Dependencies ec2-52-70-68-32.compute-1.amazonaws.com
[2024-03-22 11:00:11] [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-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /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 11:00:11] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-03-22 11:00:11] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:00:11] [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-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.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-18-232-135-232.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.010299'
  end: '2024-03-22 11:00:15.312224'
  item: ec2-18-232-135-232.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 11:00:15.301925'
  stderr: Host  not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-52-70-68-32.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - /home/akim/.ssh/known_hosts
  - -R
  - ''
  delta: '0:00:00.010276'
  end: '2024-03-22 11:00:15.507586'
  item: ec2-52-70-68-32.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-03-22 11:00:15.497310'
  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:00:15] [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-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.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:00:15] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 11:00:15] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:00:15] [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-12-amd64/inventory.yml, wazuh-2: /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-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
  - -s
  delta: '0:06:51.398652'
  end: '2024-03-22 11:07:10.465051'
  msg: ''
  rc: 0
  start: '2024-03-22 11:00:19.066399'
  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-18-232-135-232.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-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-52-70-68-32.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-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file firewalld.service does not exist.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 10:00:36--  https://packages.wazuh.com/4.7/wazuh-install.sh
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.76, 99.86.229.65, 99.86.229.50, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.76|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165734 (162K) [application/x-sh]
    Saving to: 'wazuh-install.sh'
  
         0K .......... .......... .......... .......... .......... 30% 53.0M 0s
        50K .......... .......... .......... .......... .......... 61% 44.4M 0s
       100K .......... .......... .......... .......... .......... 92% 49.6M 0s
       150K .......... .                                          100%  190M=0.003s
  
    2024-03-22 10:00:36 (51.6 MB/s) - 'wazuh-install.sh' saved [165734/165734]
  
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 10:00:38--  https://packages.wazuh.com/4.7/config.yml
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.76, 99.86.229.65, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 636 [binary/octet-stream]
    Saving to: 'config.yml'
  
         0K                                                       100% 26.2M=0s
  
    2024-03-22 10:00:38 (26.2 MB/s) - 'config.yml' saved [636/636]
  
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    --2024-03-22 10:01:41--  https://packages.wazuh.com/4.7/wazuh-install.sh
    Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.57, 99.86.229.76, 99.86.229.50, ...
    Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.57|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165734 (162K) [application/x-sh]
    Saving to: 'wazuh-install.sh.1'
  
         0K .......... .......... .......... .......... .......... 30% 47.5M 0s
        50K .......... .......... .......... .......... .......... 61% 47.1M 0s
       100K .......... .......... .......... .......... .......... 92% 48.1M 0s
       150K .......... .                                          100%  232M=0.003s
  
    2024-03-22 10:01:41 (50.5 MB/s) - 'wazuh-install.sh.1' saved [165734/165734]
  
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.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/admin/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/ubuntu/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/admin/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/ubuntu/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 410.65s (0:06:50) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:07: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-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /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 11:07:10] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 11:07:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:07:10] [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-12-amd64/inventory.yml, wazuh-2: /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-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
  - -s
  delta: '0:00:26.293359'
  end: '2024-03-22 11:07:42.845576'
  msg: ''
  rc: 0
  start: '2024-03-22 11:07:16.552217'
  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-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.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 25.69s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:07:43] [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-12-amd64/inventory.yml, wazuh-2: /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 11:07:43] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 11:07:43] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:07:43] [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-12-amd64/inventory.yml, wazuh-2: /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-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
  - -s
  delta: '0:00:23.281450'
  end: '2024-03-22 11:08:12.287179'
  msg: ''
  rc: 0
  start: '2024-03-22 11:07:49.005729'
  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-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.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 22.64s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:08:12] [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-12-amd64/inventory.yml, wazuh-2: /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 11:08:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-03-22 11:08:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:08:12] [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-12-amd64/inventory.yml, wazuh-2: /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-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}'
  - -s
  delta: '0:01:18.434409'
  end: '2024-03-22 11:09:36.730477'
  msg: ''
  rc: 0
  start: '2024-03-22 11:08:18.296068'
  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-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (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 = "C.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("C.UTF-8").
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Failed to disable unit: Unit file wazuh-manager.service does not exist.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (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 '[ec2-52-70-68-32.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-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-52-70-68-32.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 77.86s (0:01:17) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:09:37] [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-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /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 11:09:37] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:09:37] [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-18-232-135-232.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-18-232-135-232.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-18-232-135-232.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:09:48] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-18-232-135-232.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-18-232-135-232.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-03-22 11:09:48] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}}
[2024-03-22 11:09:48] [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-18-232-135-232.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-18-232-135-232.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-18-232-135-232.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-03-22 11:09:58] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-18-232-135-232.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-18-232-135-232.compute-1.amazonaws.com': 1}, 'changed': {}}

@pro-akim
Copy link
Member

pro-akim commented Mar 21, 2024

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

@pro-akim
Copy link
Member

pro-akim commented Mar 22, 2024

Update

Testing in AWS

Results

OS Test result Additional data
redhat9 🟢
redhat7 🔴 AMI failure
redhat8 🟢
centos7 🟢
centos8 🟢
debian10 🟢 symcryptrun was added in bin filters
debian11 🟢
debian12 🟢
ubuntu20.04 🟢
ubuntu22.04 🟢
oracle9 🔴 No tar (It does not uncompress tar file to get API password)
amazon2 🟢
amazon2023 🔴 No curl
opensuse 🔴 AMI failure
suse15 🔴 Assitant does not work (Could not find the system)

@pro-akim
Copy link
Member

pro-akim commented Mar 22, 2024

Update

Retesting in Vagrant after changes

OS Test result Additional data
redhat7 🟢
redhat9 🟢
redhat8 🟢 Added in root lesshst filter
centos7 🟢
centos8 🟢
debian10 🟢
debian11 🟢
debian12 🟢
ubuntu20.04 🟢
ubuntu22.04 🟢
oracle9 🟢 Added in root lesshst filter
amazon2 🟢
amazon2023 🔴 No Vagrant Image
opensuse 🔴 Assitant does not work (Could not find the system)
suse15 🔴 No Vagrant Image

@pro-akim
Copy link
Member

pro-akim commented Mar 22, 2024

Update

Testing 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

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.9.0 Mar 22, 2024
@wazuhci wazuhci moved this from Pending review to In review in Release 4.9.0 Mar 25, 2024
pro-akim added a commit that referenced this issue Mar 25, 2024
@wazuhci wazuhci moved this from In review to On hold in Release 4.9.0 Mar 25, 2024
@pro-akim
Copy link
Member

Update

Changes done.

@wazuhci wazuhci moved this from On hold to Pending review in Release 4.9.0 Mar 25, 2024
@fcaffieri
Copy link
Member

One question about execute_commands() metod

@wazuhci wazuhci moved this from Pending review to On hold in Release 4.9.0 Mar 25, 2024
@pro-akim
Copy link
Member

Update

Changes done

@wazuhci wazuhci moved this from On hold to Pending review in Release 4.9.0 Mar 26, 2024
@fcaffieri
Copy link
Member

LGTM

@wazuhci wazuhci moved this from Pending review to Pending final review in Release 4.9.0 Mar 26, 2024
@QU3B1M
Copy link
Member Author

QU3B1M commented Mar 26, 2024

LGTM!

@QU3B1M QU3B1M closed this as completed Mar 26, 2024
@wazuhci wazuhci moved this from Pending final review to Done in Release 4.9.0 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants