Elasticsearch: Add tests for queries against version 6
Add separate test classes to test queries with Elasticsearch version 6.
The entire test classes are basically copied from the existing ones,
with the only difference being the version passed into the config and
into the container creation. This cannot be achieved using an abstract
class due to the container being created in the @BeforeClass annotated
method which is static and cannot be overridden by a derived class.
The docker image for V6 testing requires this limit [1] to be secured.
The test container otherwise aborts upon running V6 tests, causing an
AssumptionViolatedException, which is currently ignored by Bazel ([2]).
Amend the test execution documentation accordingly.
Replace the V6 image used for testing with the oss one, which has no
X-Pack or security defaults installed; cf. [3]. Without this change,
V6 tests fail upon api usage lacking authorization.
[1] https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
[2] https://github.com/bazelbuild/bazel/issues/3476
[3] https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
Bug: Issue 9112
Bug: Issue 9212
Change-Id: I11ced5f811cdc078d7feba187086e803326886cb
diff --git a/Documentation/dev-bazel.txt b/Documentation/dev-bazel.txt
index 341094d..6d5c75a 100644
--- a/Documentation/dev-bazel.txt
+++ b/Documentation/dev-bazel.txt
@@ -269,6 +269,15 @@
* server
* ssh
+[[elasticsearch]]
+=== Elasticsearch
+
+Successfully running the elasticsearch tests may require setting the local
+link:https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html[virtual memory].
+
+Bazel link:https://github.com/bazelbuild/bazel/issues/3476[does not currently make container failures visible],
+if any.
+
== Dependencies
Dependency JARs are normally downloaded as needed, but you can