Elasticsearch: Unharcode localhost for container's

No longer hardcode the docker container hostname for the Elasticsearch
tests. Use the hostname that was dynamically resolved from the running
ElasticContainer (the 'testcontainer') instead.

This is so that tests running upon non-localhost named containers may
pass like in the localhost case.

Change-Id: I9dbd8b76bd7b22004d1d2327bb4c8395907ff223
13 files changed
tree: 1164361a5aeb150554f42a0c3c3d03474b7d9f06
  1. java/
  2. javatests/