Skip to content

Conversation

@williamrandolph
Copy link
Contributor

The GetPipelineRequest class wraps a list of string IDs. For a unit test, I wrote a mutateInstance method that randomly either adds a new ID to the list in the request or mutates the strings in the request. However, I failed to account for the case where the request has zero IDs in the list. If there are zero IDs in the list, there are no IDs to mutate. This commit makes sure that if there are no IDs in the list, we always add an ID rather than trying to mutate an existing ID.

Closes #62343

@williamrandolph williamrandolph added :Core/Infra/Core Core issues without another label v8.0.0 labels Sep 15, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Sep 15, 2020
@williamrandolph williamrandolph added the >test Issues or PRs that are addressing/adding tests label Sep 15, 2020
Copy link
Contributor

@gwbrown gwbrown left a comment

Choose a reason for hiding this comment

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

LGTM

@williamrandolph williamrandolph merged commit db8ca04 into elastic:master Sep 15, 2020
@williamrandolph williamrandolph deleted the fix/broken-logstash-plugin-test branch May 23, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GetPipelineRequestTests.testEqualsAndHashcode fails on master

4 participants