Skip to content

EQL: case sensitivity aware integration testing #58624

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 17 commits into from
Jun 29, 2020

Conversation

astefan
Copy link
Contributor

@astefan astefan commented Jun 26, 2020

This PR is a wrap up of #57323 and most of the code originates there.

Part of #57313
Closes #56754

Pulled over the latest TOML integration tests from Python, which have case (in)sensitive toggles.

There's a handful more tests added, and I noticed that some of the sequence tests are failing, so I left those in the exclusions list. Also updated the HLRC to include case sensitive toggles, which was needed for the tests.

Basically to mark a test as case-sensitive only, add this to the TOML

case_sensitive = true

or this to make a test case-insensitive only.

case_insensitive = true

If the flags aren't set, then the test is assumed to work with both and tests are run both with case_sensitive=true and case_sensitive=false.

rw-access and others added 13 commits June 26, 2020 14:49
(cherry picked from commit bbc7215)
(cherry picked from commit 48d3b72)
(cherry picked from commit 28d9a76)
(cherry picked from commit 545ab4a)
(cherry picked from commit 0e742de)
Rewrite case sensitivity settings:
NULL -> run both case sensitive and insensitive tests
TRUE -> run case sensitive test only
FALSE -> run case insensitive test only
@astefan astefan added >enhancement >test Issues or PRs that are addressing/adding tests :Analytics/EQL EQL querying labels Jun 26, 2020
@astefan astefan requested review from costin, matriv and rw-access June 26, 2020 21:24
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Jun 26, 2020
@astefan astefan mentioned this pull request Jun 26, 2020
Comment on lines 696 to 699
expected_event_ids = [67, 68,
69, 70,
72, 73,
74, 75]
Copy link
Member

Choose a reason for hiding this comment

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

These are incorrectly formatted (as is the rest of the group under it) - the sequence has 4 items not 2 on a line.

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

@astefan astefan merged commit 34d3834 into elastic:master Jun 29, 2020
@astefan astefan deleted the case-sensitive-tests branch June 29, 2020 13:37
astefan added a commit to astefan/elasticsearch that referenced this pull request Jun 29, 2020
* Add DataLoader
* Rewrite case sensitivity settings:
NULL -> run both case sensitive and insensitive tests
TRUE -> run case sensitive test only
FALSE -> run case insensitive test only
* Rename test_queries_supported
* Add more toml tests from the Python client

Co-authored-by: Ross Wolf <[email protected]>
(cherry picked from commit 34d3834)
astefan added a commit that referenced this pull request Jun 29, 2020
* EQL: case sensitivity aware integration testing (#58624)

* Add DataLoader
* Rewrite case sensitivity settings:
NULL -> run both case sensitive and insensitive tests
TRUE -> run case sensitive test only
FALSE -> run case insensitive test only
* Rename test_queries_supported
* Add more toml tests from the Python client

Co-authored-by: Ross Wolf <[email protected]>
(cherry picked from commit 34d3834)
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.

EQL: case sensitivity aware integration testing
4 participants