Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1276#discussion_r90293399
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/test/java/org/apache/nifi/processors/elasticsearch/TestFetchElasticsearchHttp.java
 ---
    @@ -65,6 +65,35 @@ public void teardown() {
         public void testFetchElasticsearchOnTrigger() throws IOException {
             runner = TestRunners.newTestRunner(new 
FetchElasticsearchHttpTestProcessor(true)); // all docs are found
             runner.setValidateExpressionUsage(true);
    +        runner.setProperty(AbstractElasticsearchHttpProcessor.ES_URL, 
"${es.url}");
    +
    +        runner.setProperty(FetchElasticsearchHttp.INDEX, "doc");
    +        runner.assertNotValid();
    +        runner.setProperty(FetchElasticsearchHttp.TYPE, "status");
    +        runner.assertNotValid();
    +        runner.setProperty(FetchElasticsearchHttp.DOC_ID, "${doc_id}");
    +        runner.assertValid();
    +        
runner.setProperty(AbstractElasticsearchHttpProcessor.CONNECT_TIMEOUT, 
"${connect.timeout}");
    +        runner.assertValid();
    +
    +        runner.setVariable("es.url", "http://127.0.0.1:9200";);
    +        runner.setVariable("connect.timeout", "5s");
    +
    +        runner.enqueue(docExample, new HashMap<String, String>() {{
    +            put("doc_id", "28039652140");
    +        }});
    +        runner.run(1, true, true);
    +
    +        
runner.assertAllFlowFilesTransferred(FetchElasticsearchHttp.REL_SUCCESS, 1);
    +        final MockFlowFile out = 
runner.getFlowFilesForRelationship(FetchElasticsearchHttp.REL_SUCCESS).get(0);
    +        assertNotNull(out);
    +        out.assertAttributeEquals("doc_id", "28039652140");
    +    }
    +
    +    @Test
    +    public void testFetchElasticsearchOnTriggerEL() throws IOException {
    --- End diff --
    
    Looks like the test names got mixed up here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to