ElasticContainer: Create with static method

Move creation of the container and handling of failure into a static
method in ElasticContainer, which is then called from the tests.

Change-Id: I176acdc05bbc6e06ce8c1fd76acbc9b3902c06be
4 files changed
tree: 7e44944e689d3a14f27f5d1f3acdbc95fbfd3746
  1. gerrit-elasticsearch/
  2. gerrit-pgm/