Class ProxiedStrimziKafkaContainer
- java.lang.Object
-
- org.testcontainers.containers.FailureDetectingExternalResource
-
- org.testcontainers.containers.GenericContainer<io.strimzi.test.container.StrimziKafkaContainer>
-
- io.strimzi.test.container.StrimziKafkaContainer
-
- io.smallrye.reactive.messaging.kafka.companion.test.ProxiedStrimziKafkaContainer
-
- All Implemented Interfaces:
AutoCloseable,org.junit.rules.TestRule,org.testcontainers.containers.Container<io.strimzi.test.container.StrimziKafkaContainer>,org.testcontainers.containers.ContainerState,org.testcontainers.containers.traits.LinkableContainer,org.testcontainers.containers.wait.strategy.WaitStrategyTarget,org.testcontainers.lifecycle.Startable
public class ProxiedStrimziKafkaContainer extends io.strimzi.test.container.StrimziKafkaContainerSets advertised listeners to the proxied port instead of exposed port
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TOXIPROXY_IMAGE_NAMEstatic StringKAFKA_NETWORK_ALIASstatic intKAFKA_PORTstatic org.jboss.logging.LoggerLOGGERstatic StringTOXIPROXY_IMAGE_NAME_PROPERTY_KEYstatic StringTOXIPROXY_NETWORK_ALIAS
-
Constructor Summary
Constructors Constructor Description ProxiedStrimziKafkaContainer()ProxiedStrimziKafkaContainer(String dockerImageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()StringgetBootstrapServers()KafkaProxygetKafkaProxy()voidstop()-
Methods inherited from class io.strimzi.test.container.StrimziKafkaContainer
containerIsStarting, getInternalZooKeeperConnect, runStarterScript, waitForRunning, withBootstrapServers, withBrokerId, withExternalZookeeperConnect, withKafkaConfigurationMap, withKafkaVersion, withKraft, withPort, withServerProperties
-
Methods inherited from class org.testcontainers.containers.GenericContainer
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, configure, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, 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, 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, withWorkingDirectory
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.testcontainers.containers.Container
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
-
Methods inherited from interface org.testcontainers.containers.ContainerState
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
-
-
-
-
Field Detail
-
LOGGER
public static final org.jboss.logging.Logger LOGGER
-
KAFKA_PORT
public static final int KAFKA_PORT
- See Also:
- Constant Field Values
-
TOXIPROXY_NETWORK_ALIAS
public static final String TOXIPROXY_NETWORK_ALIAS
- See Also:
- Constant Field Values
-
KAFKA_NETWORK_ALIAS
public static final String KAFKA_NETWORK_ALIAS
- See Also:
- Constant Field Values
-
TOXIPROXY_IMAGE_NAME_PROPERTY_KEY
public static final String TOXIPROXY_IMAGE_NAME_PROPERTY_KEY
- See Also:
- Constant Field Values
-
DEFAULT_TOXIPROXY_IMAGE_NAME
public static final String DEFAULT_TOXIPROXY_IMAGE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxiedStrimziKafkaContainer
public ProxiedStrimziKafkaContainer()
-
ProxiedStrimziKafkaContainer
public ProxiedStrimziKafkaContainer(String dockerImageName)
-
-
Method Detail
-
doStart
protected void doStart()
- Overrides:
doStartin classio.strimzi.test.container.StrimziKafkaContainer
-
getKafkaProxy
public KafkaProxy getKafkaProxy()
-
stop
public void stop()
- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable- Overrides:
stopin classorg.testcontainers.containers.GenericContainer<io.strimzi.test.container.StrimziKafkaContainer>
-
getBootstrapServers
public String getBootstrapServers()
- Overrides:
getBootstrapServersin classio.strimzi.test.container.StrimziKafkaContainer
-
-