-
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
IT for macos file_status #1466
IT for macos file_status #1466
Conversation
25454a0
to
77ba20f
Compare
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 👍
929a9a2
to
8fc5f5b
Compare
9cd2e24
to
80ddbc8
Compare
LGTM! The integration tests for macOS in jenkins passed successfully. The only test that failed was to be expected as it is an uncorrected bug in the master branch.
|
e180804
to
4d15f2f
Compare
4d15f2f
to
0a532b2
Compare
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.
Jenkins result
test_logcollector/test_macos/test_macos_file_status_basic.py::test_macos_file_status_basic[yes] PASSED [ 1%]
test_logcollector/test_macos/test_macos_file_status_basic.py::test_macos_file_status_basic[no] PASSED [ 2%]
test_logcollector/test_macos/test_macos_file_status_predicate.py::test_macos_file_status_predicate[yes] PASSED [ 3%]
test_logcollector/test_macos/test_macos_file_status_predicate.py::test_macos_file_status_predicate[no] PASSED [ 5%]
test_logcollector/test_macos/test_macos_file_status_when_no_macos.py::test_macos_file_status_when_no_macos[/tmp/dummy_file.log] PASSED [ 6%]
test_logcollector/test_macos/test_macos_format_basic.py::test_macos_format_basic[get_configuration0-example] PASSED [ 7%]
test_logcollector/test_macos/test_macos_format_only_future_events.py::test_macos_format_only_future_events[yes] PASSED [ 8%]
test_logcollector/test_macos/test_macos_format_only_future_events.py::test_macos_format_only_future_events[no] PASSED [ 10%]
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.
🚀
tests/integration/test_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Outdated
Show resolved
Hide resolved
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_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_basic.py
Outdated
Show resolved
Hide resolved
tests/integration/test_logcollector/test_macos/test_macos_file_status_when_no_macos.py
Show resolved
Hide resolved
f1aff26
to
016ced1
Compare
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.
Here are some requested changes.
c9a41b4
to
07b996a
Compare
07b996a
to
66552be
Compare
The base branch was changed.
These tests are being tested with the rest of the tests of #1329 in a temporal branch: PackageTestingtest_logcollector/test_macos
|
As these tests passed, we are going to merge them into PackageTestingtest_logcollector/test_macos/test_macos_file_status_*
|
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
Hi team!,
The following tests are necessary to have a minimum validation standard for the
macos
feature onWazuh-Logcollector
file_status.json
correctly works for oslog format events.file_status.json
contains "macos" information with "macos" localfile block with only-feature-events set to yes when at least one log was obtained.file_status.json
contains "macos" information with "macos" localfile block with only-feature-events set to no when at least one log was obtained.file_status.json
does not contain "macos" information with "macos" localfile block with a wrong predicate.file_status.json
does not contain "macos" information with "macos" localfile block with a wrong predicate and only-feature-events set to "no".file_status.json
does not contain "macos" information after being updated when the agent starts and there is no "macos" localfile block configured, even when there was an old valid status of a "macos" localfile stored on it.Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.provision_documentation.sh
generate the docs without errors.