Vincent, I do something along these lines in Python to test NiFi automation work. NiPyApi creates the requisite Docker container(s) for the test suite, procedurally creates the NiFi/Registry objects (Process Groups, Processors, Buckets, Flows, etc), recursively tests itself, then tears itself down.
I know this is not 'embedded', but could automated and containerised be close enough to meet your needs? Thanks, Dan On Wed, Jan 24, 2018 at 2:22 AM Peter Wicks (pwicks) <[email protected]> wrote: > Vincent, > > Embedded NiFi still has a long ways to go to be really useful, in my > opinion; and I don't know if anyone is actively working on those > improvements. > > The PR Andy mentioned simply allows you to startup NiFi inside your > process instead of running it directly from a startup script, but that > doesn't mean you magically have access to all of NiFi's internals (someone > can correct me if I'm wrong). If you want to actually interact with your > new NiFi instance you will still need to use the REST API. > > Thanks, > Peter > > -----Original Message----- > From: Vincent Russell [mailto:[email protected]] > Sent: Tuesday, January 23, 2018 03:07 > To: [email protected] > Subject: [EXT] Re: Embedded Nifi > > Thanks Andy, > > This looks a great first step. It would be nice to have a builder pattern > and the ability to download the "executable" from a nexus or the local > filesystem like embedded elastic, but perhaps that might be better in some > third party library. > > https://github.com/allegro/embedded-elasticsearch > > -Vincent > > On Mon, Jan 22, 2018 at 1:37 PM, Andy LoPresto <[email protected]> > wrote: > > > Vincent, > > > > I plan to merge this pull request [1] for NIFI-4424 [2] by Peter > > Horvath today. Does this satisfy your requirements? > > > > [1] https://github.com/apache/nifi/pull/2251 > > [2] https://issues.apache.org/jira/browse/NIFI-4424 > > > > Andy LoPresto > > [email protected] > > *[email protected] <[email protected]>* PGP > > Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > > > > On Jan 21, 2018, at 7:35 AM, Vincent Russell > > <[email protected]> > > wrote: > > > > Devs, > > > > Does an embedded nifi exist that would start a nifi with a provided > > workflow? I am aware of the Mock framework, but I am looking for > > something for integration tests. > > > > Thanks, > > Vincent > > > > > > >
