public class InfluxDBContainer<SELF extends InfluxDBContainer<SELF>>
extends org.testcontainers.containers.GenericContainer<SELF>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
INFLUXDB_PORT |
static java.lang.String |
VERSION
Deprecated.
|
| Constructor and Description |
|---|
InfluxDBContainer()
Deprecated.
use
InfluxDBContainer(DockerImageName) instead |
InfluxDBContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
InfluxDBContainer(java.lang.String version)
Deprecated.
use
InfluxDBContainer(DockerImageName) instead |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
java.util.Set<java.lang.Integer> |
getLivenessCheckPortNumbers() |
org.influxdb.InfluxDB |
getNewInfluxDB() |
java.lang.String |
getUrl() |
SELF |
withAdmin(java.lang.String admin)
Set env variable `INFLUXDB_ADMIN_USER`.
|
SELF |
withAdminPassword(java.lang.String adminPassword)
Set env variable `INFLUXDB_ADMIN_PASSWORD`.
|
SELF |
withAuthEnabled(boolean authEnabled)
Set env variable `INFLUXDB_HTTP_AUTH_ENABLED`.
|
SELF |
withDatabase(java.lang.String database)
Set env variable `INFLUXDB_DB`.
|
SELF |
withPassword(java.lang.String password)
Set env variable `INFLUXDB_USER_PASSWORD`.
|
SELF |
withUsername(java.lang.String username)
Set env variable `INFLUXDB_USER`.
|
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, failed, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindcopyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningpublic static final java.lang.Integer INFLUXDB_PORT
@Deprecated public static final java.lang.String VERSION
@Deprecated public InfluxDBContainer()
InfluxDBContainer(DockerImageName) instead@Deprecated public InfluxDBContainer(java.lang.String version)
InfluxDBContainer(DockerImageName) insteadpublic InfluxDBContainer(org.testcontainers.utility.DockerImageName dockerImageName)
protected void configure()
configure in class org.testcontainers.containers.GenericContainer<SELF extends InfluxDBContainer<SELF>>public java.util.Set<java.lang.Integer> getLivenessCheckPortNumbers()
getLivenessCheckPortNumbers in interface org.testcontainers.containers.wait.strategy.WaitStrategyTargetgetLivenessCheckPortNumbers in class org.testcontainers.containers.GenericContainer<SELF extends InfluxDBContainer<SELF>>public SELF withAuthEnabled(boolean authEnabled)
authEnabled - Enables authentication.public SELF withAdmin(java.lang.String admin)
admin - The name of the admin user to be created. If this is unset, no admin user is created.public SELF withAdminPassword(java.lang.String adminPassword)
adminPassword - TThe password for the admin user configured with `INFLUXDB_ADMIN_USER`. If this is unset, a
random password is generated and printed to standard out.public SELF withDatabase(java.lang.String database)
database - Automatically initializes a database with the name of this environment variable.public SELF withUsername(java.lang.String username)
username - The name of a user to be created with no privileges. If `INFLUXDB_DB` is set, this user will
be granted read and write permissions for that database.public SELF withPassword(java.lang.String password)
password - The password for the user configured with `INFLUXDB_USER`. If this is unset, a random password
is generated and printed to standard out.public java.lang.String getUrl()
public org.influxdb.InfluxDB getNewInfluxDB()