Fix compilation and tests for customAuthzEngine (#125469)

Relates: #123812
This commit is contained in:
Yang Wang 2025-03-24 12:03:06 +11:00 committed by GitHub
parent 59a55c85f3
commit 6c04abc68c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 68 additions and 52 deletions

View file

@ -1,5 +1,6 @@
package org.elasticsearch.example.customprocessor;
import org.elasticsearch.cluster.metadata.ProjectId;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;
import org.elasticsearch.ingest.IngestDocument;
@ -44,7 +45,8 @@ public class ExampleRepeatProcessor extends AbstractProcessor {
Map<String, Processor.Factory> registry,
String tag,
String description,
Map<String, Object> config
Map<String, Object> config,
ProjectId projectId
) {
String field = ConfigurationUtils.readStringProperty(TYPE, tag, config, FIELD_KEY_NAME);
return new ExampleRepeatProcessor(tag, description, field);