@@ -62,7 +62,7 @@ public String getTag() {
62
62
when (ingestService .getPipeline (pipelineId )).thenReturn (pipeline );
63
63
PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
64
64
Map <String , Object > config = new HashMap <>();
65
- config .put ("pipeline " , pipelineId );
65
+ config .put ("name " , pipelineId );
66
66
factory .create (Collections .emptyMap (), null , config ).execute (testIngestDocument );
67
67
assertEquals (testIngestDocument , invoked .get ());
68
68
}
@@ -72,7 +72,7 @@ public void testThrowsOnMissingPipeline() throws Exception {
72
72
IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
73
73
PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
74
74
Map <String , Object > config = new HashMap <>();
75
- config .put ("pipeline " , "missingPipelineId" );
75
+ config .put ("name " , "missingPipelineId" );
76
76
IllegalStateException e = expectThrows (
77
77
IllegalStateException .class ,
78
78
() -> factory .create (Collections .emptyMap (), null , config ).execute (testIngestDocument )
@@ -88,21 +88,21 @@ public void testThrowsOnRecursivePipelineInvocations() throws Exception {
88
88
IngestService ingestService = mock (IngestService .class );
89
89
IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
90
90
Map <String , Object > outerConfig = new HashMap <>();
91
- outerConfig .put ("pipeline " , innerPipelineId );
91
+ outerConfig .put ("name " , innerPipelineId );
92
92
PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
93
93
Pipeline outer = new Pipeline (
94
94
outerPipelineId , null , null ,
95
95
new CompoundProcessor (factory .create (Collections .emptyMap (), null , outerConfig ))
96
96
);
97
97
Map <String , Object > innerConfig = new HashMap <>();
98
- innerConfig .put ("pipeline " , outerPipelineId );
98
+ innerConfig .put ("name " , outerPipelineId );
99
99
Pipeline inner = new Pipeline (
100
100
innerPipelineId , null , null ,
101
101
new CompoundProcessor (factory .create (Collections .emptyMap (), null , innerConfig ))
102
102
);
103
103
when (ingestService .getPipeline (outerPipelineId )).thenReturn (outer );
104
104
when (ingestService .getPipeline (innerPipelineId )).thenReturn (inner );
105
- outerConfig .put ("pipeline " , innerPipelineId );
105
+ outerConfig .put ("name " , innerPipelineId );
106
106
ElasticsearchException e = expectThrows (
107
107
ElasticsearchException .class ,
108
108
() -> factory .create (Collections .emptyMap (), null , outerConfig ).execute (testIngestDocument )
@@ -117,7 +117,7 @@ public void testAllowsRepeatedPipelineInvocations() throws Exception {
117
117
IngestService ingestService = mock (IngestService .class );
118
118
IngestDocument testIngestDocument = RandomDocumentPicks .randomIngestDocument (random (), new HashMap <>());
119
119
Map <String , Object > outerConfig = new HashMap <>();
120
- outerConfig .put ("pipeline " , innerPipelineId );
120
+ outerConfig .put ("name " , innerPipelineId );
121
121
PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
122
122
Pipeline inner = new Pipeline (
123
123
innerPipelineId , null , null , new CompoundProcessor ()
@@ -136,11 +136,11 @@ public void testPipelineProcessorWithPipelineChain() throws Exception {
136
136
PipelineProcessor .Factory factory = new PipelineProcessor .Factory (ingestService );
137
137
138
138
Map <String , Object > pipeline1ProcessorConfig = new HashMap <>();
139
- pipeline1ProcessorConfig .put ("pipeline " , pipeline2Id );
139
+ pipeline1ProcessorConfig .put ("name " , pipeline2Id );
140
140
PipelineProcessor pipeline1Processor = factory .create (Collections .emptyMap (), null , pipeline1ProcessorConfig );
141
141
142
142
Map <String , Object > pipeline2ProcessorConfig = new HashMap <>();
143
- pipeline2ProcessorConfig .put ("pipeline " , pipeline3Id );
143
+ pipeline2ProcessorConfig .put ("name " , pipeline3Id );
144
144
PipelineProcessor pipeline2Processor = factory .create (Collections .emptyMap (), null , pipeline2ProcessorConfig );
145
145
146
146
Clock clock = mock (Clock .class );
0 commit comments