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

Full Yellow Local - Fix Remoted tests in 4.2 #1717

Merged
merged 23 commits into from
Aug 17, 2021

Conversation

snaow
Copy link
Contributor

@snaow snaow commented Aug 17, 2021

Related issue
Closes #1530

Packages details

Type Format Architecture Version Revision Tag File name
Agent rpm x86_64 4.2.0 40207 v4.2.0-rc8 wazuh-manager-4.2.0-1.1493.x86_64.rpm

Environment

Provider Box OS CPU Memory
Vagrant centos/8 CentOS 8 2 1024

Setup local_internal_opcion.conf

remoted.debug=2
wazuh_database.interval=1
wazuh_db.commit_time=2
wazuh_db.commit_time_max=3
monitord.rotate_log=0

Description

Find full details about all the progress and tests rounds in the main Remoted issue: #1530

Many problems related to Authd and Remoted simulator came up in the progress of fixing Remoted integration tests.
We decide to disable two tests in order to achieve the full yellow, those are:

Issue #1698 must be corrected before activating again the two tests mentioned above.

Remoted tests were one of the hardest ones to stabilize and still, much work is pending to make them work properly.
With more than 30 comments and 128 tests rounds, we will close this PR,

Tests results

@snaow

Status Reports
R1 🟡 report_remoted-r1.zip
R2 🟡 report_remoted-r2.zip
R3 🟡 report_remoted-r3.zip

mdengra and others added 23 commits July 21, 2021 16:07
refac: Delete six redundant use cases

Closes: #1579
refac: Reduce code using the connect method of the Agent class

Closes: #1571
Add timeout for remoted socket to be ready in `test_request_agent_info.py`
…ommunication

Increasing wait time until socket monitor is fully initialized in `test_multi_agent_protocols_communication.py`
Add timeout for the manager services to be ready in `test_active_response_send_ar.py`
Avoid updating the position of FileMonitor when monitoring multiples logs in remoted tests
Incrementing the time to wait for active status in order to handle the case of having a pending status
Shutting down the agent socket before closing to avoid malformed messages errors
…onitor

Replacing the MITM usage by the `archives.log` monitor in the `test_multi_agent_protocols_communication` tests
Remove warnings with unverified HTTPs requests
@snaow snaow merged commit 7030975 into 1516-4.2.0-full-green Aug 17, 2021
@snaow snaow deleted the 1530-full-yellow-remoted branch August 17, 2021 08:07
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.

None yet

4 participants