package itestsupport
- Alphabetic
- Public
- Protected
Package Members
Type Members
- trait BlendedIntegrationTestSupport extends AnyRef
- case class ContainerLink(container: String, hostname: String) extends Product with Serializable
- case class ContainerUnderTest(ctName: String, imgPattern: String, imgId: String, dockerName: String, volumes: List[VolumeConfig] = List.empty, links: List[ContainerLink] = List.empty, ports: Map[String, NamedContainerPort] = Map.empty, env: Map[String, String] = Map.empty) extends Product with Serializable
- 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.
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.
- case class NamedContainerPort(name: String, privatePort: Int, publicPort: Int) extends Product with Serializable
- trait TestConnectorSetup extends AnyRef
Used to set up the test connector.
- case class VolumeConfig(hostDirectory: String, containerDirectory: String) extends Product with Serializable
Value Members
- object ContainerLink extends Serializable
- object ContainerUnderTest extends Serializable
- object DockerbasedTestconnectorSetupActor
- object NamedContainerPort extends Serializable
- object SSLTestSetup
- object ShellExecutor
- object TestConnector
- object VolumeConfig extends Serializable