public class DatastoreEmulatorContainer extends org.testcontainers.containers.GenericContainer<DatastoreEmulatorContainer>
Supported images: gcr.io/google.com/cloudsdktool/google-cloud-cli
, gcr.io/google.com/cloudsdktool/cloud-sdk
Default port is 8081.
Constructor and Description |
---|
DatastoreEmulatorContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
DatastoreEmulatorContainer(java.lang.String image) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
java.lang.String |
getEmulatorEndpoint() |
java.lang.String |
getProjectId() |
DatastoreEmulatorContainer |
withFlags(java.lang.String flags) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, 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, 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, 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, withWorkingDirectory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
public DatastoreEmulatorContainer(java.lang.String image)
public DatastoreEmulatorContainer(org.testcontainers.utility.DockerImageName dockerImageName)
protected void configure()
configure
in class org.testcontainers.containers.GenericContainer<DatastoreEmulatorContainer>
public DatastoreEmulatorContainer withFlags(java.lang.String flags)
public java.lang.String getEmulatorEndpoint()
host:port
pair corresponding to the address on which the emulator is
reachable from the test host machine. Directly usable as a parameter to the
com.google.cloud.ServiceOptions.Builder#setHost(java.lang.String) method.public java.lang.String getProjectId()