Testcontainers module for Couchbase. Couchbase is a document oriented NoSQL database.
Running Couchbase as a stand-in in a test:
-
Define a bucket:
Bucket Definition inside_block:bucket_definition
-
define a container:
Container definition inside_block:container_definition
-
create an cluster:
Cluster creation inside_block:cluster_creation
Add the following dependency to your pom.xml/build.gradle file:
=== "Gradle"
groovy testImplementation "org.testcontainers:couchbase:{{latest_version}}"
=== "Maven"
xml <dependency> <groupId>org.testcontainers</groupId> <artifactId>couchbase</artifactId> <version>{{latest_version}}</version> <scope>test</scope> </dependency>