The nifi-elasticsearch-client-service
component build allows for optional Integration Tests to be executed to verify additional functionality.
The Integration Tests create an in-memory instance of Elasticsearch, populate it with known data, perform operations upon the instance and verify the results.
These can be activated by running the following build commands:
Test integration with Elasticsearch 5.x:
mvn -P integration-tests,elasticsearch-oss clean verify
Test integration with Elasticsearch 6.x:
mvn -P integration-tests,elasticsearch-oss,elasticsearch-6 clean verify
elasticsearch-oss was discontinued after 7.10.2
, so the use of elasticsearch-oss
is unnecessary for newer versions.
For 7.x, we have two separate profiles:
elasticsearch-7
that can be used with oss
(no X-Pack) and default
(with X-Pack) flavourselasticsearch-7-no-oss
that can only be used with the default
flavour (using a newer version of elasticsearch)Allows for testing of some X-Pack only features such as “Point in Time” querying:
mvn -P integration-tests,elasticsearch-default,elasticsearch-7 clean verify sleep 2 mvn -P integration-tests,elasticsearch-default,elasticsearch-7-no-oss clean verify
mvn -P integration-tests,elasticsearch-oss,elasticsearch-7 clean verify
Test integration with Elasticsearch 8.x (with X-Pack):
mvn -P integration-tests,elasticsearch-default,elasticsearch-8 clean verify