Elasticsearch: Add tests for queries against version 5
Add separate test classes to test queries with Elasticsearch version 5.
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 byOwnerInvalidQuery test is moved up from ElasticQueryChangesTest
to AbstractQueryChangesTest to avoid having to repeat it in all the
Elasticsearch test classes.
Bug: Issue 6094
Change-Id: I9b91cbcbc24924dce43b1be9530543097b5fd174
4 files changed