nifi/nifi-nar-bundles/nifi-elasticsearch-bundle
Nandor Soma Abonyi 241d619138
NIFI-10775 Improve support for DescribedValue in PropertyDescriptor.Builder
This closes #6650.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
2022-11-15 22:17:21 +01:00
..
nifi-elasticsearch-client-service NIFI-10760 Add API Key authentication to ElasticSearchClientServiceImpl 2022-11-08 16:02:49 -06:00
nifi-elasticsearch-client-service-api NIFI-10775 Improve support for DescribedValue in PropertyDescriptor.Builder 2022-11-15 22:17:21 +01:00
nifi-elasticsearch-client-service-api-nar NIFI-10521-RC4 prepare for next development iteration 2022-10-03 10:59:36 -07:00
nifi-elasticsearch-client-service-nar NIFI-10521-RC4 prepare for next development iteration 2022-10-03 10:59:36 -07:00
nifi-elasticsearch-nar NIFI-10521-RC4 prepare for next development iteration 2022-10-03 10:59:36 -07:00
nifi-elasticsearch-processors NIFI-10648 Upgraded Apache Commons Text to 1.10.0 2022-10-14 14:07:23 -04:00
nifi-elasticsearch-restapi-nar NIFI-10521-RC4 prepare for next development iteration 2022-10-03 10:59:36 -07:00
nifi-elasticsearch-restapi-processors NIFI-9398 add verification to ElasticSearchClientService (with integration tests) and Elasticsearch REST API processors 2022-11-05 18:17:13 -04:00
nifi-elasticsearch-test-utils NIFI-10760 Add API Key authentication to ElasticSearchClientServiceImpl 2022-11-08 16:02:49 -06:00
README.md NIFI-9398 add verification to ElasticSearchClientService (with integration tests) and Elasticsearch REST API processors 2022-11-05 18:17:13 -04:00
pom.xml NIFI-9398 add verification to ElasticSearchClientService (with integration tests) and Elasticsearch REST API processors 2022-11-05 18:17:13 -04:00

README.md

Integration Tests

Overview

The integration tests use Testcontainers to provide a sane default for developers who have installed Docker. Testcontainers support can be disabled by setting the system property elasticsearch.testcontainers.enabled to something other than true. If Testcontainers are disabled, the endpoint will need to be configured. It can be set manually with the system property elasticsearch.endpoint. The default value is http://localhost:9200.

Maven Profiles

  • integration-tests
  • elasticsearch6
  • elasticsearch7

Configurable System Properties

  • elasticsearch.endpoint - Manually configure the endpoint root for a non-Docker version of Elasticsearch,
  • elasticsearch.testcontainers.enabled - Set to anything other than true to disable Testcontainers and use a non-Docker version of Elasticsearch.
  • elasticsearch.elastic_user.password - Set the Elasticsearch elastic user's password. When Testcontainers are enabled, this sets up the Docker container and the rest clients for accessing it within the tests. When Testcontainers are disabled, it needs to be set to whatever password is used on the external Elasticsearch node or cluster.

Maven Run Examples

Elasticsearch 8.X is the current default version of Elasticsearch when Testcontainers are used. An example run of the integration tests with Elasticsearch 7 support would be like this:

mvn -Pintegration-tests,elasticsearch7 --fail-at-end clean install

An example using a non-Docker version of Elasticsearch:

mvn -Pintegration-tests --fail-at-end -Delasticsearch.testcontainers.enabled=false -Delasticsearch.elastic_user.password=s3cret1234 clean install

Modules with Integration Tests (using Testcontainers)

Misc

Integration Tests with Testcontainers currently only uses the amd64 Docker Images.

elasticsearch6 is known to not work with arm64 machines (e.g. Mac M1/M2), but other Elasticsearch images (e.g. 7.x and 8.x) appear to work.

Explicit arm64 architecture support may be added in future where the Elasticsearch images exist.