Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi testing : Input Port and Output Port

Nifi testing : Input Port and Output Port

New Contributor

Hi all,

I have a flow with 1 input and 2 output flows (happy path and failure path). I would like to unit test the flow, thinking to put message directly to the input flow and assert the response in either response or failure ports. Possible options are to use REST api or site-2-site with transaction ?. I managed to get to use site-to-site for write and read but I have noticed that output port is always left with last message even after consuming it (I did commit the transaction i.e . transaction.confirm() & transaction.complete()). I don't have any remote process group.

Anyone managed to get this working and may share the sample code ? please or any other way to test this ?