testcontainers-java
testcontainers-java copied to clipboard
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Hello, QuestDB has 8900+ GitHub stars, and I believe users will benefit from this. I realise this is incomplete and documentation is lacking. I'm sending this as a draft to...
Add [TiDB](https://docs.pingcap.com/tidb/stable/overview) test container support.
`MongoDBContainer` runs with the `--replSet` command-line option to support testing features available only for a replica set. At the `docker-entrypoint-initdb.d stage`, a single replica set node is not yet initialised....
Add Authentication to MongoDBContainer Offical MongoDB doc [reference](https://www.mongodb.com/docs/manual/tutorial/enforce-keyfile-access-control-in-existing-replica-set/)
```scala import org.testcontainers.containers.MongoDBContainer import org.testcontainers.utility.DockerImageName val mongoDBContainer = new MongoDBContainer(DockerImageName.parse(“mongo:4.0.10”)) .withEnv(“MONGO_INITDB_DATABASE”, “mytestdb”) .withEnv(“MONGO_INITDB_ROOT_USERNAME”, “any-user”) .withEnv(“MONGO_INITDB_ROOT_PASSWORD”, “whatever”) mongoDBContainer.start() mongoDBContainer.getLogs ``` Getting below error: ``` ERROR 24/11/2021 16:16:44.815 org.testcontainers.containers.MongoDBContainer A single node...
When using Testcontainers in combination with JUnit5 using `@Testcontainers` and `@Container` all the containers are started sequentially. Especially when there are multiple containers involved it could save some time to...
Every item on this list will require judgement by the Testcontainers core maintainers. Exceptions will sometimes be possible; items with should are more likely to be negotiable than those items...
I was using GenericContainer below and encounter issue `Caused by: org.testcontainers.shaded.com.fasterxml.jackson.databind.JsonMappingException: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) (through reference chain: org.testcontainers.shaded.com.github.dockerjava.core.command.CreateContainerCmdImpl["NetworkingConfig"]->org.testcontainers.shaded.com.github.dockerjava.core.command.CreateContainerCmdImpl$NetworkingConfig["EndpointsConfig"])` ``` GenericContainer...
[Compose V2](https://www.docker.com/blog/announcing-compose-v2-general-availability/) offers arm images to perform `docker compose` commands. It will be available using `ComposeContainer` ```java public static ComposeContainer environment = new ComposeContainer(new File("src/test/resources/compose-test.yml")) .withExposedService("redis-1", REDIS_PORT, Wait.forListeningPort()) .waitingFor("db-1", Wait.forLogMessage("started",...