Help writing a test for a custom plugin in ES

Hi everyone,

I'm trying to create a test for a plugin that should be able to do these 3 things:

  1. Start a cluster(can have one node) with my plugin installed on each node.
  2. Customize the elasticsearch.yml for the nodes in the cluster, because my plugin uses a custom setting that I need in each node.
  3. Send rest requests to the cluster using a RestClient.

I've tried extending ESSingleNodeTestCase, but I'm not able to send rest requests (point 3),I can only send some requests using client() ,which is not what i want; it doesn't allow me to send whatever request I want to an endpoint.

I've also tried extending ESClientYamlSuiteTestCase, but I wasn't able to figure out how to customize the cluster settings(point 2)

Does anyone know of a way to write a test that will do all the 3 things I want?

Thanks a lot!

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