Testcontainers for real Elasticsearch integration tests
summary
Shows using Testcontainers to run Dockerized Elasticsearch clusters for real integration tests in Java, via a module named testcontainers-java-module-elasticsearch that starts ES 6.x or 7.x, discovers mapped ports and performs real REST calls. It explains detecting an existing local cluster before launching a container, and covers support for TLS and authentication (Elasticsearch 6.8 and 7.1) with end-to-end passing demos.
AI-written summary · about
chapters (8)
- 0:00Testcontainers and Elasticsearch
- 3:23Integration testing problems
- 6:56Testcontainers for Elasticsearch
- 8:00Testcontainers in project
- 11:29Startup time optimization
- 13:55Connection strategy
- 15:28Elastic Cloud for tests
- 17:13Final demo and conclusion
related talks
14mTestcontainers for Real Integration Tests [...]
35mReal Integration Tests with TestContainers
15mTestcontainers: Simplify Your Integration Tests and Development
47mIntegration Tests: testcontainers to the Rescue
51mTestContainers: Integration Testing Without the Hassle
46mTestcontainers - The past, the present and the future
48mMaking Your Testcontainers Experience Smoother
26mRemoving Complexity from Integration Tests Using Testcontainers
