<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Testing Nifi Unit &amp; Integration Testing &amp; automating it Any Ideas? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/113176#M33881</link>
    <description>&lt;P&gt;For unit testing custom processors, nifi has a test framework, see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2.0.1/bk_DeveloperGuide/content/testing.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2.0.1/bk_DeveloperGuide/content/testing.html&lt;/A&gt; for some details about the TestRunner and nifi-mock package. This allows building of quick mock flows and provides a number of assertions for testing processors.&lt;/P&gt;&lt;P&gt;This approach allows fully automated testing of processor units.&lt;/P&gt;&lt;P&gt;If you're looking for more of an integration testing approach a flow, this is a little more involved. You could use the nifi framework to programmatically create flows around mock repositories. However, for a full integration test in a live nifi instance, I would recommend using tracer messages or object in the relevant ingest points, and testing against results, possibly using the LogAttributes, or Routes based on metadata to check the integrity of your results. GenerateFlowFile can also be useful for testing flows. To automate these in a CI environment you might look at deploying Templates with a &lt;A target="_blank" href="https://github.com/aperepel/nifi-api-deploy/"&gt;script&lt;/A&gt; into a CI hosted nifi instance.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 18:57:54 GMT</pubDate>
    <dc:creator>sball</dc:creator>
    <dc:date>2016-07-05T18:57:54Z</dc:date>
    <item>
      <title>Testing Nifi Unit &amp; Integration Testing &amp; automating it Any Ideas?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/113175#M33880</link>
      <description>&lt;P&gt;Just wondering if anyone has any suggestions on Unit Testing &amp;amp; Integration Testing Nifi. Want to make these tests automated as well. Is there any framework or examples currently to acheive these. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:26:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/113175#M33880</guid>
      <dc:creator>bigspark</dc:creator>
      <dc:date>2016-07-05T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Testing Nifi Unit &amp; Integration Testing &amp; automating it Any Ideas?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/113176#M33881</link>
      <description>&lt;P&gt;For unit testing custom processors, nifi has a test framework, see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2.0.1/bk_DeveloperGuide/content/testing.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2.0.1/bk_DeveloperGuide/content/testing.html&lt;/A&gt; for some details about the TestRunner and nifi-mock package. This allows building of quick mock flows and provides a number of assertions for testing processors.&lt;/P&gt;&lt;P&gt;This approach allows fully automated testing of processor units.&lt;/P&gt;&lt;P&gt;If you're looking for more of an integration testing approach a flow, this is a little more involved. You could use the nifi framework to programmatically create flows around mock repositories. However, for a full integration test in a live nifi instance, I would recommend using tracer messages or object in the relevant ingest points, and testing against results, possibly using the LogAttributes, or Routes based on metadata to check the integrity of your results. GenerateFlowFile can also be useful for testing flows. To automate these in a CI environment you might look at deploying Templates with a &lt;A target="_blank" href="https://github.com/aperepel/nifi-api-deploy/"&gt;script&lt;/A&gt; into a CI hosted nifi instance.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 18:57:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/113176#M33881</guid>
      <dc:creator>sball</dc:creator>
      <dc:date>2016-07-05T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Testing Nifi Unit &amp; Integration Testing &amp; automating it Any Ideas?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/385781#M33882</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you're looking for more of an integration testing flow testing I have built a framework that empowers flow developers do flow testing without writing single line of code by deploying target flow on Nifi Server running in docker container, run tests, generate test report and delete the test flow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Medium Article:&amp;nbsp;&lt;A href="https://medium.com/@dharmachand/comprehensive-guide-to-nifi-flow-testing-with-nipyapi-e44a61975be9" target="_blank"&gt;https://medium.com/@dharmachand/comprehensive-guide-to-nifi-flow-testing-with-nipyapi-e44a61975be9&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GitHub Repo:&amp;nbsp;&lt;A href="https://github.com/dharmachand/nifi-testing" target="_blank"&gt;https://github.com/dharmachand/nifi-testing&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chand&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 01:56:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Testing-Nifi-Unit-Integration-Testing-automating-it-Any/m-p/385781#M33882</guid>
      <dc:creator>dharmachand</dc:creator>
      <dc:date>2024-03-31T01:56:54Z</dc:date>
    </item>
  </channel>
</rss>

