wazuh / qa-system-framework

GNU General Public License v2.0
1 stars 3 forks source link

HostManager: Research current status #27

Closed Rebits closed 1 year ago

Rebits commented 1 year ago
Base branch
system-test

Description

In the development branch, we have implemented a comprehensive set of fundamental methods for system and E2E host handling within the HostManager class. This class plays a pivotal role in facilitating remote low-level operations on designated hosts by utilizing the provided inventory.

However, it is crucial to conduct a thorough assessment to determine whether additional methods should be incorporated to ensure complete support for all system tests.

To Do

Rebits commented 1 year ago

29/05/2023

Meeting with @BelenValdivia about:

BelenValdivia commented 1 year ago

29/05/2023

belen@belen-VirtualBox:~/Repositories/qa-system-framework$ ansible all -m ping -i inventory.yml
manager1 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "ping": "pong"
}
agent1 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "ping": "pong"
}
belen@belen-VirtualBox:~/Repositories/qa-system-framework$ python3
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from wazuh_qa_framework.system.host_manager import HostManager
>>> hm = HostManager('inventory.yml')
>>> hm.check_connection('agent1')
True
>>> hm.check_connection('manager1')
True
BelenValdivia commented 1 year ago

30/05/2023

BelenValdivia commented 1 year ago

31/05/2023

BelenValdivia commented 1 year ago

01/06/2023