Hi everyone,
I'm trying to create a test for a plugin that should be able to do these 3 things:
- Start a cluster(can have one node) with my plugin installed on each node.
- Customize the
elasticsearch.yml
for the nodes in the cluster, because my plugin uses a custom setting that I need in each node. - 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!