public class CouchbaseContainer extends org.testcontainers.containers.GenericContainer<CouchbaseContainer>
optimized by Tayeb Chlyah
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
static java.lang.String |
VERSION |
| Constructor and Description |
|---|
CouchbaseContainer() |
CouchbaseContainer(java.lang.String containerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
callCouchbaseRestAPI(java.lang.String url,
java.lang.String payload) |
protected void |
configure() |
protected void |
containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
void |
createBucket(com.couchbase.client.java.cluster.BucketSettings bucketSetting,
boolean primaryIndex) |
protected java.lang.Integer |
getLivenessCheckPort() |
java.util.Set<java.lang.Integer> |
getLivenessCheckPortNumbers() |
void |
initCluster() |
CouchbaseContainer |
withNewBucket(com.couchbase.client.java.cluster.BucketSettings bucketSettings) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canEqual, containerIsStarting, copyFileFromContainer, copyFileToContainer, createVolumeDirectory, doStart, equals, execInContainer, execInContainer, failed, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setStartupAttempts, setStartupCheckStrategy, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindpublic static final java.lang.String VERSION
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
public CouchbaseContainer()
public CouchbaseContainer(java.lang.String containerName)
protected java.lang.Integer getLivenessCheckPort()
getLivenessCheckPort in class org.testcontainers.containers.GenericContainer<CouchbaseContainer>public java.util.Set<java.lang.Integer> getLivenessCheckPortNumbers()
getLivenessCheckPortNumbers in interface org.testcontainers.containers.wait.strategy.WaitStrategyTargetgetLivenessCheckPortNumbers in class org.testcontainers.containers.GenericContainer<CouchbaseContainer>protected void configure()
configure in class org.testcontainers.containers.GenericContainer<CouchbaseContainer>public CouchbaseContainer withNewBucket(com.couchbase.client.java.cluster.BucketSettings bucketSettings)
public void initCluster()
public void createBucket(com.couchbase.client.java.cluster.BucketSettings bucketSetting,
boolean primaryIndex)
public void callCouchbaseRestAPI(java.lang.String url,
java.lang.String payload)
throws java.io.IOException
java.io.IOExceptionprotected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStarted in class org.testcontainers.containers.GenericContainer<CouchbaseContainer>