Skip to content

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

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

astefan
Copy link
Contributor

@astefan astefan commented Jun 30, 2020

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.

rw-access and others added 3 commits June 29, 2020 18:12
(cherry picked from commit 5141fff)

EQL: PR feedback and remove duplicate licenses
(cherry picked from commit 5a1cdf6)

EQL: Unbox case_sensitive/case_insensitive
(cherry picked from commit 96e9d84)
@astefan astefan added >enhancement >test Issues or PRs that are addressing/adding tests :Analytics/EQL EQL querying labels Jun 30, 2020
@astefan astefan requested a review from costin June 30, 2020 13:39
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

Copy link
Member

@costin costin left a 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 {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@astefan astefan merged commit e9b1fa5 into elastic:master Jul 1, 2020
@astefan astefan deleted the fold-tests branch July 1, 2020 08:56
astefan added a commit to astefan/elasticsearch that referenced this pull request Jul 1, 2020
astefan added a commit that referenced this pull request Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying >enhancement Team:QL (Deprecated) Meta label for query languages team >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants