adapt error message when node.ingest is set to false and we fail executing a pipeline

This commit is contained in:
javanna 2016-01-07 18:59:14 +01:00 committed by Luca Cavanna
parent ae69d46f92
commit 8675784e3f
2 changed files with 3 additions and 3 deletions

View File

@ -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 + "]");
}
}

View File

@ -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: