-
Notifications
You must be signed in to change notification settings - Fork 41
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
Adding capability of running automated process rules tests #127
Conversation
Cloudbeat CI 🤖Integration tests passed! 💚 =========================== short test summary info ============================
PASSED integration/tests/test_output_to_elasticsearch.py::test_elastic_index_exists[file]
PASSED integration/tests/test_output_to_elasticsearch.py::test_elastic_index_exists[process]
PASSED integration/tests/test_output_to_elasticsearch.py::test_elastic_index_exists[k8s_object]
PASSED product/tests/test_cloudbeat.py::test_cloudbeat_pod_exist
PASSED product/tests/test_cloudbeat.py::test_cloudbeat_pods_running
================= 5 passed, 60 deselected, 6 warnings in 1.26s ================= Link to detailed report: https://elastic.github.io/cloudbeat/579 |
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.
Please create a separate file for process rule tests and check if it possible to move sleep method to test level
tests/commonlib/io_utils.py
Outdated
|
||
# Wait for process reboot | ||
# TODO: Implement a more optimal way of waiting | ||
time.sleep(60) |
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.
Not a good idea to put sleep function on infra level.
tests/product/tests/test_rules.py
Outdated
# ), | ||
], | ||
) | ||
def test_process_rules(data, |
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.
It is possible to create a separate file for process rule tests.
852fdcc
to
92bab7d
Compare
807db3c
to
e17a451
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
259e8ed
to
1408db6
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
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 Jenia!! 💪
Added few comments...
raise Exception( | ||
f"Command '{command}' still not implemented in test framework") | ||
|
||
@staticmethod |
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.
Can we plz add some description to the function?
d112a55
to
d09a84f
Compare
* Initial commit of kubelet audits and refactoring to process * Code review changes * Refactor "with" keyword in tests * Fixing duplicated "with" parameters
…ctor (elastic#127) * Initial commit of kubelet audits and refactoring to process * Code review changes * Refactor "with" keyword in tests * Fixing duplicated "with" parameters
Enhancing the tests framework to automatically evaluate process rules
Fixes #157