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 environment & cluster:
Cluster creation inside_block:cluster_creation
-
authenticate:
Authentication inside_block:auth
Add the following dependency to your pom.xml/build.gradle file:
testCompile "org.testcontainers:couchbase:{{latest_version}}"<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>couchbase</artifactId>
<version>{{latest_version}}</version>
<scope>test</scope>
</dependency>