Add test for the processor re-use issue#34870
Conversation
It's a follow-up to elastic#34761 This test makes sure that none of the critical configuration fields are re-used between instances of the pipeline client.
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
faec
left a comment
There was a problem hiding this comment.
Looks good, a couple requests around mocking style
* Add test for the processor re-use issue (#34870) It's a follow-up to #34761 This test makes sure that none of the critical configuration fields are re-used between instances of the pipeline client. (cherry picked from commit 3d917c8) # Conflicts: # filebeat/channel/runner.go * Resolve conflicts --------- Co-authored-by: Denis <denis.rechkunov@elastic.co>
* Add test for the processor re-use issue (#34870) It's a follow-up to #34761 This test makes sure that none of the critical configuration fields are re-used between instances of the pipeline client. (cherry picked from commit 3d917c8) # Conflicts: # filebeat/channel/runner.go # filebeat/channel/runner_test.go * Resolve conflicts --------- Co-authored-by: Denis <denis.rechkunov@elastic.co>
It's a follow-up to #34761 This test makes sure that none of the critical configuration fields are re-used between instances of the pipeline client.
|
There's a bug in this test reveled by a fix in testify 1.10, which was incorrectly not checking if the arguments are pointers: The test doesn't pass pointers, I'm assuming you wanted This is blocking me at #42032 |
|
Tentative fix at ee6a27f With that the |
What does this PR do?
It's a follow-up to #34761
This test makes sure that none of the critical configuration fields are re-used between instances of the pipeline client.
Why is it important?
So, we don't have regressions in the future.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added an entry inCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
I reverted the change made in #34761 and saw the new test failing:
Related issues