Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.54 KB

File metadata and controls

46 lines (34 loc) · 1.54 KB

Couchbase Module

Testcontainers module for Couchbase. Couchbase is a document oriented NoSQL database.

Usage example

Running Couchbase as a stand-in in a test:

  1. Define a bucket:

    Bucket Definition inside_block:bucket_definition

  2. define a container:

    Container definition inside_block:container_definition

  3. create an environment & cluster:

    Cluster creation inside_block:cluster_creation

  4. authenticate:

    Authentication inside_block:auth

Adding this module to your project dependencies

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>