Class AkkaServerlessProxyContainer
- java.lang.Object
-
- org.testcontainers.containers.FailureDetectingExternalResource
-
- org.testcontainers.containers.GenericContainer<AkkaServerlessProxyContainer>
-
- com.akkaserverless.javasdk.testkit.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.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_GOOGLE_PUBSUB_PORTDefault local port where the Google Pub/Sub emulator is available (8085).static java.lang.StringDEFAULT_PROXY_IMAGEDefault Akka Serverless proxy image for local testing.static org.testcontainers.utility.DockerImageNameDEFAULT_PROXY_IMAGE_NAMEDefault Testcontainers DockerImageName for the Akka Serverless proxy.static intDEFAULT_PROXY_PORTDefault proxy port (9000).static java.lang.StringDEFAULT_PROXY_VERSIONDefault Akka Serverless proxy version, compatible with this version of the SDK and testkit.static intDEFAULT_USER_FUNCTION_PORTDefault user function port (8080).
-
Constructor Summary
Constructors Constructor Description AkkaServerlessProxyContainer()AkkaServerlessProxyContainer(int userFunctionPort)AkkaServerlessProxyContainer(int userFunctionPort, int googlePubSubPort)AkkaServerlessProxyContainer(org.testcontainers.utility.DockerImageName dockerImageName, int userFunctionPort, int googlePubSubPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetProxyPort()Get the mapped port for the Akka Serverless proxy container.voidstart()-
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
-
-
-
-
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:
startin interfaceorg.testcontainers.lifecycle.Startable- Overrides:
startin classorg.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
-
-