Add test for zookeeper auth config parsing

We have now split parsing of the curator config from actually building
the curator object.

When calling builder.build() the Curator framework waits for it to
connect to a zookeeper instance, which we don't have in this instance.

In order to be able to test the parsed configuration without the need to
start a Zookeeper instance, the refactoring in ZookeeperConfig.java was
required.

Change-Id: I0695678348e64b7fc7390d4eb5bbcec19f290475
5 files changed
tree: 5f5039f71324e31159786a29da33de7db8d43a16
  1. src/
  2. .gitignore
  3. BUILD
  4. external_plugin_deps.bzl
  5. Jenkinsfile
  6. LICENSE
  7. README.md
README.md

Gerrit Zookeeper ref-db

This plugin provides an implementation of the Gerrit global ref-db backed by Apache Zookeeper.

Requirements for using this plugin are:

  • Gerrit v3.2 or later
  • Apache Zookeeper v3.4 or later

Typical use-case

The global ref-db is a typical use-case of a Gerrit multi-master scenario in a multi-site setup. Refer to the Gerrit multi-site plugin for more details on the high level architecture.