use of org.opensearch.ingest.PipelineConfiguration in project OpenSearch by opensearch-project.
the class GetPipelineResponseTests method mutateInstance.
@Override
protected GetPipelineResponse mutateInstance(GetPipelineResponse response) {
try {
List<PipelineConfiguration> clonePipelines = new ArrayList<>(response.pipelines());
clonePipelines.add(createRandomPipeline("pipeline_" + clonePipelines.size() + 1));
return new GetPipelineResponse(clonePipelines);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
Aggregations