nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Zhurakousky <ozhurakou...@hortonworks.com>
Subject Re: Testing a nifi flow via junit
Date Mon, 11 Jan 2016 14:23:43 GMT
Just following up. . .
The project I was referring to is here in my fork (https://github.com/olegz/nifi/tree/int-test/nifi-integration-tests),
you can see there are few tests that essentially assemble a flow outside of Mock and/or UI.
There is more to be added there, but a good place to start.
Cheers
Oleg

On Jan 9, 2016, at 2:32 PM, Oleg Zhurakousky <ozhurakousky@hortonworks.com<mailto:ozhurakousky@hortonworks.com>>
wrote:

This is definitely possible and been done. What makes it difficult at times is to have all
required NiFi dependencies in the process space of a given test.
I've actually proposed a separate module for these types of 'headless' flow tests. It actually
helped me to discover some of the bugs as well as learn some of the NiFi internals.

Anyway, not near the computer at the moment, but will follow up with more next week

Oleg

Sent from my iPhone

On Jan 4, 2016, at 12:38, Vincent Russell <vincent.russell@gmail.com<mailto:vincent.russell@gmail.com>>
wrote:

All,

I see that there is a way to test a single processor with the TestRunner (StandardProcessorTestRunner)
class, but is there a way to set up an integration test to test a complete flow or a subset
of a flow?

Thank you,
Vincent


Mime
View raw message