public class SolaceContainer extends org.testcontainers.containers.GenericContainer<SolaceContainer>
| Constructor and Description |
|---|
SolaceContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
SolaceContainer(java.lang.String dockerImageName)
Create a new solace container with the specified image name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
protected void |
containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
java.lang.String |
getOrigin(Service service)
Host address for provided service
|
java.lang.String |
getPassword()
Configured password
|
java.lang.String |
getUsername()
Configured username
|
java.lang.String |
getVpn()
Configured VPN
|
SolaceContainer |
withClientCert(org.testcontainers.utility.MountableFile certFile,
org.testcontainers.utility.MountableFile caFile)
Sets the solace server ceritificates
|
SolaceContainer |
withCredentials(java.lang.String username,
java.lang.String password)
Sets the client credentials
|
SolaceContainer |
withTopic(java.lang.String topic,
Service service)
Adds the topic configuration
|
SolaceContainer |
withVpn(java.lang.String vpn)
Sets the VPN name
|
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, 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, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, 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 SolaceContainer(java.lang.String dockerImageName)
dockerImageName - the image name that should be used.public SolaceContainer(org.testcontainers.utility.DockerImageName dockerImageName)
protected void configure()
configure in class org.testcontainers.containers.GenericContainer<SolaceContainer>protected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStarted in class org.testcontainers.containers.GenericContainer<SolaceContainer>public SolaceContainer withCredentials(java.lang.String username, java.lang.String password)
username - Client usernamepassword - Client passwordpublic SolaceContainer withTopic(java.lang.String topic, Service service)
topic - Name of the topicservice - Service to be supported on provided topicpublic SolaceContainer withVpn(java.lang.String vpn)
vpn - VPN namepublic SolaceContainer withClientCert(org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile)
certFile - Server certificatecaFile - Certified Authority ceritificatepublic java.lang.String getVpn()
public java.lang.String getOrigin(Service service)
service - - service for which host needs to be retrievedpublic java.lang.String getUsername()
public java.lang.String getPassword()