-
Notifications
You must be signed in to change notification settings - Fork 32
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
Analysisd - add new test to check analysisd socket properties #2405
Conversation
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
I didn't merge master in the current branhc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fernandolojano please, modify the code following the PEP8 guidelines. You can follow this guide to doing it, take into account that you must change the max-line-length
argument following this guide
03/02/2022Package
TestingAnalysisd
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no stopper and this could be validated by manual testing (ls -li
to get inodes and stat -c '%y'
to get modification time).
I propose a rearrangement of this test in the next branch: https:/wazuh/wazuh-qa/tree/fix-1850-check-queue-socket-status-test
Jenkins: Tested using v4.2.2 staging packages
Local: Tested using v4.4.0 source installation
CentOS: Manager | Local | Jenkins |
---|---|---|
PS1 | 🟢 | 🟢 |
PS2 | 🟢 | 🟢 |
PS3 | 🟢 | 🟢 |
Hope this helps!
Nico
Hi @jnasselle, Thanks for your help, I'll check it and apply the necessary changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GJ, but some changes are required
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
tests/integration/test_analysisd/test_queue_socket_properties/test_queue_socket_properties.py
Outdated
Show resolved
Hide resolved
0411859
to
c435418
Compare
16/03/2022Package
Testing
|
OS | Local | Notes |
---|---|---|
R1 | 🟢 | |
R2 | 🟢 | |
R3 | 🟢 |
- 🟢: All pass
- 🟡: Some warnings
- 🔴: Some errors/fails
- 🔵: In progress
ee6960b
to
c435418
Compare
c435418
to
71b156e
Compare
…queue_socket_properties Co-authored-by: mauromalara <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
closes #1850
This PR adds a new test for Analysisd requested on the issue #1850. As for now, it works properly as it's able to detect the changes of the file time and inode whenever
they change.
This test check:
Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.provision_documentation.sh
generate the docs without errors.