Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated Testing of Nifi flows using Jenkins

Tags:

Is there any way to automatically run regression/functional tests on Nifi flows using Jenkins pipeline ?

Searched for it, without any success.

Thanks for your help.

like image 732
dossani Avatar asked Feb 12 '18 16:02

dossani


People also ask

How do you deploy NiFi flows?

To do this, navigate to your Flow Management Data Hub cluster and click the NiFi Registry icon which logs you into the NiFi Registry UI. In the NiFi Registry UI, find the flow definition that you want to export by looking for the flow name that you provided when you started versioning your process group.

What is Jenkins in automation testing?

Jenkins is a popular CI orchestration tool. It provides numerous plugins for integration with multiple test automation tools and frameworks into the test pipeline. When it comes to Test Automation, Jenkins provides plugins that help run test suites, gather dashboard results, and provide details on failures.

What is Apache NiFi registry?

Apache NiFi Registry-a subproject of Apache NiFi-is a complementary application that provides a central location for storage and management of shared resources across one or more instances of NiFi and/or MiNiFi. The first implementation of the Registry supports versioned flows.


1 Answers

With the recent release of NiFI-1.5.0 and NiFi-Registry-0.1.0, the community has come together to produce a number of SDLC/CICD integration tools to make using things like Jenkins Pipeline easier.

There is both Python (NiPyAPI), and Java (NiFi-Toolkit-CLI) API wrappers being produced by a team of collaborators to allow scripted manipulation of NiFi Flows across different environments. Common functions include interaction with integrated version control, import/export of flows as JSON documents, deployment between environments, start/stop of flows, etc.

So, we are working quickly towards supporting things like an integrated wrapper for declarative Jenkins Pipelines, and I would add it is being done fully in public codebase under the Apache license, so we (I am the lead NiPy author) would welcome your collaboration.

like image 160
Chaffelson Avatar answered Nov 15 '22 07:11

Chaffelson