Class RabbitMQContainer

java.lang.Object
org.testcontainers.containers.GenericContainer<RabbitMQContainer>
org.testcontainers.containers.RabbitMQContainer
All Implemented Interfaces:
AutoCloseable, org.testcontainers.containers.Container<RabbitMQContainer>, org.testcontainers.containers.ContainerState, org.testcontainers.containers.traits.LinkableContainer, org.testcontainers.containers.wait.strategy.WaitStrategyTarget, org.testcontainers.lifecycle.Startable

@Deprecated public class RabbitMQContainer extends org.testcontainers.containers.GenericContainer<RabbitMQContainer>
Deprecated.
use RabbitMQContainer instead.
Testcontainers implementation for RabbitMQ.

Supported image: rabbitmq

Exposed ports:

  • 5671 (AMQPS)
  • 5672 (AMQP)
  • 15671 (HTTPS)
  • 15672 (HTTP)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated.
     

    Nested classes/interfaces inherited from interface org.testcontainers.containers.Container

    org.testcontainers.containers.Container.ExecResult
  • Field Summary

    Fields inherited from class org.testcontainers.containers.GenericContainer

    CONTAINER_RUNNING_TIMEOUT_SEC, dependencies, dockerClient, INTERNAL_HOST_HOSTNAME, waitStrategy

    Fields inherited from interface org.testcontainers.containers.ContainerState

    STATE_HEALTHY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    RabbitMQContainer(String dockerImageName)
    Deprecated.
    Creates a RabbitMQ container using a specific docker image.
    RabbitMQContainer(org.testcontainers.utility.DockerImageName dockerImageName)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Deprecated.
     
    protected void
    containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    withAdminPassword(String adminPassword)
    Deprecated.
    Sets the password for the admin (default is
    withAdminUser(String adminUsername)
    Deprecated.
    Sets the user for the admin (default is
    withBinding(String source, String destination)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withBinding(String vhost, String source, String destination)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withBinding(String vhost, String source, String destination, Map<String,Object> arguments, String routingKey, String destinationType)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withBinding(String source, String destination, Map<String,Object> arguments, String routingKey, String destinationType)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withExchange(String name, String type)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withExchange(String name, String type, boolean autoDelete, boolean internal, boolean durable, Map<String,Object> arguments)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withExchange(String vhost, String name, String type)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withExchange(String vhost, String name, String type, boolean autoDelete, boolean internal, boolean durable, Map<String,Object> arguments)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withOperatorPolicy(String name, String pattern, Map<String,Object> definition)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withOperatorPolicy(String name, String pattern, Map<String,Object> definition, int priority, String applyTo)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withParameter(String component, String name, String value)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withPermission(String vhost, String user, String configure, String write, String read)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withPluginsEnabled(String... pluginNames)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withPolicy(String vhost, String name, String pattern, Map<String,Object> definition)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withPolicy(String name, String pattern, Map<String,Object> definition)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withPolicy(String name, String pattern, Map<String,Object> definition, int priority, String applyTo)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withQueue(String name, boolean autoDelete, boolean durable, Map<String,Object> arguments)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withQueue(String vhost, String name)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withQueue(String vhost, String name, boolean autoDelete, boolean durable, Map<String,Object> arguments)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withRabbitMQConfig(org.testcontainers.utility.MountableFile rabbitMQConf)
    Deprecated.
    Overwrites the default RabbitMQ configuration file with the supplied one.
    withRabbitMQConfigErlang(org.testcontainers.utility.MountableFile rabbitMQConf)
    Deprecated.
    Overwrites the default RabbitMQ configuration file with the supplied one.
    withRabbitMQConfigSysctl(org.testcontainers.utility.MountableFile rabbitMQConf)
    Deprecated.
    Overwrites the default RabbitMQ configuration file with the supplied one.
    withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify)
    Deprecated.
     
    withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify, boolean failIfNoCert)
    Deprecated.
     
    withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify, boolean failIfNoCert, int verificationDepth)
    Deprecated.
     
    withUser(String name, String password)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withUser(String name, String password, Set<String> tags)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withVhost(String name, boolean tracing)
    Deprecated.
    use ContainerState.execInContainer(String...) instead
    withVhostLimit(String vhost, String name, int value)
    Deprecated.
    use ContainerState.execInContainer(String...) instead

    Methods inherited from class org.testcontainers.containers.GenericContainer

    addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, canBeReused, containerIsCreated, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, 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, setContainerDef, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, stop, 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, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning

    Methods inherited from interface org.testcontainers.lifecycle.Startable

    close
  • Constructor Details

    • RabbitMQContainer

      @Deprecated public RabbitMQContainer()
      Deprecated.
      Creates a RabbitMQ container using the official RabbitMQ docker image.
    • RabbitMQContainer

      public RabbitMQContainer(String dockerImageName)
      Deprecated.
      Creates a RabbitMQ container using a specific docker image.
      Parameters:
      dockerImageName - The docker image to use.
    • RabbitMQContainer

      public RabbitMQContainer(org.testcontainers.utility.DockerImageName dockerImageName)
      Deprecated.
  • Method Details

    • configure

      protected void configure()
      Deprecated.
      Overrides:
      configure in class org.testcontainers.containers.GenericContainer<RabbitMQContainer>
    • containerIsStarted

      protected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
      Deprecated.
      Overrides:
      containerIsStarted in class org.testcontainers.containers.GenericContainer<RabbitMQContainer>
    • getAdminPassword

      public String getAdminPassword()
      Deprecated.
      Returns:
      The admin password for the admin account
    • getAdminUsername

      public String getAdminUsername()
      Deprecated.
      Returns:
      The admin user for the admin account
    • getAmqpPort

      public Integer getAmqpPort()
      Deprecated.
    • getAmqpsPort

      public Integer getAmqpsPort()
      Deprecated.
    • getHttpsPort

      public Integer getHttpsPort()
      Deprecated.
    • getHttpPort

      public Integer getHttpPort()
      Deprecated.
    • getAmqpUrl

      public String getAmqpUrl()
      Deprecated.
      Returns:
      AMQP URL for use with AMQP clients.
    • getAmqpsUrl

      public String getAmqpsUrl()
      Deprecated.
      Returns:
      AMQPS URL for use with AMQPS clients.
    • getHttpUrl

      public String getHttpUrl()
      Deprecated.
      Returns:
      URL of the HTTP management endpoint.
    • getHttpsUrl

      public String getHttpsUrl()
      Deprecated.
      Returns:
      URL of the HTTPS management endpoint.
    • withAdminUser

      public RabbitMQContainer withAdminUser(String adminUsername)
      Deprecated.
      Sets the user for the admin (default is
      guest
      )
      Parameters:
      adminUsername - The admin user.
      Returns:
      This container.
    • withAdminPassword

      public RabbitMQContainer withAdminPassword(String adminPassword)
      Deprecated.
      Sets the password for the admin (default is
      guest
      )
      Parameters:
      adminPassword - The admin password.
      Returns:
      This container.
    • withSSL

      public RabbitMQContainer withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify, boolean failIfNoCert, int verificationDepth)
      Deprecated.
    • withSSL

      public RabbitMQContainer withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify, boolean failIfNoCert)
      Deprecated.
    • withSSL

      public RabbitMQContainer withSSL(org.testcontainers.utility.MountableFile keyFile, org.testcontainers.utility.MountableFile certFile, org.testcontainers.utility.MountableFile caFile, RabbitMQContainer.SslVerification verify)
      Deprecated.
    • withPluginsEnabled

      @Deprecated public RabbitMQContainer withPluginsEnabled(String... pluginNames)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withBinding

      @Deprecated public RabbitMQContainer withBinding(String source, String destination)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withBinding

      @Deprecated public RabbitMQContainer withBinding(String vhost, String source, String destination)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withBinding

      @Deprecated public RabbitMQContainer withBinding(String source, String destination, Map<String,Object> arguments, String routingKey, String destinationType)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withBinding

      @Deprecated public RabbitMQContainer withBinding(String vhost, String source, String destination, Map<String,Object> arguments, String routingKey, String destinationType)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withParameter

      @Deprecated public RabbitMQContainer withParameter(String component, String name, String value)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withPermission

      @Deprecated public RabbitMQContainer withPermission(String vhost, String user, String configure, String write, String read)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withUser

      @Deprecated public RabbitMQContainer withUser(String name, String password)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withUser

      @Deprecated public RabbitMQContainer withUser(String name, String password, Set<String> tags)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withPolicy

      @Deprecated public RabbitMQContainer withPolicy(String name, String pattern, Map<String,Object> definition)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withPolicy

      @Deprecated public RabbitMQContainer withPolicy(String vhost, String name, String pattern, Map<String,Object> definition)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withPolicy

      @Deprecated public RabbitMQContainer withPolicy(String name, String pattern, Map<String,Object> definition, int priority, String applyTo)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withOperatorPolicy

      @Deprecated public RabbitMQContainer withOperatorPolicy(String name, String pattern, Map<String,Object> definition)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withOperatorPolicy

      @Deprecated public RabbitMQContainer withOperatorPolicy(String name, String pattern, Map<String,Object> definition, int priority, String applyTo)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withVhost

      @Deprecated public RabbitMQContainer withVhost(String name)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withVhost

      @Deprecated public RabbitMQContainer withVhost(String name, boolean tracing)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withVhostLimit

      @Deprecated public RabbitMQContainer withVhostLimit(String vhost, String name, int value)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withQueue

      @Deprecated public RabbitMQContainer withQueue(String name)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withQueue

      @Deprecated public RabbitMQContainer withQueue(String vhost, String name)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withQueue

      @Deprecated public RabbitMQContainer withQueue(String name, boolean autoDelete, boolean durable, Map<String,Object> arguments)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withQueue

      @Deprecated public RabbitMQContainer withQueue(String vhost, String name, boolean autoDelete, boolean durable, Map<String,Object> arguments)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withExchange

      @Deprecated public RabbitMQContainer withExchange(String name, String type)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withExchange

      @Deprecated public RabbitMQContainer withExchange(String vhost, String name, String type)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withExchange

      @Deprecated public RabbitMQContainer withExchange(String name, String type, boolean autoDelete, boolean internal, boolean durable, Map<String,Object> arguments)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withExchange

      @Deprecated public RabbitMQContainer withExchange(String vhost, String name, String type, boolean autoDelete, boolean internal, boolean durable, Map<String,Object> arguments)
      Deprecated.
      use ContainerState.execInContainer(String...) instead
    • withRabbitMQConfig

      public RabbitMQContainer withRabbitMQConfig(org.testcontainers.utility.MountableFile rabbitMQConf)
      Deprecated.
      Overwrites the default RabbitMQ configuration file with the supplied one.
      Parameters:
      rabbitMQConf - The rabbitmq.conf file to use (in sysctl format, don't forget empty line in the end of file)
      Returns:
      This container.
    • withRabbitMQConfigSysctl

      public RabbitMQContainer withRabbitMQConfigSysctl(org.testcontainers.utility.MountableFile rabbitMQConf)
      Deprecated.
      Overwrites the default RabbitMQ configuration file with the supplied one. This function doesn't work with RabbitMQ < 3.7. This function and the Sysctl format is recommended for RabbitMQ >= 3.7
      Parameters:
      rabbitMQConf - The rabbitmq.config file to use (in sysctl format, don't forget empty line in the end of file)
      Returns:
      This container.
    • withRabbitMQConfigErlang

      public RabbitMQContainer withRabbitMQConfigErlang(org.testcontainers.utility.MountableFile rabbitMQConf)
      Deprecated.
      Overwrites the default RabbitMQ configuration file with the supplied one.
      Parameters:
      rabbitMQConf - The rabbitmq.config file to use (in erlang format)
      Returns:
      This container.