class DockerbasedTestconnectorSetupActor extends Actor with ActorLogging with MemoryStash
This class encapsulates the start sequence of all configured docker containers in preparation of the integration test.
The start sequence is kicked off with a StartContainerManager message, which will initialize a docker container manager and hand over the configuration of all ContainersUnderTest.
The Actor will stay in "starting" state as long as not all containers have been started within docker. Whenever a container is started successfully, the corresponding ContainerUnderTest config is updated with the port mappings of the exposed docker ports, so that they can be used to set up the required connections for testing.
Once all containers are started, the accumulated updated config is sent back with a ContainerManagerStarted message. The accumulated config is then used to call TestConnectorSetup.configure. It is in the developers responsibility to setup all required connection information within the TestConnector required to execute the tests.
!!! Note : The TestConnector information is also used to execute the conditions checking if the containers are ready to go for the tests.
- Self Type
- DockerbasedTestconnectorSetupActor with TestConnectorSetup
- Alphabetic
- By Inheritance
- DockerbasedTestconnectorSetupActor
- MemoryStash
- ActorLogging
- Actor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DockerbasedTestconnectorSetupActor()
Type Members
- type Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def containerReady(): Condition
Check whether all preconditions to execute the tests are fulfilled.
Check whether all preconditions to execute the tests are fulfilled.
- returns
A (possibly) combined condition that must be fulfilled.
- implicit val context: ActorContext
- Definition Classes
- Actor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initializing: (DockerbasedTestconnectorSetupActor.this)#Receive
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log: LoggingAdapter
- Definition Classes
- ActorLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def postStop(): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def preStart(): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def receive: PartialFunction[Any, Unit]
- Definition Classes
- DockerbasedTestconnectorSetupActor → Actor
- val requests: ListBuffer[(ActorRef, Any)]
- Definition Classes
- MemoryStash
- implicit final val self: ActorRef
- Definition Classes
- Actor
- final def sender(): ActorRef
- Definition Classes
- Actor
- def starting(requestors: List[ActorRef], containerMgr: ActorRef): (DockerbasedTestconnectorSetupActor.this)#Receive
- def stashing: (DockerbasedTestconnectorSetupActor.this)#Receive
- Definition Classes
- MemoryStash
- def supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unhandled(message: Any): Unit
- Definition Classes
- Actor
- def unstash(): Unit
- Definition Classes
- MemoryStash
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def working(cuts: Map[String, ContainerUnderTest], containerMgr: ActorRef): (DockerbasedTestconnectorSetupActor.this)#Receive