You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API integration tests conftest.py file contains some errors that are causing the tests execution to not behave as expected in the 20748-upgrade-to-connexion-3 branch.
Tasks
When the environment was created using a profile, the down_env directive is not tearing down the containers successfully. We should include the following changes:
+ def down_env(env_mode: str):
"""Stop and remove all Docker containers."""
os.chdir(env_path)
with open(docker_log_path, mode='a') as f_docker:
+ current_process = subprocess.Popen(["docker", "compose", "--profile", env_mode, "down"], stdout=f_docker,
stderr=subprocess.STDOUT, universal_newlines=True)
current_process.wait()
os.chdir(current_path)
Not related to the conftest itself but it could be handy to have a .env file next to the docker-compose to specify the values of the variables ENV_MODE and WAZUH_LOCAL_PATH there instead of doing it on every command.
Review why the agents depend on the one deployed earlier. They shouldn't depend on each other.
Investigated about building the manager docker image locally but it requires to move the Dockerfile to the top of the repository I discarded it. Also, fixed a dependency issue between nginx and the workers and updated a test which was failing because an agent could reconnect before the test ended.
Modified the conftest to fail when the request is not successful and the code is not 404. Ran all integration tests on jenkins and compared them to 4.9.0.
Description
The API integration tests conftest.py file contains some errors that are causing the tests execution to not behave as expected in the 20748-upgrade-to-connexion-3 branch.
Tasks
Not related to the conftest itself but it could be handy to have a
.env
file next to the docker-compose to specify the values of the variablesENV_MODE
andWAZUH_LOCAL_PATH
there instead of doing it on every command.Review why the agents depend on the one deployed earlier. They shouldn't depend on each other.
wazuh/api/test/integration/env/docker-compose.yml
Lines 94 to 96 in 997f201
Checks
The following elements have been updated or reviewed (should also be checked if no modification is required):
api/test/integration/mapping/_test_mapping.py
).The text was updated successfully, but these errors were encountered: