github / elasticsearch-srv-discovery

Elasticsearch discovery with SRV records
MIT License
34 stars 33 forks source link

Add integration test #8

Closed chrismwendt closed 9 years ago

chrismwendt commented 9 years ago

This PR adds an integration test which verifies that 2 nodes can find each other via SRV records. The DNS queries are mocked, so there is no need to run a DNS server - just mvn test.

Here's what's new:

The approach taken to get this test to work is not elegant and could likely be improved. But hey, it works!

Closes #5

/cc @github/search

grantr commented 9 years ago

Wow, great work. I'm sure this method took a lot of trial and error to come up with.

It may be inelegant, but it works. Hopefully this plugin will stay small so we won't have to write many more tests like it.

:+1:

chrismwendt commented 9 years ago

Thanks! And yes, that method took a while to get right :persevere: