commit | 53a86ea9c43eb4b304e555e837a97627ad9548ee | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sat May 14 13:39:47 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Mon May 16 13:49:38 2022 +0200 |
tree | 7104e1ee7dd958ebd9a4617361d1f87e9775c0a7 | |
parent | 1f041537bc66f1102ae46395e10fd445b4b5d803 [diff] |
Restore dockerized integration tests In Ib7b5167ce2 was extracted as index lib module. The dockerized tests were removed during extraction, as those tests require more work. This change adds the tests and adapts the build toolchain to support running them. Also implement index-elasticsearch__plugin_test_deps build rule and document how to import this lib module in eclipse IDE. Change-Id: Ieb5f8aeb22780bf9d013775613147f85670aff3f
Indexing backend libModule for Gerrit Code Review based on ElasticSearch.
This module was original part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
Install the index-elasticsearch.jar into the $GERRIT_SITE/lib
directory.
Add the index-elasticsearch module to $GERRIT_SITE/etc/gerrit.config
as follows:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ElasticIndexModule
When installing the module on Gerrit replicas, use following example:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ReplicaElasticIndexModule
For further information and supported options, refer to config documentation.
Gerrit acceptance tests allow the execution with an alternate implementation of the indexing backend using the GERRIT_INDEX_MODULE
environment variable.
bazel test --test_env=GERRIT_INDEX_MODULE=com.google.gerrit.elasticsearch.ElasticIndexModule //...