with ES 2.x we have made extensive use of an embedded node with local transport for unit and integration tests (not using the ESIntegTestCase but our own). With something like
With the warning that this feels like a bit of a hack, it does work. This is the way I do "integration" tests in one of my projects. I do have some issues with running the unit tests without doing a clean before the test start.
Yep, that worked, thanks! Now I'm fighting a bit to get a decent logging setup during my tests. My stuff used slf4j/logback and the embedded Elastic server really insists on Log4j2 But I'll get there
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.