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

AIT environment improvements #23204

Merged
merged 9 commits into from May 8, 2024
Merged

AIT environment improvements #23204

merged 9 commits into from May 8, 2024

Conversation

GGP1
Copy link
Member

@GGP1 GGP1 commented Apr 30, 2024

Related issue
Closes #22891

Description

Introduces changes to the API integration tests environment to improve its efficiency and reliability.

Tests

Integration burst: artifacts.zip

Test with a branch that is not on remote (no tarball)

The manager image uses the current branch tarball to build Wazuh, if the local branch is not on remote it should fail early.

Logs
(venv_connexion) gasti@pop-os:~/work/wazuh/api/test/integration$ pytest -vv test_active_response_endpoints.tavern.yaml --disable-warnings
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.12, pytest-7.3.1, pluggy-1.4.0
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: trio-0.8.0, asyncio-0.18.1, tavern-1.23.5, metadata-3.1.1, html-2.1.1, anyio-4.3.0
asyncio: mode=auto
collected 2 items                                                                                                                                      

test_active_response_endpoints.tavern.yaml EEE                                                                                                   [100%]

======================================================================== ERRORS ========================================================================
...
=============================================================== short test summary info ================================================================
ERROR test_active_response_endpoints.tavern.yaml::PUT /active-response/{:agent_id} - Failed: Current branch tarball doesn't exist
ERROR test_active_response_endpoints.tavern.yaml::PUT /active-response - Failed: Current branch tarball doesn't exist
ERROR test_active_response_endpoints.tavern.yaml::PUT /active-response - TypeError: 'NoneType' object is not callable
============================================================= 1 warning, 3 errors in 1.08s =============================================================

Test after pushing the changes

docker.log: docker_log.zip

Logs
(venv_connexion) gasti@pop-os:~/work/wazuh/api/test/integration$ pytest -vv test_active_response_endpoints.tavern.yaml --disable-warnings
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.12, pytest-7.3.1, pluggy-1.4.0 -- /home/gasti/work/wazuh/venv_connexion/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.12', 'Platform': 'Linux-6.6.10-76060610-generic-x86_64-with-glibc2.35', 'Packages': {'pytest': '7.3.1', 'pluggy': '1.4.0'}, 'Plugins': {'trio': '0.8.0', 'asyncio': '0.18.1', 'tavern': '1.23.5', 'metadata': '3.1.1', 'html': '2.1.1', 'anyio': '4.3.0'}}
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: trio-0.8.0, asyncio-0.18.1, tavern-1.23.5, metadata-3.1.1, html-2.1.1, anyio-4.3.0
asyncio: mode=auto
collected 2 items                                                                                                                                      

test_active_response_endpoints.tavern.yaml::PUT /active-response/{:agent_id} PASSED                                                              [ 50%]
test_active_response_endpoints.tavern.yaml::PUT /active-response PASSED                                                                          [100%]

====================================================== 2 passed, 3 warnings in 520.57s (0:08:40) =======================================================

Docker images before and after the changes in the docker-compose.yaml

Before the changes we were building one image per node and agent, now we are reusing them.

Before
gasti@pop-os:~/work/wazuh/api/test/integration$ docker images
REPOSITORY                         TAG       IMAGE ID       CREATED              SIZE
<none>                             <none>    b892328b9b94   About a minute ago   2.28GB
<none>                             <none>    0c861d926de9   About a minute ago   2.28GB
integration_test_wazuh-manager     latest    c4a46c14bda1   About a minute ago   2.28GB
<none>                             <none>    f24083273883   2 minutes ago        1.21GB
<none>                             <none>    73aa0eda5c19   2 minutes ago        1.21GB
<none>                             <none>    075cd8f4d8fe   2 minutes ago        1.21GB
integration_test_wazuh-agent       latest    f30e6ca8f2a9   2 minutes ago        1.21GB
<none>                             <none>    827aeed56891   4 minutes ago        160MB
integration_test_wazuh-agent_old   latest    cab85f426790   4 minutes ago        160MB
<none>                             <none>    4163237b0eff   4 minutes ago        160MB
<none>                             <none>    4affc4c5136f   4 minutes ago        160MB
integration_test_nginx-lb          latest    1cd99f4565c8   5 minutes ago        188MB
After
gasti@pop-os:~/work/wazuh/api/test/integration/env$ docker images
REPOSITORY                         TAG       IMAGE ID       CREATED          SIZE
integration_test_wazuh-manager     latest    1c3fed9836cc   12 minutes ago   2.28GB
integration_test_wazuh-agent       latest    ee2e738c3fc1   14 minutes ago   1.21GB
integration_test_wazuh-agent_old   latest    e688c0da1885   17 minutes ago   160MB
integration_test_nginx-lb          latest    9847182cbcbb   17 minutes ago   188MB

Launching the test with the --nobuild flag doesn't recreate the images

docker.log: docker_log.zip

Logs

Window 1

(venv_connexion) gasti@pop-os:~/work/wazuh/api/test/integration$ pytest -vv test_active_response_endpoints.tavern.yaml --disable-warnings --nobuild
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.12, pytest-7.3.1, pluggy-1.4.0 -- /home/gasti/work/wazuh/venv_connexion/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.12', 'Platform': 'Linux-6.6.10-76060610-generic-x86_64-with-glibc2.35', 'Packages': {'pytest': '7.3.1', 'pluggy': '1.4.0'}, 'Plugins': {'trio': '0.8.0', 'asyncio': '0.18.1', 'tavern': '1.23.5', 'metadata': '3.1.1', 'html': '2.1.1', 'anyio': '4.3.0'}}
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: trio-0.8.0, asyncio-0.18.1, tavern-1.23.5, metadata-3.1.1, html-2.1.1, anyio-4.3.0
asyncio: mode=auto
collected 2 items                                                                                                                                      

test_active_response_endpoints.tavern.yaml::PUT /active-response/{:agent_id} PASSED                                                              [ 50%]
test_active_response_endpoints.tavern.yaml::PUT /active-response PASSED                                                                          [100%]

====================================================== 2 passed, 3 warnings in 133.44s (0:02:13) =======================================================

Window 2

gasti@pop-os:~/work/wazuh/api/test/integration/env$ docker images
REPOSITORY                         TAG       IMAGE ID       CREATED          SIZE
integration_test_wazuh-agent_old   latest    8cd3ea05c80b   13 minutes ago   160MB
integration_test_nginx-lb          latest    5a200b749c23   13 minutes ago   188MB
integration_test_wazuh-manager     latest    1c3fed9836cc   26 minutes ago   2.28GB
integration_test_wazuh-agent       latest    ee2e738c3fc1   28 minutes ago   1.21GB

@GGP1 GGP1 self-assigned this Apr 30, 2024
@GGP1 GGP1 linked an issue Apr 30, 2024 that may be closed by this pull request
7 tasks
@fdalmaup fdalmaup self-requested a review May 6, 2024 07:26
Copy link
Member

@fdalmaup fdalmaup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the modifications made to the conftest.py and docker-compose.yml files, every test should be run to verify the results are as expected.

api/test/integration/conftest.py Show resolved Hide resolved
@GGP1
Copy link
Member Author

GGP1 commented May 6, 2024

Test reports

Some tests failed but after running the same build in 4.9.0 I noticed they fail there as well, so it's related to the base branch and not to the changes introduced in this PR. Some of the tests passed when executed locally though.

fix/22891-ait-env

Build: https://ci.wazuh.info/job/Test_integration_endpoints/4520/
Artifacts: artifacts.zip

Test name Pass XPass Skip XFail Fail Issues Ref. Status
test_active_response_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_agent_DELETE_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_agent_GET_endpoints.tavern.yaml 95 0 0 0 0 🟢
test_agent_POST_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_agent_PUT_endpoints.tavern.yaml 10 0 0 0 0 🟢
test_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_cluster_endpoints.tavern.yaml 49 0 0 0 0 🟢
test_decoder_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_default_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_event_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_manager_endpoints.tavern.yaml 35 0 0 0 0 🟢
test_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_black_active_response_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_agent_endpoints.tavern.yaml 41 0 0 0 0 🟢
test_rbac_black_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_rbac_black_cluster_endpoints.tavern.yaml 19 0 0 0 0 🟢
test_rbac_black_decoder_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_rbac_black_event_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_black_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_rbac_black_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_manager_endpoints.tavern.yaml 16 0 0 0 0 🟢
test_rbac_black_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_rbac_black_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_black_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_black_rule_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_rbac_black_sca_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_security_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_rbac_black_syscheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_black_syscollector_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_rbac_black_task_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_white_active_response_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_agent_endpoints.tavern.yaml 39 0 0 0 2 insert issue link 🔴
test_rbac_white_all_endpoints.tavern.yaml 162 0 0 0 0 🟢
test_rbac_white_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_rbac_white_cluster_endpoints.tavern.yaml 19 0 0 0 0 🟢
test_rbac_white_decoder_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_rbac_white_event_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_white_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_rbac_white_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_manager_endpoints.tavern.yaml 16 0 0 0 0 🟢
test_rbac_white_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_rbac_white_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_white_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_white_rule_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_rbac_white_sca_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_security_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_rbac_white_syscheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_white_syscollector_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_rbac_white_task_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rule_endpoints.tavern.yaml 15 0 0 0 0 🟢
test_sca_endpoints.tavern.yaml 45 0 0 0 0 🟢
test_security_DELETE_endpoints.tavern.yaml 15 0 0 0 0 🟢
test_security_GET_endpoints.tavern.yaml 11 0 0 0 0 🟢
test_security_POST_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_security_PUT_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_syscheck_endpoints.tavern.yaml 34 0 0 0 0 🟢
test_syscollector_endpoints.tavern.yaml 159 0 0 0 0 🟢
test_task_endpoints.tavern.yaml 2 0 0 0 0 🟢
4.9.0

Build: https://ci.wazuh.info/job/Test_integration_endpoints/4524/
Artifacts: artifacts.zip

Test name Pass XPass Skip XFail Fail Issues Ref. Status
test_active_response_endpoints.tavern.yaml 1 0 0 0 1 insert issue link 🔴
test_agent_DELETE_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_agent_GET_endpoints.tavern.yaml 95 0 0 0 0 🟢
test_agent_POST_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_agent_PUT_endpoints.tavern.yaml 10 0 0 0 0 🟢
test_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_cluster_endpoints.tavern.yaml 46 0 0 0 3 insert issue link 🔴
test_decoder_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_default_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_event_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_manager_endpoints.tavern.yaml 35 0 0 0 0 🟢
test_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_black_active_response_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_agent_endpoints.tavern.yaml 41 0 0 0 0 🟢
test_rbac_black_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_rbac_black_cluster_endpoints.tavern.yaml 19 0 0 0 0 🟢
test_rbac_black_decoder_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_rbac_black_event_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_black_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_rbac_black_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_manager_endpoints.tavern.yaml 16 0 0 0 0 🟢
test_rbac_black_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_rbac_black_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_black_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_black_rule_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_rbac_black_sca_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_black_security_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_rbac_black_syscheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_black_syscollector_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_rbac_black_task_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_white_active_response_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_agent_endpoints.tavern.yaml 41 0 0 0 0 🟢
test_rbac_white_all_endpoints.tavern.yaml 162 0 0 0 0 🟢
test_rbac_white_cdb_list_endpoints.tavern.yaml 5 0 0 0 0 🟢
test_rbac_white_cluster_endpoints.tavern.yaml 19 0 0 0 0 🟢
test_rbac_white_decoder_endpoints.tavern.yaml 6 0 0 0 0 🟢
test_rbac_white_event_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rbac_white_experimental_endpoints.tavern.yaml 12 0 0 0 0 🟢
test_rbac_white_logtest_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_manager_endpoints.tavern.yaml 16 0 0 0 0 🟢
test_rbac_white_mitre_endpoints.tavern.yaml 7 0 0 0 0 🟢
test_rbac_white_overview_endpoints.tavern.yaml 0 0 0 0 1 insert issue link 🔴
test_rbac_white_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_white_rule_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_rbac_white_sca_endpoints.tavern.yaml 2 0 0 0 0 🟢
test_rbac_white_security_endpoints.tavern.yaml 25 0 0 0 0 🟢
test_rbac_white_syscheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rbac_white_syscollector_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_rbac_white_task_endpoints.tavern.yaml 1 0 0 0 0 🟢
test_rootcheck_endpoints.tavern.yaml 4 0 0 0 0 🟢
test_rule_endpoints.tavern.yaml 15 0 0 0 0 🟢
test_sca_endpoints.tavern.yaml 45 0 0 0 0 🟢
test_security_DELETE_endpoints.tavern.yaml 15 0 0 0 0 🟢
test_security_GET_endpoints.tavern.yaml 11 0 0 0 0 🟢
test_security_POST_endpoints.tavern.yaml 8 0 0 0 0 🟢
test_security_PUT_endpoints.tavern.yaml 9 0 0 0 0 🟢
test_syscheck_endpoints.tavern.yaml 34 0 0 0 0 🟢
test_syscollector_endpoints.tavern.yaml 159 0 0 0 0 🟢
test_task_endpoints.tavern.yaml 2 0 0 0 0 🟢

Failed tests local execution

test_overview_endpoints.tavern.yaml
(venv) gasti@gasti:~/work/wazuh/api/test/integration$ pytest -vv test_overview_endpoints.tavern.yaml --nobuild
================================================================= test session starts =================================================================
platform linux -- Python 3.10.14, pytest-7.3.1, pluggy-1.5.0 -- /home/gasti/work/wazuh/venv/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.14', 'Platform': 'Linux-6.1.0-20-amd64-x86_64-with-glibc2.36', 'Packages': {'pytest': '7.3.1', 'pluggy': '1.5.0'}, 'Plugins': {'asyncio': '0.18.1', 'tavern': '1.23.5', 'html': '2.1.1', 'metadata': '3.1.1', 'anyio': '4.1.0', 'trio': '0.8.0', 'aiohttp': '1.0.4'}}
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: asyncio-0.18.1, tavern-1.23.5, html-2.1.1, metadata-3.1.1, anyio-4.1.0, trio-0.8.0, aiohttp-1.0.4
asyncio: mode=auto
collected 1 item                                                                                                                                      

test_overview_endpoints.tavern.yaml::GET /overview/agents PASSED                                                                                [100%]

====================================================== 1 passed, 2 warnings in 140.13s (0:02:20) ======================================================
test_rbac_white_overview_endpoints.tavern.yaml
(venv) gasti@gasti:~/work/wazuh/api/test/integration$ pytest -vv test_rbac_white_overview_endpoints.tavern.yaml --nobuild
================================================================= test session starts =================================================================
platform linux -- Python 3.10.14, pytest-7.3.1, pluggy-1.5.0 -- /home/gasti/work/wazuh/venv/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.14', 'Platform': 'Linux-6.1.0-20-amd64-x86_64-with-glibc2.36', 'Packages': {'pytest': '7.3.1', 'pluggy': '1.5.0'}, 'Plugins': {'asyncio': '0.18.1', 'tavern': '1.23.5', 'html': '2.1.1', 'metadata': '3.1.1', 'anyio': '4.1.0', 'trio': '0.8.0', 'aiohttp': '1.0.4'}}
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: asyncio-0.18.1, tavern-1.23.5, html-2.1.1, metadata-3.1.1, anyio-4.1.0, trio-0.8.0, aiohttp-1.0.4
asyncio: mode=auto
collected 1 item                                                                                                                                      

test_rbac_white_overview_endpoints.tavern.yaml::GET /overview/agents PASSED                                                                     [100%]

====================================================== 1 passed, 2 warnings in 129.38s (0:02:09) ======================================================
test_rbac_black_overview_endpoints.tavern.yaml
(venv) gasti@gasti:~/work/wazuh/api/test/integration$ pytest -vv test_rbac_black_overview_endpoints.tavern.yaml --nobuild
================================================================= test session starts =================================================================
platform linux -- Python 3.10.14, pytest-7.3.1, pluggy-1.5.0 -- /home/gasti/work/wazuh/venv/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.14', 'Platform': 'Linux-6.1.0-20-amd64-x86_64-with-glibc2.36', 'Packages': {'pytest': '7.3.1', 'pluggy': '1.5.0'}, 'Plugins': {'asyncio': '0.18.1', 'tavern': '1.23.5', 'html': '2.1.1', 'metadata': '3.1.1', 'anyio': '4.1.0', 'trio': '0.8.0', 'aiohttp': '1.0.4'}}
rootdir: /home/gasti/work/wazuh/api/test/integration
configfile: pytest.ini
plugins: asyncio-0.18.1, tavern-1.23.5, html-2.1.1, metadata-3.1.1, anyio-4.1.0, trio-0.8.0, aiohttp-1.0.4
asyncio: mode=auto
collected 1 item                                                                                                                                      

test_rbac_black_overview_endpoints.tavern.yaml::GET /overview/agents PASSED                                                                     [100%]

====================================================== 1 passed, 2 warnings in 110.44s (0:01:50) ======================================================

The only one I could reproduce locally was test_rbac_white_agent_endpoints.tavern.yaml but the failure seems to be related to wazuh-agentd. The same endpoints are executed in test_agent_PUT_endpoints.tavern.yaml and it passed so it's not something related to the environment I would say.

test_rbac_white_agent_endpoints.tavern.yaml
E   tavern.util.exceptions.TestFailError: Test 'Try to restart a list of agents (Partially allowed, user aware)' failed:
    - Key mismatch: (expected["error"] = '2' (type = <class 'int'>), actual["error"] = '1' (type = <class 'int'>))
    - Error calling validate function '<function healthcheck_agent_restart at 0x7f288d216440>':
        Traceback (most recent call last):
          File "/home/gasti/work/wazuh/venv/lib/python3.10/site-packages/tavern/response/base.py", line 152, in _maybe_run_validate_functions
            vf(response)
          File "/home/gasti/work/wazuh/venv/lib/python3.10/site-packages/tavern/util/extfunctions.py", line 98, in inner
            result = func(response, *args, **kwargs)
          File "/home/gasti/work/wazuh/api/test/integration/tavern_utils.py", line 511, in healthcheck_agent_restart
            check_agentd_started(response, agents_list)
          File "/home/gasti/work/wazuh/api/test/integration/tavern_utils.py", line 465, in check_agentd_started
            raise ProcessLookupError("The wazuh-agentd daemon was not started after requesting the restart")
        ProcessLookupError: The wazuh-agentd daemon was not started after requesting the restart

I opened the following issue to investigate the reason behind the failures: #23314.

Copy link
Member

@fdalmaup fdalmaup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@Selutario Selutario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @GGP1

@Selutario Selutario merged commit e259a7c into 4.9.0 May 8, 2024
43 checks passed
@Selutario Selutario deleted the fix/22891-ait-env branch May 8, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix API integration tests conftest directives
3 participants