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
4 files changed