nifi/nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service
Mike Thomsen f35f010deb
NIFI-9085 Refactored the Elasticsearch bundle to use JUnit 5
- NIFI-9086 Refactored nifi-accumulo-bundle to use JUnit 5
- NIFI-9087 Updated nifi-ambari-bundle to use JUnit 5
- NIFI-9088 Refactored nifi-amqp-bundle to use JUnit 5
- NIFI-9089 Updated nifi-asn1-bundle to use JUnit 5
- NIFI-9090 Refactored nifi-atlas-bundle to use JUnit 5
- NIFI-9091 Refactored nifi-avro-bundle to use JUnit 5
- NIFI-9092 Refactored nifi-aws-bundle to use JUnit 5
- NIFI-9095 Refactored nifi-azure-bundle to use JUnit 5
- NIFI-9145 Refactored nifi-rethinkdb-bundle to use JUnit 5
- NIFI-9143 Refactored nifi-redis-bundle to use JUnit 5

This closes #5350

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2022-03-07 21:49:23 -06:00
..

Elasticsearch Client Service

Integration Tests

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:

Elasticsearch 5

Test integration with Elasticsearch 5.x:

mvn -P integration-tests,elasticsearch-oss clean verify

Elasticsearch 6

Test integration with Elasticsearch 6.x:

mvn -P integration-tests,elasticsearch-oss,elasticsearch-6 clean verify

Elasticsearch 7

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:

  1. elasticsearch-7 that can be used with oss (no X-Pack) and default (with X-Pack) flavours
  2. elasticsearch-7-no-oss that can only be used with the default flavour (using a newer version of elasticsearch)

With X-Pack

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

Without X-Pack

mvn -P integration-tests,elasticsearch-oss,elasticsearch-7 clean verify

Elasticsearch 8

Test integration with Elasticsearch 8.x (with X-Pack):

mvn -P integration-tests,elasticsearch-default,elasticsearch-8 clean verify