Skip to content
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

EQL: [Tests] Simplify toml integration tests (#71064) #71095

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

matriv
Copy link
Contributor

@matriv matriv commented Mar 31, 2021

Previously, two files were used, test_queries.toml and
test_queries_unsupported.toml. The queries where read from both files
and each query in the 1st file but not in the 2nd was executed, but if
it was also included in the 2nd file (unsupported) was skipped. This
approach helped in first phase of developing EQL since those tests came
from the EQL-endpoint implementation and we wanted to keep those files
in sync. Now, we no longer need to keep this sync approach, so the
unsupported queries are simply commented out in the original file:
test_queries.toml and the test_queries_unsupported.toml is removed.

Moreover, one more query is now enabled (previously was
incorrectly still in the test_queries_unsupported.toml file) and a few
more were added as commented out, which previously only existed in the
unsupported file.

Fixes: #61841
(cherry picked from commit 8537b2d)

Previously, two files were used, `test_queries.toml` and
`test_queries_unsupported.toml`. The queries where read from both files
and each query in the 1st file but not in the 2nd was executed, but if
it was also included in the 2nd file (unsupported) was skipped. This
approach helped in first phase of developing EQL since those tests came
from the EQL-endpoint implementation and we wanted to keep those files
in sync. Now, we no longer need to keep this sync approach, so the
unsupported queries are simply commented out in the original file:
`test_queries.toml` and the `test_queries_unsupported.toml` is removed.

Moreover, one more query is now enabled (previously was
incorrectly still in the `test_queries_unsupported.toml` file) and a few
more were added as commented out, which previously only existed in the
unsupported file.

Fixes: elastic#61841
(cherry picked from commit 8537b2d)
@matriv matriv added >test Issues or PRs that are addressing/adding tests backport :Analytics/EQL EQL querying labels Mar 31, 2021
@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Mar 31, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@matriv matriv merged commit d8125bd into elastic:7.x Mar 31, 2021
@matriv matriv deleted the backport-71064-7.x branch March 31, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying backport 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.

2 participants