Creating integration tests with Elastic.net and Nest


(Sean Farrow) #1

Hi,

I am in the process of writing an application using Elastic, using the .net clients. I am trying to do some integration testing and having looked at the source code am wondering how the NEST integration tests spin up a cluster, or do they assume a cluster is already available?
Any help appreciated.
Kind regards
Sean


(John D. Ament) #2

They connect to a separate standalone cluster, there is no embedded option in .net. You can see examples in the integration test directory https://github.com/elastic/elasticsearch-net/tree/develop/src/Tests/Nest.Tests.Integration


(Sean Farrow) #3

Hi John,

Thanks for this. I’ve looked and found the tests, but can’t find anywhere the cluster is started/shut down. Do the tests assume a running cluster?
If not can you point me to the code file that performs start up/shut down?
Cheers
Sean.


(system) #4