Class AkkaServerlessProxyContainer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.junit.rules.TestRule, org.testcontainers.containers.Container<AkkaServerlessProxyContainer>, org.testcontainers.containers.ContainerState, org.testcontainers.containers.traits.LinkableContainer, org.testcontainers.containers.wait.strategy.WaitStrategyTarget, org.testcontainers.lifecycle.Startable

    public class AkkaServerlessProxyContainer
    extends org.testcontainers.containers.GenericContainer<AkkaServerlessProxyContainer>
    Docker test container of Akka Serverless proxy for local development and testing.
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_GOOGLE_PUBSUB_PORT
      Default local port where the Google Pub/Sub emulator is available (8085).
      static java.lang.String DEFAULT_PROXY_IMAGE
      Default Akka Serverless proxy image for local testing.
      static org.testcontainers.utility.DockerImageName DEFAULT_PROXY_IMAGE_NAME
      Default Testcontainers DockerImageName for the Akka Serverless proxy.
      static int DEFAULT_PROXY_PORT
      Default proxy port (9000).
      static java.lang.String DEFAULT_PROXY_VERSION
      Default Akka Serverless proxy version, compatible with this version of the SDK and testkit.
      static int DEFAULT_USER_FUNCTION_PORT
      Default user function port (8080).
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getProxyPort()
      Get the mapped port for the Akka Serverless proxy container.
      void start()  
      • Methods inherited from class org.testcontainers.containers.GenericContainer

        addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, configure, 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, getLivenessCheckPortNumbers, 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, 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, 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
      • Methods inherited from interface org.testcontainers.lifecycle.Startable

        close
    • Field Detail

      • DEFAULT_PROXY_IMAGE

        public static final java.lang.String DEFAULT_PROXY_IMAGE
        Default Akka Serverless proxy image for local testing.
      • DEFAULT_PROXY_VERSION

        public static final java.lang.String DEFAULT_PROXY_VERSION
        Default Akka Serverless proxy version, compatible with this version of the SDK and testkit.
      • DEFAULT_PROXY_IMAGE_NAME

        public static final org.testcontainers.utility.DockerImageName DEFAULT_PROXY_IMAGE_NAME
        Default Testcontainers DockerImageName for the Akka Serverless proxy.
      • DEFAULT_PROXY_PORT

        public static final int DEFAULT_PROXY_PORT
        Default proxy port (9000).
        See Also:
        Constant Field Values
      • DEFAULT_USER_FUNCTION_PORT

        public static final int DEFAULT_USER_FUNCTION_PORT
        Default user function port (8080).
        See Also:
        Constant Field Values
      • DEFAULT_GOOGLE_PUBSUB_PORT

        public static final int DEFAULT_GOOGLE_PUBSUB_PORT
        Default local port where the Google Pub/Sub emulator is available (8085).
        See Also:
        Constant Field Values
    • Constructor Detail

      • AkkaServerlessProxyContainer

        public AkkaServerlessProxyContainer()
      • AkkaServerlessProxyContainer

        public AkkaServerlessProxyContainer​(int userFunctionPort)
      • AkkaServerlessProxyContainer

        public AkkaServerlessProxyContainer​(int userFunctionPort,
                                            int googlePubSubPort)
      • AkkaServerlessProxyContainer

        public AkkaServerlessProxyContainer​(org.testcontainers.utility.DockerImageName dockerImageName,
                                            int userFunctionPort,
                                            int googlePubSubPort)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.testcontainers.lifecycle.Startable
        Overrides:
        start in class org.testcontainers.containers.GenericContainer<AkkaServerlessProxyContainer>
      • getProxyPort

        public int getProxyPort()
        Get the mapped port for the Akka Serverless proxy container.
        Returns:
        port for the local Akka Serverless service