lordofthejars / nosql-unit

NoSQL Unit is a JUnit extension that helps you write NoSQL unit tests.
Other
383 stars 123 forks source link

Unable to set connection identifier for remote elasticsearch #137

Closed dennisoelkers closed 9 years ago

dennisoelkers commented 9 years ago

Hey folks. Thanks for nosql-unit!

I am trying to use it for multiple simultaneous connections to remote databases like MongoDB and elasticsearch. Unfortunately it is not possible to set a connection identifier for a remote elasticsearch configuration, while it is possible to do this for an embedded one. The reason for this is that the method used to set the connection identifier simply does not exist in the builder (RemoteElasticsearchConfigurationBuilder.java), while it is existing in the builder for an embedded elasticsearch configuration (EmbeddedElasticsearchConfigurationBuilder.java#L15).

Is there a specific reason for this? Is there another way to use a remote elasticsearch configuration together with other engines?