gerrit/gerrit-elasticsearch/src
David Ostrovsky 5f40a6adff Acceptance tests: Replace embedded ES with docker testcontainer
Testcontainers is a Java 8 library that supports JUnit tests, providing
lightweight, throwaway instances of common databases, Selenium web
browsers, or anything else that can run in a Docker container.

This change replaces ES integration test that currently uses embedded
ES mode with ES docker image using Testcontainers library. All this is
done from within acceptance tests.

This change removes dependency on ES server stack for the test code. As
the consequence, this stack can be removed.

Prerequisite for this change is installed docker service on the SUT. If
docker service is not installed, assumption violation is raised so that
the tests don't fail. Unfortunately, due to this missing Bazel feature,
JUnit assumption violations are not reflected on the Bazel UI: [1] yet.

[1] https://github.com/bazelbuild/bazel/issues/3476

Change-Id: Iccf44310292cc44bff9173f2a4ea757b43f77183
2018-05-28 14:30:23 +09:00
..
main/java/com/google/gerrit/elasticsearch Acceptance tests: Replace embedded ES with docker testcontainer 2018-05-28 14:30:23 +09:00
test/java/com/google/gerrit/elasticsearch Acceptance tests: Replace embedded ES with docker testcontainer 2018-05-28 14:30:23 +09:00