We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9442b commit db8ca04Copy full SHA for db8ca04
x-pack/plugin/logstash/src/test/java/org/elasticsearch/xpack/logstash/action/GetPipelineRequestTests.java
@@ -28,10 +28,11 @@ protected GetPipelineRequest createTestInstance() {
28
@Override
29
protected GetPipelineRequest mutateInstance(GetPipelineRequest instance) {
30
List<String> ids = new ArrayList<>(instance.ids());
31
- if (randomBoolean()) {
+ if (randomBoolean() || ids.size() == 0) {
32
// append another ID
33
ids.add(randomAlphaOfLengthBetween(2, 10));
34
} else {
35
+ // change the strings in the request
36
ids = ids.stream().map(id -> id + randomAlphaOfLength(1)).collect(Collectors.toList());
37
}
38
return new GetPipelineRequest(ids);
0 commit comments