adapt error message when node.ingest is set to false and we fail executing a pipeline
This commit is contained in:
parent
ae69d46f92
commit
8675784e3f
|
@ -52,7 +52,7 @@ public final class IngestDisabledActionFilter implements ActionFilter {
|
|||
}
|
||||
|
||||
private static void failRequest(String pipelineId) {
|
||||
throw new IllegalArgumentException("ingest plugin is disabled, cannot execute pipeline with id [" + pipelineId + "]");
|
||||
throw new IllegalArgumentException("node.ingest is set to false, cannot execute pipeline with id [" + pipelineId + "]");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
---
|
||||
"Test index api with pipeline id fails when node.ingest is set to false":
|
||||
- do:
|
||||
catch: /ingest plugin is disabled, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||
catch: /node.ingest is set to false, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||
index:
|
||||
index: test
|
||||
type: test
|
||||
|
@ -94,7 +94,7 @@
|
|||
---
|
||||
"Test bulk api with pipeline id fails when node.ingest is set to false":
|
||||
- do:
|
||||
catch: /ingest plugin is disabled, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||
catch: /node.ingest is set to false, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||
bulk:
|
||||
pipeline: "my_pipeline_1"
|
||||
body:
|
||||
|
|
Loading…
Reference in New Issue