-
Notifications
You must be signed in to change notification settings - Fork 197
Rewrite the beats receiver log test using common tooling #10153
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
546ed7b
to
3b13168
Compare
|
dbffc8e
to
437c77c
Compare
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
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.
Just left a couple of minor suggestions/nits. LGTM.
3c5f870
to
a976a35
Compare
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
8f70b49
to
f830251
Compare
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @swiatekm |
@Mergifyio backport 8.18 8.19 9.0 9.1 9.2 |
✅ Backports have been created
|
* Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Switch assert to required * Fix constants --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit 71ece0d) # Conflicts: # testing/integration/ess/beat_receivers_test.go
* Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Switch assert to required * Fix constants --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit 71ece0d)
* Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Switch assert to required * Fix constants --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit 71ece0d) # Conflicts: # testing/integration/ess/beat_receivers_test.go
* Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Switch assert to required * Fix constants --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit 71ece0d) # Conflicts: # testing/integration/ess/beat_receivers_test.go
* Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Apply suggestion from @ycombinator Co-authored-by: Shaunak Kashyap <[email protected]> * Switch assert to required * Fix constants --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit 71ece0d)
…0508) * Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator * Apply suggestion from @ycombinator * Apply suggestion from @ycombinator * Switch assert to required * Fix constants --------- (cherry picked from commit 71ece0d) Co-authored-by: Mikołaj Świątek <[email protected]> Co-authored-by: Shaunak Kashyap <[email protected]>
…0505) * Rewrite the beats receiver log test using common tooling * Expect the outputs to be degraded * Relax checks * Fix assertion * Apply suggestion from @ycombinator * Apply suggestion from @ycombinator * Apply suggestion from @ycombinator * Switch assert to required * Fix constants --------- (cherry picked from commit 71ece0d) Co-authored-by: Mikołaj Świątek <[email protected]> Co-authored-by: Shaunak Kashyap <[email protected]>
What does this PR do?
Re-enables the integration test for comparing logs between beats processes and beats receivers and rewrites it to use normal integration test tooling, making it simpler and more observable:
elastic-agent logs
instead of capturing agent output directly.Why is it important?
This test should be enabled and reliable.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have added an entry in./changelog/fragments
using the changelog toolRelated issues