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