-
Notifications
You must be signed in to change notification settings - Fork 25.3k
EQL: Integrate TOML tests for function folding #58748
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
Conversation
Pinging @elastic/es-ql (:Query Languages/EQL) |
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
import java.util.List; | ||
|
||
|
||
public class EqlFoldSpecLoader { |
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.
At some point it would be good to put the JTOM utilities in a central place (maybe their own project) to avoid having to have this code duplicated in various places.
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.
Co-authored-by: Ross Wolf <[email protected]> (cherry picked from commit e9b1fa5)
Co-authored-by: Ross Wolf <[email protected]> (cherry picked from commit e9b1fa5)
This PR is a wrap up of #57568 and most of the code originates there.
Part of #57313
Related to #57323
Pulled over more tests from EQL to tests that functions are folded correctly. It's similar in approach to our integration tests, but a little simpler since we don't have to go searching for events that match. There's also the same case_sensitive and case_insensitive toggles for tests that only work with one configuration. If neither of those are true, then the test will be checked against both, because it's assumed that the case already matches.