nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markap14 <...@git.apache.org>
Subject [GitHub] nifi pull request: NIFI-1192 added support for dynamic properties ...
Date Tue, 24 Nov 2015 01:41:00 GMT
Github user markap14 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/131#discussion_r45688059
  
    --- Diff: nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/TestGetKafka.java
---
    @@ -45,13 +45,18 @@ public static void configureLogging() {
         }
     
         @Test
    -    @Ignore("Intended only for local tests to verify functionality.")
         public void testIntegrationLocally() {
    +        EmbeddedKafka kafka = new EmbeddedKafka();
    +        kafka.start();
    +
    +        kafka.addTopic("testX", 1);
    +        kafka.sendMessage("testX");
    +
             final TestRunner runner = TestRunners.newTestRunner(GetKafka.class);
    -        runner.setProperty(GetKafka.ZOOKEEPER_CONNECTION_STRING, "192.168.0.101:2181");
    +        runner.setProperty(GetKafka.ZOOKEEPER_CONNECTION_STRING, "localhost:2181");
             runner.setProperty(GetKafka.TOPIC, "testX");
    -        runner.setProperty(GetKafka.KAFKA_TIMEOUT, "3 secs");
    -        runner.setProperty(GetKafka.ZOOKEEPER_TIMEOUT, "3 secs");
    +        // runner.setProperty(GetKafka.KAFKA_TIMEOUT, "3 secs");
    --- End diff --
    
    If this line and the next are not needed, can you remove them rather than commenting them
out?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message