commit | 756ec2b22197e9ba3eac9495fade1d36b47e48d8 | [log] [tgz] |
---|---|---|
author | Nasser Grainawi <nasser.grainawi@linaro.org> | Thu Feb 08 15:50:41 2024 -0800 |
committer | Nasser Grainawi <nasser.grainawi@linaro.org> | Thu Apr 18 13:30:37 2024 -0700 |
tree | a5fca05bbc43d4022c297717ff032e361f22f2cd | |
parent | 96ad748ba0190adac8eb052527f5f0555bee8f90 [diff] |
test: Always enable SSL for ES containers Most of the test code assumed the test container would always be unsecured (reachable via 'http://', no username/password, etc), but it's possible (and the default in newer Elasticsearch versions) to configure the container to run in a secure mode. Use the new support in testcontainers to always enable SSL for ES so that Elasticsearch versions will be tested similarly. This change ensures the tests use any passwords and self-signed certificates generated by the test container, as well as correctly using 'https://' URLs when needed. This change uses the tests in testcontainers [1] as an example for how to do this and ensures the docker-in-docker setup used by gerrit-ci is supported. [1] https://github.com/testcontainers/testcontainers-java/blob/main/modules/elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java Change-Id: Ifca5948995ec881d8e941702fef611a3455e0cb7
Indexing backend libModule for Gerrit Code Review based on ElasticSearch.
This module was originally part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.
Note that, ElasticSearch source code is no longer Apache 2.0-licensed for versions 7.11 and newer. See ElasticSearch 2021 license change for more information.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
See the setup instructions for how to install the index-elasticsearch module.
For further information and supported options, refer to the config documentation.
This libModule runs tests like a Gerrit in-tree plugin, using Bazelisk. See the test instructions for more details.