-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Streams] Adding the first integration test #201293
[Streams] Adding the first integration test #201293
Conversation
Pinging @elastic/unified-observability (Team:Observability) |
@elasticmachine merge upstream |
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, thanks for putting this together! I can add a couple more for fields and processing
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
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
Just an observation: If you move your helpers to a service, they would be easier to reuse for future tests in other areas if needed and you wouldn't have to pass instances of supertest or esclient as they would be available to a service directly.
## Summary This PR introduces the first integration test for the Streams project. This test covers the following basic functionality: - Enable streams - Index a document to `logs` - Create a `logs.nginx` for that reroutes based on `log.logger == 'nginx'` - Index a document to `logs.nginx` - Create a `logs.nginx.access` that reroutes based on `log.level == 'info'` - Index a document to `log.nginx.access` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]>
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12137605914 |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12137605923 |
## Summary This PR introduces the first integration test for the Streams project. This test covers the following basic functionality: - Enable streams - Index a document to `logs` - Create a `logs.nginx` for that reroutes based on `log.logger == 'nginx'` - Index a document to `logs.nginx` - Create a `logs.nginx.access` that reroutes based on `log.level == 'info'` - Index a document to `log.nginx.access` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]> (cherry picked from commit aebd13e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary This PR introduces the first integration test for the Streams project. This test covers the following basic functionality: - Enable streams - Index a document to `logs` - Create a `logs.nginx` for that reroutes based on `log.logger == 'nginx'` - Index a document to `logs.nginx` - Create a `logs.nginx.access` that reroutes based on `log.level == 'info'` - Index a document to `log.nginx.access` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]> (cherry picked from commit aebd13e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Streams] Adding the first integration test (#201293)](#201293) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Chris Cowan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-26T09:43:25Z","message":"[Streams] Adding the first integration test (#201293)\n\n## Summary\r\n\r\nThis PR introduces the first integration test for the Streams project.\r\nThis test covers the following basic functionality:\r\n\r\n- Enable streams\r\n- Index a document to `logs`\r\n- Create a `logs.nginx` for that reroutes based on `log.logger ==\r\n'nginx'`\r\n- Index a document to `logs.nginx`\r\n- Create a `logs.nginx.access` that reroutes based on `log.level ==\r\n'info'`\r\n- Index a document to `log.nginx.access`\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Joe Reuter <[email protected]>","sha":"aebd13ec678d620c1822d313ea5c9bb6d219a149","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Observability","v9.0.0","backport:prev-minor","v8.18.0","Feature:Streams"],"title":"[Streams] Adding the first integration test","number":201293,"url":"https://github.com/elastic/kibana/pull/201293","mergeCommit":{"message":"[Streams] Adding the first integration test (#201293)\n\n## Summary\r\n\r\nThis PR introduces the first integration test for the Streams project.\r\nThis test covers the following basic functionality:\r\n\r\n- Enable streams\r\n- Index a document to `logs`\r\n- Create a `logs.nginx` for that reroutes based on `log.logger ==\r\n'nginx'`\r\n- Index a document to `logs.nginx`\r\n- Create a `logs.nginx.access` that reroutes based on `log.level ==\r\n'info'`\r\n- Index a document to `log.nginx.access`\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Joe Reuter <[email protected]>","sha":"aebd13ec678d620c1822d313ea5c9bb6d219a149"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201293","number":201293,"mergeCommit":{"message":"[Streams] Adding the first integration test (#201293)\n\n## Summary\r\n\r\nThis PR introduces the first integration test for the Streams project.\r\nThis test covers the following basic functionality:\r\n\r\n- Enable streams\r\n- Index a document to `logs`\r\n- Create a `logs.nginx` for that reroutes based on `log.logger ==\r\n'nginx'`\r\n- Index a document to `logs.nginx`\r\n- Create a `logs.nginx.access` that reroutes based on `log.level ==\r\n'info'`\r\n- Index a document to `log.nginx.access`\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Joe Reuter <[email protected]>","sha":"aebd13ec678d620c1822d313ea5c9bb6d219a149"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Chris Cowan <[email protected]>
## Summary This PR introduces the first integration test for the Streams project. This test covers the following basic functionality: - Enable streams - Index a document to `logs` - Create a `logs.nginx` for that reroutes based on `log.logger == 'nginx'` - Index a document to `logs.nginx` - Create a `logs.nginx.access` that reroutes based on `log.level == 'info'` - Index a document to `log.nginx.access` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]>
Summary
This PR introduces the first integration test for the Streams project. This test covers the following basic functionality:
logs
logs.nginx
for that reroutes based onlog.logger == 'nginx'
logs.nginx
logs.nginx.access
that reroutes based onlog.level == 'info'
log.nginx.access