spring-test-data-geode icon indicating copy to clipboard operation
spring-test-data-geode copied to clipboard

Add support for Integration Testing using Testcontainers

Open jxblum opened this issue 5 years ago • 2 comments

From @dturanski:

geode = new GenericContainer<>("apachegeode/geode:1.12.0");
geode.withCommand("tail","-f","/dev/null").start();

jxblum avatar Apr 06 '20 19:04 jxblum

Take @dturanski's example into consideration:

https://github.com/dturanski/geode-sandbox

jxblum avatar May 22 '20 20:05 jxblum

This is where I ended up https://github.com/spring-cloud/stream-applications/tree/master/functions/common/function-test-support/src/main/java/org/springframework/cloud/fn/test/support/geode . The only way I could get locator and cache server on non-default port is to ensure they are the same port in container and on the client. Exposing these ports using a custom Dockerfile with build args is the only thing that works for me.

dturanski avatar Jun 08 '20 14:06 dturanski