Simulate elasticsearch client

Hi,
Is it possible to simulate an elasticsearch client for testing without having an instance of elasticsearch running

No. I'm not aware of any OOTB mock like this.

Cant we get mock client using ESIntegTestCase ? I found a class MockNode which also returns the client. Cant this be used for mocking a client?

To do integration tests, use a real elasticsearch instance.

What is your build system?

Our build system is gradle. I found few classes like MockNode, TransportFactory, NodeTestCluster does they create mock client?

Great. I think you might be able to reuse the gradle tasks we built for integration testing.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.