@@ -63,7 +63,7 @@ public String getTag() {
6363 when (ingestService .getPipeline (pipelineId )).thenReturn (pipeline );
6464 PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
6565 Map <String , Object > config = new HashMap <>();
66- config .put ("pipeline " , pipelineId );
66+ config .put ("name " , pipelineId );
6767 factory .create (Collections .emptyMap (), null , config ).execute (testIngestDocument );
6868 assertEquals (testIngestDocument , invoked .get ());
6969 }
@@ -73,7 +73,7 @@ public void testThrowsOnMissingPipeline() throws Exception {
7373 IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
7474 PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
7575 Map <String , Object > config = new HashMap <>();
76- config .put ("pipeline " , "missingPipelineId" );
76+ config .put ("name " , "missingPipelineId" );
7777 IllegalStateException e = expectThrows (
7878 IllegalStateException .class ,
7979 () -> factory .create (Collections .emptyMap (), null , config ).execute (testIngestDocument )
@@ -89,21 +89,21 @@ public void testThrowsOnRecursivePipelineInvocations() throws Exception {
8989 IngestService ingestService = mock (IngestService .class );
9090 IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
9191 Map <String , Object > outerConfig = new HashMap <>();
92- outerConfig .put ("pipeline " , innerPipelineId );
92+ outerConfig .put ("name " , innerPipelineId );
9393 PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
9494 Pipeline outer = new Pipeline (
9595 outerPipelineId , null , null ,
9696 new CompoundProcessor (factory .create (Collections .emptyMap (), null , outerConfig ))
9797 );
9898 Map <String , Object > innerConfig = new HashMap <>();
99- innerConfig .put ("pipeline " , outerPipelineId );
99+ innerConfig .put ("name " , outerPipelineId );
100100 Pipeline inner = new Pipeline (
101101 innerPipelineId , null , null ,
102102 new CompoundProcessor (factory .create (Collections .emptyMap (), null , innerConfig ))
103103 );
104104 when (ingestService .getPipeline (outerPipelineId )).thenReturn (outer );
105105 when (ingestService .getPipeline (innerPipelineId )).thenReturn (inner );
106- outerConfig .put ("pipeline " , innerPipelineId );
106+ outerConfig .put ("name " , innerPipelineId );
107107 ElasticsearchException e = expectThrows (
108108 ElasticsearchException .class ,
109109 () -> factory .create (Collections .emptyMap (), null , outerConfig ).execute (testIngestDocument )
@@ -118,7 +118,7 @@ public void testAllowsRepeatedPipelineInvocations() throws Exception {
118118 IngestService ingestService = mock (IngestService .class );
119119 IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
120120 Map <String , Object > outerConfig = new HashMap <>();
121- outerConfig .put ("pipeline " , innerPipelineId );
121+ outerConfig .put ("name " , innerPipelineId );
122122 PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
123123 Pipeline inner = new Pipeline (
124124 innerPipelineId , null , null , new CompoundProcessor ()
@@ -137,11 +137,11 @@ public void testPipelineProcessorWithPipelineChain() throws Exception {
137137 PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
138138
139139 Map <String , Object > pipeline1ProcessorConfig = new HashMap <>();
140- pipeline1ProcessorConfig .put ("pipeline " , pipeline2Id );
140+ pipeline1ProcessorConfig .put ("name " , pipeline2Id );
141141 PipelineProcessor pipeline1Processor = factory .create (Collections .emptyMap (), null , pipeline1ProcessorConfig );
142142
143143 Map <String , Object > pipeline2ProcessorConfig = new HashMap <>();
144- pipeline2ProcessorConfig .put ("pipeline " , pipeline3Id );
144+ pipeline2ProcessorConfig .put ("name " , pipeline3Id );
145145 PipelineProcessor pipeline2Processor = factory .create (Collections .emptyMap (), null , pipeline2ProcessorConfig );
146146
147147 LongSupplier relativeTimeProvider = mock (LongSupplier .class );
0 commit comments